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.14 2006/07/05 17:00:17 plowe noship $ */
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 3576: G_PKG_NAME CONSTANT VARCHAR2(30):='GMD_OUTBOUND_APIS_PUB';

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

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

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

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

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

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

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

Line 3668: gmd_outbound_apis_pub.g_orgn_id := p_organization_id;

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

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

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

Line 3676: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;

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

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

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

Line 3683: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;

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

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

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

Line 3690: gmd_outbound_apis_pub.g_sample_id := p_sample_id;

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

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

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

Line 3697: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;

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

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

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

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

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

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

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

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

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

Line 3743: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;

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

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

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

Line 3750: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;

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

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

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

Line 3757: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;

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

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

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

Line 3764: gmd_outbound_apis_pub.g_parent_lot_number := p_parent_lot_number;

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

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

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

Line 3772: gmd_outbound_apis_pub.g_lot_id := p_lot_id;

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

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

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

Line 3780: gmd_outbound_apis_pub.g_priority := p_priority;

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

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

3778: IF p_priority IS NOT NULL
3779: THEN
3780: gmd_outbound_apis_pub.g_priority := p_priority;
3781: where_clause := where_clause||'AND gs.priority = :priority ';
3782: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority ';
3783: END IF;
3784: -- dbms_output.put_line('after priority');
3785:
3786: 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 3793: gmd_outbound_apis_pub.g_spec_name := p_spec_name;

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

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

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

Line 3800: gmd_outbound_apis_pub.g_spec_vers := p_spec_vers;

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

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

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

Line 3807: gmd_outbound_apis_pub.g_spec_id := p_spec_id;

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

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

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

Line 3814: gmd_outbound_apis_pub.g_grade := p_grade_code;

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

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

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

Line 3822: gmd_outbound_apis_pub.g_source := p_source;

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

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

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

Line 3829: gmd_outbound_apis_pub.g_from_date_drawn := p_from_date_drawn;

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

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

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

Line 3836: gmd_outbound_apis_pub.g_to_date_drawn := p_to_date_drawn;

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

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

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

Line 3843: gmd_outbound_apis_pub.g_from_expiration_date := p_from_expiration_date;

3839: END IF;
3840:
3841: IF p_from_expiration_date IS NOT NULL
3842: THEN
3843: gmd_outbound_apis_pub.g_from_expiration_date := p_from_expiration_date;
3844: where_clause := where_clause||'AND gs.expiration_date >= :from_expiration_date ';
3845: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_expiration_date ';
3846: END IF;
3847:

Line 3845: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_expiration_date ';

3841: IF p_from_expiration_date IS NOT NULL
3842: THEN
3843: gmd_outbound_apis_pub.g_from_expiration_date := p_from_expiration_date;
3844: where_clause := where_clause||'AND gs.expiration_date >= :from_expiration_date ';
3845: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_expiration_date ';
3846: END IF;
3847:
3848: IF p_to_expiration_date IS NOT NULL
3849: THEN

Line 3850: gmd_outbound_apis_pub.g_to_expiration_date := p_to_expiration_date;

3846: END IF;
3847:
3848: IF p_to_expiration_date IS NOT NULL
3849: THEN
3850: gmd_outbound_apis_pub.g_to_expiration_date := p_to_expiration_date;
3851: where_clause := where_clause||'AND gs.expiration_date <= :to_expiration_date ';
3852: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_expiration_date ';
3853: END IF;
3854:

Line 3852: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_expiration_date ';

3848: IF p_to_expiration_date IS NOT NULL
3849: THEN
3850: gmd_outbound_apis_pub.g_to_expiration_date := p_to_expiration_date;
3851: where_clause := where_clause||'AND gs.expiration_date <= :to_expiration_date ';
3852: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_expiration_date ';
3853: END IF;
3854:
3855: IF p_source_subinventory IS NOT NULL
3856: THEN

Line 3857: gmd_outbound_apis_pub.g_source_subinventory := p_source_subinventory;

3853: END IF;
3854:
3855: IF p_source_subinventory IS NOT NULL
3856: THEN
3857: gmd_outbound_apis_pub.g_source_subinventory := p_source_subinventory;
3858: where_clause := where_clause||'AND gs.source_subinventory = :source_subinventory ';
3859: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_subinventory ';
3860: END IF;
3861:

Line 3859: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_subinventory ';

3855: IF p_source_subinventory IS NOT NULL
3856: THEN
3857: gmd_outbound_apis_pub.g_source_subinventory := p_source_subinventory;
3858: where_clause := where_clause||'AND gs.source_subinventory = :source_subinventory ';
3859: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_subinventory ';
3860: END IF;
3861:
3862: IF p_source_locator_id IS NOT NULL
3863: THEN

Line 3864: gmd_outbound_apis_pub.g_source_locator_id := p_source_locator_id;

3860: END IF;
3861:
3862: IF p_source_locator_id IS NOT NULL
3863: THEN
3864: gmd_outbound_apis_pub.g_source_locator_id := p_source_locator_id;
3865: where_clause := where_clause||'AND gs.source_locator_id = :source_locator_id ';
3866: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_locator_id ';
3867: END IF;
3868:

Line 3866: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_locator_id ';

3862: IF p_source_locator_id IS NOT NULL
3863: THEN
3864: gmd_outbound_apis_pub.g_source_locator_id := p_source_locator_id;
3865: where_clause := where_clause||'AND gs.source_locator_id = :source_locator_id ';
3866: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_locator_id ';
3867: END IF;
3868:
3869: IF p_sample_disposition IS NOT NULL
3870: THEN

Line 3871: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition;

3867: END IF;
3868:
3869: IF p_sample_disposition IS NOT NULL
3870: THEN
3871: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition;
3872: where_clause := where_clause||'AND gssd.disposition = :sample_disposition ';
3873: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';
3874: END IF;
3875: -- dbms_output.put_line('after sample_disp');

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

3869: IF p_sample_disposition IS NOT NULL
3870: THEN
3871: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition;
3872: where_clause := where_clause||'AND gssd.disposition = :sample_disposition ';
3873: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';
3874: END IF;
3875: -- dbms_output.put_line('after sample_disp');
3876:
3877: IF p_storage_subinventory IS NOT NULL

Line 3879: gmd_outbound_apis_pub.g_storage_subinventory := p_storage_subinventory;

3875: -- dbms_output.put_line('after sample_disp');
3876:
3877: IF p_storage_subinventory IS NOT NULL
3878: THEN
3879: gmd_outbound_apis_pub.g_storage_subinventory := p_storage_subinventory;
3880: where_clause := where_clause||'AND gs.storage_subinventory = :storage_subinventory ';
3881: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_subinventory ';
3882: END IF;
3883:

Line 3881: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_subinventory ';

3877: IF p_storage_subinventory IS NOT NULL
3878: THEN
3879: gmd_outbound_apis_pub.g_storage_subinventory := p_storage_subinventory;
3880: where_clause := where_clause||'AND gs.storage_subinventory = :storage_subinventory ';
3881: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_subinventory ';
3882: END IF;
3883:
3884: IF p_storage_locator_id IS NOT NULL
3885: THEN

Line 3886: gmd_outbound_apis_pub.g_storage_locator_id := p_storage_locator_id;

3882: END IF;
3883:
3884: IF p_storage_locator_id IS NOT NULL
3885: THEN
3886: gmd_outbound_apis_pub.g_storage_locator_id := p_storage_locator_id;
3887: where_clause := where_clause||'AND gs.storage_locator_id = :storage_locator_id ';
3888: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_locator_id ';
3889: END IF;
3890:

Line 3888: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_locator_id ';

3884: IF p_storage_locator_id IS NOT NULL
3885: THEN
3886: gmd_outbound_apis_pub.g_storage_locator_id := p_storage_locator_id;
3887: where_clause := where_clause||'AND gs.storage_locator_id = :storage_locator_id ';
3888: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_locator_id ';
3889: END IF;
3890:
3891: IF p_lab_organization_id IS NOT NULL
3892: THEN

Line 3893: gmd_outbound_apis_pub.g_lab_organization_id := p_lab_organization_id;

3889: END IF;
3890:
3891: IF p_lab_organization_id IS NOT NULL
3892: THEN
3893: gmd_outbound_apis_pub.g_lab_organization_id := p_lab_organization_id;
3894: where_clause := where_clause||'AND gs.lab_organization_id = :lab_organization_id ';
3895: using_clause := using_clause||', gmd_outbound_apis_pub.g_lab_organization_id ';
3896: END IF;
3897:

Line 3895: using_clause := using_clause||', gmd_outbound_apis_pub.g_lab_organization_id ';

3891: IF p_lab_organization_id IS NOT NULL
3892: THEN
3893: gmd_outbound_apis_pub.g_lab_organization_id := p_lab_organization_id;
3894: where_clause := where_clause||'AND gs.lab_organization_id = :lab_organization_id ';
3895: using_clause := using_clause||', gmd_outbound_apis_pub.g_lab_organization_id ';
3896: END IF;
3897:
3898: IF p_external_id IS NOT NULL
3899: THEN

Line 3900: gmd_outbound_apis_pub.g_external_id := p_external_id;

3896: END IF;
3897:
3898: IF p_external_id IS NOT NULL
3899: THEN
3900: gmd_outbound_apis_pub.g_external_id := p_external_id;
3901: where_clause := where_clause||'AND gs.external_id = :external_id ';
3902: using_clause := using_clause||', gmd_outbound_apis_pub.g_external_id ';
3903: END IF;
3904:

Line 3902: using_clause := using_clause||', gmd_outbound_apis_pub.g_external_id ';

3898: IF p_external_id IS NOT NULL
3899: THEN
3900: gmd_outbound_apis_pub.g_external_id := p_external_id;
3901: where_clause := where_clause||'AND gs.external_id = :external_id ';
3902: using_clause := using_clause||', gmd_outbound_apis_pub.g_external_id ';
3903: END IF;
3904:
3905: IF p_sampler IS NOT NULL
3906: THEN

Line 3910: gmd_outbound_apis_pub.g_sampler := p_sampler;

3906: THEN
3907: table_list := table_list ||', fnd_user fu3 ';
3908: where_clause := where_clause ||'AND gs.sampler_id = fu3.user_id ';
3909:
3910: gmd_outbound_apis_pub.g_sampler := p_sampler;
3911: where_clause := where_clause||'AND fu3.user_name = :sampler ';
3912: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampler ';
3913: END IF;
3914:

Line 3912: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampler ';

3908: where_clause := where_clause ||'AND gs.sampler_id = fu3.user_id ';
3909:
3910: gmd_outbound_apis_pub.g_sampler := p_sampler;
3911: where_clause := where_clause||'AND fu3.user_name = :sampler ';
3912: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampler ';
3913: END IF;
3914:
3915: IF p_lot_retest_ind IS NOT NULL
3916: THEN

Line 3917: gmd_outbound_apis_pub.g_lot_retest_ind := p_lot_retest_ind;

3913: END IF;
3914:
3915: IF p_lot_retest_ind IS NOT NULL
3916: THEN
3917: gmd_outbound_apis_pub.g_lot_retest_ind := p_lot_retest_ind;
3918: where_clause := where_clause||'AND gs.lot_retest_ind = :lot_retest_ind ';
3919: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_retest_ind ';
3920: END IF;
3921:

Line 3919: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_retest_ind ';

3915: IF p_lot_retest_ind IS NOT NULL
3916: THEN
3917: gmd_outbound_apis_pub.g_lot_retest_ind := p_lot_retest_ind;
3918: where_clause := where_clause||'AND gs.lot_retest_ind = :lot_retest_ind ';
3919: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_retest_ind ';
3920: END IF;
3921:
3922: IF p_subinventory IS NOT NULL
3923: THEN

Line 3924: gmd_outbound_apis_pub.g_subinventory := p_subinventory;

3920: END IF;
3921:
3922: IF p_subinventory IS NOT NULL
3923: THEN
3924: gmd_outbound_apis_pub.g_subinventory := p_subinventory;
3925: where_clause := where_clause||'AND gs.subinventory = :subinventory ';
3926: using_clause := using_clause||', gmd_outbound_apis_pub.g_subinventory ';
3927: END IF;
3928:

Line 3926: using_clause := using_clause||', gmd_outbound_apis_pub.g_subinventory ';

3922: IF p_subinventory IS NOT NULL
3923: THEN
3924: gmd_outbound_apis_pub.g_subinventory := p_subinventory;
3925: where_clause := where_clause||'AND gs.subinventory = :subinventory ';
3926: using_clause := using_clause||', gmd_outbound_apis_pub.g_subinventory ';
3927: END IF;
3928:
3929: IF p_locator_id IS NOT NULL
3930: THEN

Line 3931: gmd_outbound_apis_pub.g_locator_id := p_locator_id;

3927: END IF;
3928:
3929: IF p_locator_id IS NOT NULL
3930: THEN
3931: gmd_outbound_apis_pub.g_locator_id := p_locator_id;
3932: where_clause := where_clause||'AND gs.locator_id = :locator_id ';
3933: using_clause := using_clause||', gmd_outbound_apis_pub.g_locator_id ';
3934: END IF;
3935:

Line 3933: using_clause := using_clause||', gmd_outbound_apis_pub.g_locator_id ';

3929: IF p_locator_id IS NOT NULL
3930: THEN
3931: gmd_outbound_apis_pub.g_locator_id := p_locator_id;
3932: where_clause := where_clause||'AND gs.locator_id = :locator_id ';
3933: using_clause := using_clause||', gmd_outbound_apis_pub.g_locator_id ';
3934: END IF;
3935:
3936: /* Bug 4165704: taken out for inventory convergence
3937: IF p_location_id IS NOT NULL

Line 3942: gmd_outbound_apis_pub.g_location_id := p_location_id;

3938: THEN
3939: table_list := table_list ||', ic_loct_mst ilm ';
3940: where_clause := where_clause ||'AND gs.location = ilm.location ';
3941:
3942: gmd_outbound_apis_pub.g_location_id := p_location_id;
3943: where_clause := where_clause||'AND ilm.inventory_location_id = :location_id ';
3944: using_clause := using_clause||', gmd_outbound_apis_pub.g_location_id ';
3945: END IF;
3946: */

Line 3944: using_clause := using_clause||', gmd_outbound_apis_pub.g_location_id ';

3940: where_clause := where_clause ||'AND gs.location = ilm.location ';
3941:
3942: gmd_outbound_apis_pub.g_location_id := p_location_id;
3943: where_clause := where_clause||'AND ilm.inventory_location_id = :location_id ';
3944: using_clause := using_clause||', gmd_outbound_apis_pub.g_location_id ';
3945: END IF;
3946: */
3947:
3948: IF (p_wip_plant_code IS NOT NULL or p_wip_batch_no IS NOT NULL)

Line 3954: gmd_outbound_apis_pub.g_wip_plant_code := p_wip_plant_code;

3950: table_list := table_list ||', gme_batch_header gbh ';
3951: where_clause := where_clause ||'AND gs.batch_id = gbh.batch_id ';
3952: IF p_wip_plant_code IS NOT NULL
3953: THEN
3954: gmd_outbound_apis_pub.g_wip_plant_code := p_wip_plant_code;
3955: where_clause := where_clause||'AND gbh.plant_code = :wip_plant_code ';
3956: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_plant_code ';
3957: END IF;
3958:

Line 3956: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_plant_code ';

3952: IF p_wip_plant_code IS NOT NULL
3953: THEN
3954: gmd_outbound_apis_pub.g_wip_plant_code := p_wip_plant_code;
3955: where_clause := where_clause||'AND gbh.plant_code = :wip_plant_code ';
3956: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_plant_code ';
3957: END IF;
3958:
3959: IF p_wip_batch_no IS NOT NULL
3960: THEN

Line 3961: gmd_outbound_apis_pub.g_wip_batch_no := p_wip_batch_no;

3957: END IF;
3958:
3959: IF p_wip_batch_no IS NOT NULL
3960: THEN
3961: gmd_outbound_apis_pub.g_wip_batch_no := p_wip_batch_no;
3962: where_clause := where_clause||'AND gbh.batch_no = :wip_batch_no ';
3963: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_no ';
3964: END IF;
3965: END IF;

Line 3963: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_no ';

3959: IF p_wip_batch_no IS NOT NULL
3960: THEN
3961: gmd_outbound_apis_pub.g_wip_batch_no := p_wip_batch_no;
3962: where_clause := where_clause||'AND gbh.batch_no = :wip_batch_no ';
3963: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_no ';
3964: END IF;
3965: END IF;
3966:
3967: IF p_wip_batch_id IS NOT NULL

Line 3969: gmd_outbound_apis_pub.g_wip_batch_id := p_wip_batch_id;

3965: END IF;
3966:
3967: IF p_wip_batch_id IS NOT NULL
3968: THEN
3969: gmd_outbound_apis_pub.g_wip_batch_id := p_wip_batch_id;
3970: where_clause := where_clause||'AND gs.batch_id = :wip_batch_id ';
3971: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_id ';
3972: END IF;
3973:

Line 3971: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_id ';

3967: IF p_wip_batch_id IS NOT NULL
3968: THEN
3969: gmd_outbound_apis_pub.g_wip_batch_id := p_wip_batch_id;
3970: where_clause := where_clause||'AND gs.batch_id = :wip_batch_id ';
3971: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_id ';
3972: END IF;
3973:
3974: IF (p_wip_recipe_no IS NOT NULL or p_wip_recipe_version IS NOT NULL)
3975: THEN

Line 3981: gmd_outbound_apis_pub.g_wip_recipe_no := p_wip_recipe_no;

3977: where_clause := where_clause ||'AND gs.recipe_id = r.recipe_id ';
3978:
3979: IF p_wip_recipe_no IS NOT NULL
3980: THEN
3981: gmd_outbound_apis_pub.g_wip_recipe_no := p_wip_recipe_no;
3982: where_clause := where_clause||'AND r.recipe_no = :wip_recipe_no ';
3983: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no ';
3984: END IF;
3985:

Line 3983: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no ';

3979: IF p_wip_recipe_no IS NOT NULL
3980: THEN
3981: gmd_outbound_apis_pub.g_wip_recipe_no := p_wip_recipe_no;
3982: where_clause := where_clause||'AND r.recipe_no = :wip_recipe_no ';
3983: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no ';
3984: END IF;
3985:
3986: IF p_wip_recipe_version IS NOT NULL
3987: THEN

Line 3988: gmd_outbound_apis_pub.g_wip_recipe_version := p_wip_recipe_version;

3984: END IF;
3985:
3986: IF p_wip_recipe_version IS NOT NULL
3987: THEN
3988: gmd_outbound_apis_pub.g_wip_recipe_version := p_wip_recipe_version;
3989: where_clause := where_clause||'AND r.recipe_version = :wip_recipe_version ';
3990: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_version ';
3991: END IF;
3992: END IF;

Line 3990: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_version ';

3986: IF p_wip_recipe_version IS NOT NULL
3987: THEN
3988: gmd_outbound_apis_pub.g_wip_recipe_version := p_wip_recipe_version;
3989: where_clause := where_clause||'AND r.recipe_version = :wip_recipe_version ';
3990: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_version ';
3991: END IF;
3992: END IF;
3993:
3994: IF p_wip_recipe_id IS NOT NULL

Line 3996: gmd_outbound_apis_pub.g_wip_recipe_id := p_wip_recipe_id;

3992: END IF;
3993:
3994: IF p_wip_recipe_id IS NOT NULL
3995: THEN
3996: gmd_outbound_apis_pub.g_wip_recipe_id := p_wip_recipe_id;
3997: where_clause := where_clause||'AND r.recipe_id = :wip_recipe_id ';
3998: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_id ';
3999: END IF;
4000:

Line 3998: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_id ';

3994: IF p_wip_recipe_id IS NOT NULL
3995: THEN
3996: gmd_outbound_apis_pub.g_wip_recipe_id := p_wip_recipe_id;
3997: where_clause := where_clause||'AND r.recipe_id = :wip_recipe_id ';
3998: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_id ';
3999: END IF;
4000:
4001: -- BUG 3082684 - incorporate formula_vers
4002: IF p_wip_formula_no IS NOT NULL or p_wip_formula_version IS NOT NULL

Line 4009: gmd_outbound_apis_pub.g_wip_formula_no := p_wip_formula_no;

4005: where_clause := where_clause ||'AND gs.formula_id = ffm.formula_id ';
4006:
4007: IF p_wip_formula_no IS NOT NULL
4008: THEN
4009: gmd_outbound_apis_pub.g_wip_formula_no := p_wip_formula_no;
4010: where_clause := where_clause||'AND ffm.formula_no = :wip_formula_no ';
4011: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_no ';
4012: END IF;
4013:

Line 4011: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_no ';

4007: IF p_wip_formula_no IS NOT NULL
4008: THEN
4009: gmd_outbound_apis_pub.g_wip_formula_no := p_wip_formula_no;
4010: where_clause := where_clause||'AND ffm.formula_no = :wip_formula_no ';
4011: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_no ';
4012: END IF;
4013:
4014: IF p_wip_formula_version IS NOT NULL
4015: THEN

Line 4016: gmd_outbound_apis_pub.g_wip_formula_vers := p_wip_formula_version;

4012: END IF;
4013:
4014: IF p_wip_formula_version IS NOT NULL
4015: THEN
4016: gmd_outbound_apis_pub.g_wip_formula_vers := p_wip_formula_version;
4017: where_clause := where_clause||'AND ffm.formula_vers = :wip_formula_vers ';
4018: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers ';
4019: END IF;
4020: END IF;

Line 4018: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers ';

4014: IF p_wip_formula_version IS NOT NULL
4015: THEN
4016: gmd_outbound_apis_pub.g_wip_formula_vers := p_wip_formula_version;
4017: where_clause := where_clause||'AND ffm.formula_vers = :wip_formula_vers ';
4018: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers ';
4019: END IF;
4020: END IF;
4021:
4022: IF p_wip_formula_id IS NOT NULL

Line 4024: gmd_outbound_apis_pub.g_wip_formula_id := p_wip_formula_id;

4020: END IF;
4021:
4022: IF p_wip_formula_id IS NOT NULL
4023: THEN
4024: gmd_outbound_apis_pub.g_wip_formula_id := p_wip_formula_id;
4025: where_clause := where_clause||'AND gs.formula_id = :wip_formula_id ';
4026: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_id ';
4027: END IF;
4028:

Line 4026: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_id ';

4022: IF p_wip_formula_id IS NOT NULL
4023: THEN
4024: gmd_outbound_apis_pub.g_wip_formula_id := p_wip_formula_id;
4025: where_clause := where_clause||'AND gs.formula_id = :wip_formula_id ';
4026: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_id ';
4027: END IF;
4028:
4029: IF (p_wip_formulaline IS NOT NULL or p_wip_line_type IS NOT NULL)
4030: THEN

Line 4036: gmd_outbound_apis_pub.g_wip_formulaline := p_wip_formulaline;

4032: where_clause := where_clause ||'AND gs.formulaline_id = fmd.formulaline_id ';
4033:
4034: IF p_wip_formulaline IS NOT NULL
4035: THEN
4036: gmd_outbound_apis_pub.g_wip_formulaline := p_wip_formulaline;
4037: where_clause := where_clause||'AND fmd.line_no = :wip_formulaline ';
4038: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline ';
4039: END IF;
4040:

Line 4038: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline ';

4034: IF p_wip_formulaline IS NOT NULL
4035: THEN
4036: gmd_outbound_apis_pub.g_wip_formulaline := p_wip_formulaline;
4037: where_clause := where_clause||'AND fmd.line_no = :wip_formulaline ';
4038: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline ';
4039: END IF;
4040:
4041: IF p_wip_line_type IS NOT NULL
4042: THEN

Line 4043: gmd_outbound_apis_pub.g_wip_line_type := p_wip_line_type;

4039: END IF;
4040:
4041: IF p_wip_line_type IS NOT NULL
4042: THEN
4043: gmd_outbound_apis_pub.g_wip_line_type := p_wip_line_type;
4044: where_clause := where_clause||'AND fmd.line_type = :wip_line_type ';
4045: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_line_type ';
4046: END IF;
4047: END IF;

Line 4045: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_line_type ';

4041: IF p_wip_line_type IS NOT NULL
4042: THEN
4043: gmd_outbound_apis_pub.g_wip_line_type := p_wip_line_type;
4044: where_clause := where_clause||'AND fmd.line_type = :wip_line_type ';
4045: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_line_type ';
4046: END IF;
4047: END IF;
4048:
4049: IF p_wip_formulaline_id IS NOT NULL

Line 4051: gmd_outbound_apis_pub.g_wip_formulaline_id := p_wip_formulaline_id;

4047: END IF;
4048:
4049: IF p_wip_formulaline_id IS NOT NULL
4050: THEN
4051: gmd_outbound_apis_pub.g_wip_formulaline_id := p_wip_formulaline_id;
4052: where_clause := where_clause||'AND gs.formulaline_id = :wip_formulaline_id ';
4053: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id ';
4054: END IF;
4055:

Line 4053: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id ';

4049: IF p_wip_formulaline_id IS NOT NULL
4050: THEN
4051: gmd_outbound_apis_pub.g_wip_formulaline_id := p_wip_formulaline_id;
4052: where_clause := where_clause||'AND gs.formulaline_id = :wip_formulaline_id ';
4053: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id ';
4054: END IF;
4055:
4056: IF (p_wip_routing_no IS NOT NULL or p_wip_routing_vers IS NOT NULL)
4057: THEN

Line 4063: gmd_outbound_apis_pub.g_wip_routing_no := p_wip_routing_no;

4059: where_clause := where_clause ||'AND gs.routing_id = grout.routing_id ';
4060:
4061: IF p_wip_routing_no IS NOT NULL
4062: THEN
4063: gmd_outbound_apis_pub.g_wip_routing_no := p_wip_routing_no;
4064: where_clause := where_clause||'AND grout.routing_no = :wip_routing_no ';
4065: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_no ';
4066: END IF;
4067:

Line 4065: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_no ';

4061: IF p_wip_routing_no IS NOT NULL
4062: THEN
4063: gmd_outbound_apis_pub.g_wip_routing_no := p_wip_routing_no;
4064: where_clause := where_clause||'AND grout.routing_no = :wip_routing_no ';
4065: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_no ';
4066: END IF;
4067:
4068: IF p_wip_routing_vers IS NOT NULL
4069: THEN

Line 4070: gmd_outbound_apis_pub.g_wip_routing_vers := p_wip_routing_vers;

4066: END IF;
4067:
4068: IF p_wip_routing_vers IS NOT NULL
4069: THEN
4070: gmd_outbound_apis_pub.g_wip_routing_vers := p_wip_routing_vers;
4071: where_clause := where_clause||'AND grout.routing_vers = :wip_routing_vers ';
4072: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_vers ';
4073: END IF;
4074: END IF;

Line 4072: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_vers ';

4068: IF p_wip_routing_vers IS NOT NULL
4069: THEN
4070: gmd_outbound_apis_pub.g_wip_routing_vers := p_wip_routing_vers;
4071: where_clause := where_clause||'AND grout.routing_vers = :wip_routing_vers ';
4072: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_vers ';
4073: END IF;
4074: END IF;
4075:
4076: IF p_wip_routing_id IS NOT NULL

Line 4078: gmd_outbound_apis_pub.g_wip_routing_id := p_wip_routing_id;

4074: END IF;
4075:
4076: IF p_wip_routing_id IS NOT NULL
4077: THEN
4078: gmd_outbound_apis_pub.g_wip_routing_id := p_wip_routing_id;
4079: where_clause := where_clause||'AND gs.routing_id = :wip_routing_id ';
4080: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_id ';
4081: END IF;
4082:

Line 4080: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_id ';

4076: IF p_wip_routing_id IS NOT NULL
4077: THEN
4078: gmd_outbound_apis_pub.g_wip_routing_id := p_wip_routing_id;
4079: where_clause := where_clause||'AND gs.routing_id = :wip_routing_id ';
4080: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_id ';
4081: END IF;
4082:
4083:
4084: IF p_wip_batchstep_no IS NOT NULL

Line 4086: gmd_outbound_apis_pub.g_wip_batchstep_no := p_wip_batchstep_no;

4082:
4083:
4084: IF p_wip_batchstep_no IS NOT NULL
4085: THEN
4086: gmd_outbound_apis_pub.g_wip_batchstep_no := p_wip_batchstep_no;
4087: where_clause := where_clause||'AND gs.step_no = :wip_batchstep_no ';
4088: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_no ';
4089: END IF;
4090:

Line 4088: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_no ';

4084: IF p_wip_batchstep_no IS NOT NULL
4085: THEN
4086: gmd_outbound_apis_pub.g_wip_batchstep_no := p_wip_batchstep_no;
4087: where_clause := where_clause||'AND gs.step_no = :wip_batchstep_no ';
4088: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_no ';
4089: END IF;
4090:
4091: IF p_wip_batchstep_id IS NOT NULL
4092: THEN

Line 4093: gmd_outbound_apis_pub.g_wip_batchstep_id := p_wip_batchstep_id;

4089: END IF;
4090:
4091: IF p_wip_batchstep_id IS NOT NULL
4092: THEN
4093: gmd_outbound_apis_pub.g_wip_batchstep_id := p_wip_batchstep_id;
4094: where_clause := where_clause||'AND gs.step_id = :wip_batchstep_id ';
4095: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_id ';
4096: END IF;
4097:

Line 4095: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_id ';

4091: IF p_wip_batchstep_id IS NOT NULL
4092: THEN
4093: gmd_outbound_apis_pub.g_wip_batchstep_id := p_wip_batchstep_id;
4094: where_clause := where_clause||'AND gs.step_id = :wip_batchstep_id ';
4095: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_id ';
4096: END IF;
4097:
4098: IF (p_wip_oprn_no IS NOT NULL or p_wip_oprn_vers IS NOT NULL )
4099: THEN

Line 4105: gmd_outbound_apis_pub.g_wip_oprn_no := p_wip_oprn_no;

4101: where_clause := where_clause ||'AND gs.oprn_id = go.oprn_id ';
4102:
4103: IF p_wip_oprn_no IS NOT NULL
4104: THEN
4105: gmd_outbound_apis_pub.g_wip_oprn_no := p_wip_oprn_no;
4106: where_clause := where_clause||'AND go.oprn_no = :wip_oprn_no ';
4107: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no ';
4108: END IF;
4109:

Line 4107: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no ';

4103: IF p_wip_oprn_no IS NOT NULL
4104: THEN
4105: gmd_outbound_apis_pub.g_wip_oprn_no := p_wip_oprn_no;
4106: where_clause := where_clause||'AND go.oprn_no = :wip_oprn_no ';
4107: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no ';
4108: END IF;
4109:
4110: IF p_wip_oprn_vers IS NOT NULL
4111: THEN

Line 4112: gmd_outbound_apis_pub.g_wip_oprn_vers := p_wip_oprn_vers;

4108: END IF;
4109:
4110: IF p_wip_oprn_vers IS NOT NULL
4111: THEN
4112: gmd_outbound_apis_pub.g_wip_oprn_vers := p_wip_oprn_vers;
4113: where_clause := where_clause||'AND go.oprn_vers = :wip_oprn_vers ';
4114: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers ';
4115: END IF;
4116: END IF;

Line 4114: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers ';

4110: IF p_wip_oprn_vers IS NOT NULL
4111: THEN
4112: gmd_outbound_apis_pub.g_wip_oprn_vers := p_wip_oprn_vers;
4113: where_clause := where_clause||'AND go.oprn_vers = :wip_oprn_vers ';
4114: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers ';
4115: END IF;
4116: END IF;
4117:
4118: IF p_wip_oprn_id IS NOT NULL

Line 4120: gmd_outbound_apis_pub.g_wip_oprn_id := p_wip_oprn_id;

4116: END IF;
4117:
4118: IF p_wip_oprn_id IS NOT NULL
4119: THEN
4120: gmd_outbound_apis_pub.g_wip_oprn_id := p_wip_oprn_id;
4121: where_clause := where_clause||'AND gs.oprn_id = :wip_oprn_id ';
4122: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id ';
4123: END IF;
4124:

Line 4122: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id ';

4118: IF p_wip_oprn_id IS NOT NULL
4119: THEN
4120: gmd_outbound_apis_pub.g_wip_oprn_id := p_wip_oprn_id;
4121: where_clause := where_clause||'AND gs.oprn_id = :wip_oprn_id ';
4122: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id ';
4123: END IF;
4124:
4125: IF p_cust_name IS NOT NULL
4126: THEN

Line 4130: gmd_outbound_apis_pub.g_cust_name := p_cust_name;

4126: THEN
4127: table_list := table_list ||', hz_cust_accounts_all hca, hz_parties hp ';
4128: where_clause := where_clause ||'AND gs.cust_id = hca.cust_account_id and hca.party_id = hp.party_id ';
4129:
4130: gmd_outbound_apis_pub.g_cust_name := p_cust_name;
4131: where_clause := where_clause||'AND hp.party_name = :cust_name ';
4132: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_name ';
4133: END IF;
4134:

Line 4132: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_name ';

4128: where_clause := where_clause ||'AND gs.cust_id = hca.cust_account_id and hca.party_id = hp.party_id ';
4129:
4130: gmd_outbound_apis_pub.g_cust_name := p_cust_name;
4131: where_clause := where_clause||'AND hp.party_name = :cust_name ';
4132: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_name ';
4133: END IF;
4134:
4135: IF p_cust_id IS NOT NULL
4136: THEN

Line 4137: gmd_outbound_apis_pub.g_cust_id := p_cust_id;

4133: END IF;
4134:
4135: IF p_cust_id IS NOT NULL
4136: THEN
4137: gmd_outbound_apis_pub.g_cust_id := p_cust_id;
4138: where_clause := where_clause||'AND gs.cust_id = :cust_id ';
4139: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_id ';
4140: END IF;
4141:

Line 4139: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_id ';

4135: IF p_cust_id IS NOT NULL
4136: THEN
4137: gmd_outbound_apis_pub.g_cust_id := p_cust_id;
4138: where_clause := where_clause||'AND gs.cust_id = :cust_id ';
4139: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_id ';
4140: END IF;
4141:
4142: IF p_org_id IS NOT NULL
4143: THEN

Line 4144: gmd_outbound_apis_pub.g_org_id := p_org_id;

4140: END IF;
4141:
4142: IF p_org_id IS NOT NULL
4143: THEN
4144: gmd_outbound_apis_pub.g_org_id := p_org_id;
4145: where_clause := where_clause||'AND gs.org_id = :org_id ';
4146: using_clause := using_clause||', gmd_outbound_apis_pub.g_org_id ';
4147: END IF;
4148:

Line 4146: using_clause := using_clause||', gmd_outbound_apis_pub.g_org_id ';

4142: IF p_org_id IS NOT NULL
4143: THEN
4144: gmd_outbound_apis_pub.g_org_id := p_org_id;
4145: where_clause := where_clause||'AND gs.org_id = :org_id ';
4146: using_clause := using_clause||', gmd_outbound_apis_pub.g_org_id ';
4147: END IF;
4148:
4149: IF p_cust_ship_to_site_id IS NOT NULL
4150: THEN

Line 4151: gmd_outbound_apis_pub.g_cust_ship_to_site_id := p_cust_ship_to_site_id;

4147: END IF;
4148:
4149: IF p_cust_ship_to_site_id IS NOT NULL
4150: THEN
4151: gmd_outbound_apis_pub.g_cust_ship_to_site_id := p_cust_ship_to_site_id;
4152: where_clause := where_clause||'AND gs.ship_to_site_id = :cust_ship_to_site_id ';
4153: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_ship_to_site_id ';
4154: END IF;
4155: -- dbms_output.put_line('after shipto site id');

Line 4153: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_ship_to_site_id ';

4149: IF p_cust_ship_to_site_id IS NOT NULL
4150: THEN
4151: gmd_outbound_apis_pub.g_cust_ship_to_site_id := p_cust_ship_to_site_id;
4152: where_clause := where_clause||'AND gs.ship_to_site_id = :cust_ship_to_site_id ';
4153: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_ship_to_site_id ';
4154: END IF;
4155: -- dbms_output.put_line('after shipto site id');
4156:
4157: IF p_cust_order is NOT NULL or p_cust_order_type is NOT NULL

Line 4164: gmd_outbound_apis_pub.g_cust_order := p_cust_order;

4160: where_clause := where_clause ||'AND gs.order_id = ooh.header_id ';
4161:
4162: IF p_cust_order IS NOT NULL
4163: THEN
4164: gmd_outbound_apis_pub.g_cust_order := p_cust_order;
4165: where_clause := where_clause||'AND ooh.order_number = :cust_order ';
4166: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order ';
4167: END IF;
4168:

Line 4166: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order ';

4162: IF p_cust_order IS NOT NULL
4163: THEN
4164: gmd_outbound_apis_pub.g_cust_order := p_cust_order;
4165: where_clause := where_clause||'AND ooh.order_number = :cust_order ';
4166: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order ';
4167: END IF;
4168:
4169: IF p_cust_order_type IS NOT NULL
4170: THEN

Line 4174: gmd_outbound_apis_pub.g_cust_order_type := p_cust_order_type;

4170: THEN
4171: table_list := table_list ||', oe_transaction_types_all ott ';
4172: where_clause := where_clause ||'AND ooh.order_type_id = ott.transaction_type_id ';
4173:
4174: gmd_outbound_apis_pub.g_cust_order_type := p_cust_order_type;
4175: where_clause := where_clause||'AND ott.transaction_type_code = :cust_order_type ';
4176: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_type ';
4177: END IF;
4178: END IF;

Line 4176: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_type ';

4172: where_clause := where_clause ||'AND ooh.order_type_id = ott.transaction_type_id ';
4173:
4174: gmd_outbound_apis_pub.g_cust_order_type := p_cust_order_type;
4175: where_clause := where_clause||'AND ott.transaction_type_code = :cust_order_type ';
4176: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_type ';
4177: END IF;
4178: END IF;
4179:
4180: IF p_cust_order_id IS NOT NULL

Line 4182: gmd_outbound_apis_pub.g_cust_order_id := p_cust_order_id;

4178: END IF;
4179:
4180: IF p_cust_order_id IS NOT NULL
4181: THEN
4182: gmd_outbound_apis_pub.g_cust_order_id := p_cust_order_id;
4183: where_clause := where_clause||'AND gs.order_id = :cust_order_id ';
4184: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_id ';
4185: END IF;
4186:

Line 4184: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_id ';

4180: IF p_cust_order_id IS NOT NULL
4181: THEN
4182: gmd_outbound_apis_pub.g_cust_order_id := p_cust_order_id;
4183: where_clause := where_clause||'AND gs.order_id = :cust_order_id ';
4184: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_id ';
4185: END IF;
4186:
4187: IF p_cust_order_line IS NOT NULL
4188: THEN

Line 4192: gmd_outbound_apis_pub.g_cust_order_line := p_cust_order_line;

4188: THEN
4189: table_list := table_list ||', oe_order_lines_all ool ';
4190: where_clause := where_clause ||'AND gs.order_line_id = ool.line_id ';
4191:
4192: gmd_outbound_apis_pub.g_cust_order_line := p_cust_order_line;
4193: where_clause := where_clause||'AND ool.line_number = :cust_order_line ';
4194: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line ';
4195: END IF;
4196:

Line 4194: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line ';

4190: where_clause := where_clause ||'AND gs.order_line_id = ool.line_id ';
4191:
4192: gmd_outbound_apis_pub.g_cust_order_line := p_cust_order_line;
4193: where_clause := where_clause||'AND ool.line_number = :cust_order_line ';
4194: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line ';
4195: END IF;
4196:
4197: IF p_cust_order_line_id IS NOT NULL
4198: THEN

Line 4199: gmd_outbound_apis_pub.g_cust_order_line_id := p_cust_order_line_id;

4195: END IF;
4196:
4197: IF p_cust_order_line_id IS NOT NULL
4198: THEN
4199: gmd_outbound_apis_pub.g_cust_order_line_id := p_cust_order_line_id;
4200: where_clause := where_clause||'AND gs.order_line_id = :cust_order_line_id ';
4201: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line_id ';
4202: END IF;
4203:

Line 4201: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line_id ';

4197: IF p_cust_order_line_id IS NOT NULL
4198: THEN
4199: gmd_outbound_apis_pub.g_cust_order_line_id := p_cust_order_line_id;
4200: where_clause := where_clause||'AND gs.order_line_id = :cust_order_line_id ';
4201: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line_id ';
4202: END IF;
4203:
4204: IF p_supplier IS NOT NULL
4205: THEN

Line 4209: gmd_outbound_apis_pub.g_supplier := p_supplier;

4205: THEN
4206: table_list := table_list ||', po_vendors v ';
4207: where_clause := where_clause ||'AND gs.supplier_id = v.vendor_id ';
4208:
4209: gmd_outbound_apis_pub.g_supplier := p_supplier;
4210: where_clause := where_clause||'AND v.vendor_name = :supplier '; -- 5335829 rework - changed from segment1
4211: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier ';
4212: END IF;
4213:

Line 4211: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier ';

4207: where_clause := where_clause ||'AND gs.supplier_id = v.vendor_id ';
4208:
4209: gmd_outbound_apis_pub.g_supplier := p_supplier;
4210: where_clause := where_clause||'AND v.vendor_name = :supplier '; -- 5335829 rework - changed from segment1
4211: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier ';
4212: END IF;
4213:
4214: IF p_supplier_id IS NOT NULL
4215: THEN

Line 4216: gmd_outbound_apis_pub.g_supplier_id := p_supplier_id;

4212: END IF;
4213:
4214: IF p_supplier_id IS NOT NULL
4215: THEN
4216: gmd_outbound_apis_pub.g_supplier_id := p_supplier_id;
4217: where_clause := where_clause||'AND gs.supplier_id = :supplier_id ';
4218: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_id ';
4219: END IF;
4220:

Line 4218: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_id ';

4214: IF p_supplier_id IS NOT NULL
4215: THEN
4216: gmd_outbound_apis_pub.g_supplier_id := p_supplier_id;
4217: where_clause := where_clause||'AND gs.supplier_id = :supplier_id ';
4218: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_id ';
4219: END IF;
4220:
4221: IF p_supplier_site_id IS NOT NULL
4222: THEN

Line 4223: gmd_outbound_apis_pub.g_supplier_site_id := p_supplier_site_id;

4219: END IF;
4220:
4221: IF p_supplier_site_id IS NOT NULL
4222: THEN
4223: gmd_outbound_apis_pub.g_supplier_site_id := p_supplier_site_id;
4224: where_clause := where_clause||'AND gs.supplier_site_id = :supplier_site_id ';
4225: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_site_id ';
4226: END IF;
4227:

Line 4225: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_site_id ';

4221: IF p_supplier_site_id IS NOT NULL
4222: THEN
4223: gmd_outbound_apis_pub.g_supplier_site_id := p_supplier_site_id;
4224: where_clause := where_clause||'AND gs.supplier_site_id = :supplier_site_id ';
4225: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_site_id ';
4226: END IF;
4227:
4228: IF p_supplier_po IS NOT NULL
4229: THEN

Line 4233: gmd_outbound_apis_pub.g_supplier_po := p_supplier_po;

4229: THEN
4230: table_list := table_list ||', po_headers_all ph ';
4231: where_clause := where_clause ||'AND gs.po_header_id = ph.po_header_id ';
4232:
4233: gmd_outbound_apis_pub.g_supplier_po := p_supplier_po;
4234: where_clause := where_clause||'AND ph.segment1 = :supplier_po ';
4235: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po ';
4236: END IF;
4237:

Line 4235: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po ';

4231: where_clause := where_clause ||'AND gs.po_header_id = ph.po_header_id ';
4232:
4233: gmd_outbound_apis_pub.g_supplier_po := p_supplier_po;
4234: where_clause := where_clause||'AND ph.segment1 = :supplier_po ';
4235: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po ';
4236: END IF;
4237:
4238: IF p_supplier_po_id IS NOT NULL
4239: THEN

Line 4240: gmd_outbound_apis_pub.g_supplier_po_id := p_supplier_po_id;

4236: END IF;
4237:
4238: IF p_supplier_po_id IS NOT NULL
4239: THEN
4240: gmd_outbound_apis_pub.g_supplier_po_id := p_supplier_po_id;
4241: where_clause := where_clause||'AND gs.po_header_id = :supplier_po_id ';
4242: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_id ';
4243: END IF;
4244:

Line 4242: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_id ';

4238: IF p_supplier_po_id IS NOT NULL
4239: THEN
4240: gmd_outbound_apis_pub.g_supplier_po_id := p_supplier_po_id;
4241: where_clause := where_clause||'AND gs.po_header_id = :supplier_po_id ';
4242: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_id ';
4243: END IF;
4244:
4245: IF p_supplier_po_line IS NOT NULL
4246: THEN

Line 4250: gmd_outbound_apis_pub.g_supplier_po_line := p_supplier_po_line;

4246: THEN
4247: table_list := table_list ||', po_lines_all pl ';
4248: where_clause := where_clause ||'AND gs.po_line_id = pl.po_line_id ';
4249:
4250: gmd_outbound_apis_pub.g_supplier_po_line := p_supplier_po_line;
4251: where_clause := where_clause||'AND pl.line_num = :supplier_po_line ';
4252: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line ';
4253: END IF;
4254:

Line 4252: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line ';

4248: where_clause := where_clause ||'AND gs.po_line_id = pl.po_line_id ';
4249:
4250: gmd_outbound_apis_pub.g_supplier_po_line := p_supplier_po_line;
4251: where_clause := where_clause||'AND pl.line_num = :supplier_po_line ';
4252: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line ';
4253: END IF;
4254:
4255: IF p_supplier_po_line_id IS NOT NULL
4256: THEN

Line 4257: gmd_outbound_apis_pub.g_supplier_po_line_id := p_supplier_po_line_id;

4253: END IF;
4254:
4255: IF p_supplier_po_line_id IS NOT NULL
4256: THEN
4257: gmd_outbound_apis_pub.g_supplier_po_line_id := p_supplier_po_line_id;
4258: where_clause := where_clause||'AND gs.po_line_id = :supplier_po_line_id ';
4259: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id ';
4260: END IF;
4261:

Line 4259: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id ';

4255: IF p_supplier_po_line_id IS NOT NULL
4256: THEN
4257: gmd_outbound_apis_pub.g_supplier_po_line_id := p_supplier_po_line_id;
4258: where_clause := where_clause||'AND gs.po_line_id = :supplier_po_line_id ';
4259: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id ';
4260: END IF;
4261:
4262: IF p_from_last_update_date IS NOT NULL
4263: THEN

Line 4264: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

4260: END IF;
4261:
4262: IF p_from_last_update_date IS NOT NULL
4263: THEN
4264: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
4265: where_clause := where_clause||'AND gs.last_update_date >= :from_last_update_date ';
4266: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
4267: END IF;
4268:

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

4262: IF p_from_last_update_date IS NOT NULL
4263: THEN
4264: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
4265: where_clause := where_clause||'AND gs.last_update_date >= :from_last_update_date ';
4266: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
4267: END IF;
4268:
4269: IF p_to_last_update_date IS NOT NULL
4270: THEN

Line 4271: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

4267: END IF;
4268:
4269: IF p_to_last_update_date IS NOT NULL
4270: THEN
4271: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
4272: where_clause := where_clause||'AND gs.last_update_date <= :to_last_update_date ';
4273: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
4274: END IF;
4275:

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

4269: IF p_to_last_update_date IS NOT NULL
4270: THEN
4271: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
4272: where_clause := where_clause||'AND gs.last_update_date <= :to_last_update_date ';
4273: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
4274: END IF;
4275:
4276: IF p_delete_mark IS NOT NULL
4277: THEN

Line 4278: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;

4274: END IF;
4275:
4276: IF p_delete_mark IS NOT NULL
4277: THEN
4278: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
4279: where_clause := where_clause||'AND gs.delete_mark = :delete_mark ';
4280: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
4281: END IF;
4282:

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

4276: IF p_delete_mark IS NOT NULL
4277: THEN
4278: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
4279: where_clause := where_clause||'AND gs.delete_mark = :delete_mark ';
4280: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
4281: END IF;
4282:
4283: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
4284: IF p_from_date_received IS NOT NULL

Line 4286: gmd_outbound_apis_pub.g_from_date_received := p_from_date_received;

4282:
4283: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
4284: IF p_from_date_received IS NOT NULL
4285: THEN
4286: gmd_outbound_apis_pub.g_from_date_received := p_from_date_received;
4287: where_clause := where_clause||'AND gs.date_received >= :from_date_received ';
4288: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_received ';
4289: END IF;
4290:

Line 4288: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_received ';

4284: IF p_from_date_received IS NOT NULL
4285: THEN
4286: gmd_outbound_apis_pub.g_from_date_received := p_from_date_received;
4287: where_clause := where_clause||'AND gs.date_received >= :from_date_received ';
4288: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_received ';
4289: END IF;
4290:
4291: IF p_to_date_received IS NOT NULL
4292: THEN

Line 4293: gmd_outbound_apis_pub.g_to_date_received := p_to_date_received;

4289: END IF;
4290:
4291: IF p_to_date_received IS NOT NULL
4292: THEN
4293: gmd_outbound_apis_pub.g_to_date_received := p_to_date_received;
4294: where_clause := where_clause||'AND gs.date_received <= :to_date_received ';
4295: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_received ';
4296: END IF;
4297:

Line 4295: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_received ';

4291: IF p_to_date_received IS NOT NULL
4292: THEN
4293: gmd_outbound_apis_pub.g_to_date_received := p_to_date_received;
4294: where_clause := where_clause||'AND gs.date_received <= :to_date_received ';
4295: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_received ';
4296: END IF;
4297:
4298: IF p_from_date_required IS NOT NULL
4299: THEN

Line 4300: gmd_outbound_apis_pub.g_from_date_required := p_from_date_required;

4296: END IF;
4297:
4298: IF p_from_date_required IS NOT NULL
4299: THEN
4300: gmd_outbound_apis_pub.g_from_date_required := p_from_date_required;
4301: where_clause := where_clause||'AND gs.date_required >= :from_date_required ';
4302: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_required ';
4303: END IF;
4304:

Line 4302: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_required ';

4298: IF p_from_date_required IS NOT NULL
4299: THEN
4300: gmd_outbound_apis_pub.g_from_date_required := p_from_date_required;
4301: where_clause := where_clause||'AND gs.date_required >= :from_date_required ';
4302: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_required ';
4303: END IF;
4304:
4305: IF p_to_date_required IS NOT NULL
4306: THEN

Line 4307: gmd_outbound_apis_pub.g_to_date_required := p_to_date_required;

4303: END IF;
4304:
4305: IF p_to_date_required IS NOT NULL
4306: THEN
4307: gmd_outbound_apis_pub.g_to_date_required := p_to_date_required;
4308: where_clause := where_clause||'AND gs.date_required <= :to_date_required ';
4309: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_required ';
4310: END IF;
4311:

Line 4309: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_required ';

4305: IF p_to_date_required IS NOT NULL
4306: THEN
4307: gmd_outbound_apis_pub.g_to_date_required := p_to_date_required;
4308: where_clause := where_clause||'AND gs.date_required <= :to_date_required ';
4309: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_required ';
4310: END IF;
4311:
4312: IF p_resources IS NOT NULL
4313: THEN

Line 4314: gmd_outbound_apis_pub.g_resources := p_resources;

4310: END IF;
4311:
4312: IF p_resources IS NOT NULL
4313: THEN
4314: gmd_outbound_apis_pub.g_resources := p_resources;
4315: where_clause := where_clause||'AND gs.resources = :resources ';
4316: using_clause := using_clause||', gmd_outbound_apis_pub.g_resources ';
4317: END IF;
4318:

Line 4316: using_clause := using_clause||', gmd_outbound_apis_pub.g_resources ';

4312: IF p_resources IS NOT NULL
4313: THEN
4314: gmd_outbound_apis_pub.g_resources := p_resources;
4315: where_clause := where_clause||'AND gs.resources = :resources ';
4316: using_clause := using_clause||', gmd_outbound_apis_pub.g_resources ';
4317: END IF;
4318:
4319: -- dbms_output.put_line('after resources');
4320: IF p_instance_id IS NOT NULL

Line 4322: gmd_outbound_apis_pub.g_instance_id := p_instance_id;

4318:
4319: -- dbms_output.put_line('after resources');
4320: IF p_instance_id IS NOT NULL
4321: THEN
4322: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
4323: where_clause := where_clause||'AND gs.instance_id = :instance_id ';
4324: using_clause := using_clause||', gmd_outbound_apis_pub.g_instance_id ';
4325: END IF;
4326:

Line 4324: using_clause := using_clause||', gmd_outbound_apis_pub.g_instance_id ';

4320: IF p_instance_id IS NOT NULL
4321: THEN
4322: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
4323: where_clause := where_clause||'AND gs.instance_id = :instance_id ';
4324: using_clause := using_clause||', gmd_outbound_apis_pub.g_instance_id ';
4325: END IF;
4326:
4327: IF p_from_retrieval_date IS NOT NULL
4328: THEN

Line 4329: gmd_outbound_apis_pub.g_from_retrieval_date := p_from_retrieval_date;

4325: END IF;
4326:
4327: IF p_from_retrieval_date IS NOT NULL
4328: THEN
4329: gmd_outbound_apis_pub.g_from_retrieval_date := p_from_retrieval_date;
4330: where_clause := where_clause||'AND gs.retrieval_date >= :from_retrieval_date ';
4331: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_retrieval_date ';
4332: END IF;
4333:

Line 4331: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_retrieval_date ';

4327: IF p_from_retrieval_date IS NOT NULL
4328: THEN
4329: gmd_outbound_apis_pub.g_from_retrieval_date := p_from_retrieval_date;
4330: where_clause := where_clause||'AND gs.retrieval_date >= :from_retrieval_date ';
4331: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_retrieval_date ';
4332: END IF;
4333:
4334: IF p_to_retrieval_date IS NOT NULL
4335: THEN

Line 4336: gmd_outbound_apis_pub.g_to_retrieval_date := p_to_retrieval_date;

4332: END IF;
4333:
4334: IF p_to_retrieval_date IS NOT NULL
4335: THEN
4336: gmd_outbound_apis_pub.g_to_retrieval_date := p_to_retrieval_date;
4337: where_clause := where_clause||'AND gs.retrieval_date <= :to_retrieval_date ';
4338: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_retrieval_date ';
4339: END IF;
4340:

Line 4338: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_retrieval_date ';

4334: IF p_to_retrieval_date IS NOT NULL
4335: THEN
4336: gmd_outbound_apis_pub.g_to_retrieval_date := p_to_retrieval_date;
4337: where_clause := where_clause||'AND gs.retrieval_date <= :to_retrieval_date ';
4338: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_retrieval_date ';
4339: END IF;
4340:
4341: IF p_sample_type IS NOT NULL
4342: THEN

Line 4343: gmd_outbound_apis_pub.g_sample_type := p_sample_type;

4339: END IF;
4340:
4341: IF p_sample_type IS NOT NULL
4342: THEN
4343: gmd_outbound_apis_pub.g_sample_type := p_sample_type;
4344: where_clause := where_clause||'AND gs.sample_type = :sample_type ';
4345: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_type ';
4346: END IF;
4347:

Line 4345: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_type ';

4341: IF p_sample_type IS NOT NULL
4342: THEN
4343: gmd_outbound_apis_pub.g_sample_type := p_sample_type;
4344: where_clause := where_clause||'AND gs.sample_type = :sample_type ';
4345: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_type ';
4346: END IF;
4347:
4348: l_ss_table_included := 'FALSE';
4349: IF (p_ss_organization_id IS NOT NULL OR p_ss_no IS NOT NULL OR p_ss_id IS NOT NULL) THEN

Line 4356: gmd_outbound_apis_pub.g_ss_id := p_ss_id;

4352: l_ss_table_included := 'TRUE';
4353:
4354: IF p_ss_id IS NOT NULL
4355: THEN
4356: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
4357: where_clause := where_clause||'AND ss.ss_id = :ss_id ';
4358: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_id ';
4359: END IF;
4360:

Line 4358: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_id ';

4354: IF p_ss_id IS NOT NULL
4355: THEN
4356: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
4357: where_clause := where_clause||'AND ss.ss_id = :ss_id ';
4358: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_id ';
4359: END IF;
4360:
4361: IF p_ss_organization_id IS NOT NULL
4362: THEN

Line 4363: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;

4359: END IF;
4360:
4361: IF p_ss_organization_id IS NOT NULL
4362: THEN
4363: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
4364: where_clause := where_clause||'AND ss.organization_id = :ss_organization_id ';
4365: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
4366: END IF;
4367:

Line 4365: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';

4361: IF p_ss_organization_id IS NOT NULL
4362: THEN
4363: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
4364: where_clause := where_clause||'AND ss.organization_id = :ss_organization_id ';
4365: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
4366: END IF;
4367:
4368: IF p_ss_no IS NOT NULL
4369: THEN

Line 4370: gmd_outbound_apis_pub.g_ss_no := p_ss_no;

4366: END IF;
4367:
4368: IF p_ss_no IS NOT NULL
4369: THEN
4370: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
4371: where_clause := where_clause||'AND ss.ss_no = :ss_no ';
4372: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_no ';
4373: END IF;
4374:

Line 4372: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_no ';

4368: IF p_ss_no IS NOT NULL
4369: THEN
4370: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
4371: where_clause := where_clause||'AND ss.ss_no = :ss_no ';
4372: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_no ';
4373: END IF;
4374:
4375: END IF;
4376:

Line 4384: gmd_outbound_apis_pub.g_variant_no := p_variant_no;

4380: table_list := table_list ||', gmd_ss_variants ssv ';
4381: where_clause := where_clause ||'AND ssv.variant_id = gs.variant_id ';
4382: END IF;
4383:
4384: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
4385: where_clause := where_clause||'AND ssv.variant_no = :variant_no ';
4386: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_no ';
4387: END IF;
4388:

Line 4386: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_no ';

4382: END IF;
4383:
4384: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
4385: where_clause := where_clause||'AND ssv.variant_no = :variant_no ';
4386: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_no ';
4387: END IF;
4388:
4389: IF p_variant_id IS NOT NULL
4390: THEN

Line 4391: gmd_outbound_apis_pub.g_variant_id := p_variant_id;

4387: END IF;
4388:
4389: IF p_variant_id IS NOT NULL
4390: THEN
4391: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
4392: where_clause := where_clause||'AND gs.variant_id = :variant_id ';
4393: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_id ';
4394: END IF;
4395: -- dbms_output.put_line('after variant_id');

Line 4393: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_id ';

4389: IF p_variant_id IS NOT NULL
4390: THEN
4391: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
4392: where_clause := where_clause||'AND gs.variant_id = :variant_id ';
4393: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_id ';
4394: END IF;
4395: -- dbms_output.put_line('after variant_id');
4396:
4397: IF p_time_point_id IS NOT NULL

Line 4399: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;

4395: -- dbms_output.put_line('after variant_id');
4396:
4397: IF p_time_point_id IS NOT NULL
4398: THEN
4399: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
4400: where_clause := where_clause||'AND gs.time_point_id = :time_point_id ';
4401: using_clause := using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
4402: END IF;
4403:

Line 4401: using_clause := using_clause||', gmd_outbound_apis_pub.g_time_point_id ';

4397: IF p_time_point_id IS NOT NULL
4398: THEN
4399: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
4400: where_clause := where_clause||'AND gs.time_point_id = :time_point_id ';
4401: using_clause := using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
4402: END IF;
4403:
4404: -- END B3124291 Incorporated Mini-Pack K Features to Outboud APIs
4405:

Line 4409: gmd_outbound_apis_pub.g_retain_as := p_retain_as;

4405:
4406: -- START Incorporated Mini-Pack L Features to Outboud APIs
4407: IF p_retain_as IS NOT NULL
4408: THEN
4409: gmd_outbound_apis_pub.g_retain_as := p_retain_as;
4410: where_clause := where_clause||'AND gs.retain_as = :retain_as ';
4411: using_clause := using_clause||', gmd_outbound_apis_pub.g_retain_as ';
4412: END IF;
4413:

Line 4411: using_clause := using_clause||', gmd_outbound_apis_pub.g_retain_as ';

4407: IF p_retain_as IS NOT NULL
4408: THEN
4409: gmd_outbound_apis_pub.g_retain_as := p_retain_as;
4410: where_clause := where_clause||'AND gs.retain_as = :retain_as ';
4411: using_clause := using_clause||', gmd_outbound_apis_pub.g_retain_as ';
4412: END IF;
4413:
4414: -- END Incorporated Mini-Pack L Features to Outboud APIs
4415:

Line 4419: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_samples_table ';

4415:
4416:
4417: -- That's more or less the job done. We just need to tell the system where to store the data
4418:
4419: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_samples_table ';
4420:
4421: execution_string := 'BEGIN EXECUTE IMMEDIATE '
4422: ||''''
4423: ||sql_statement||column_list||table_list||where_clause

Line 4632: x_samples_table := gmd_outbound_apis_pub.g_samples_table;

4628: END IF;
4629:
4630: END LOOP;
4631:
4632: x_samples_table := gmd_outbound_apis_pub.g_samples_table;
4633: x_return_status := FND_API.G_RET_STS_SUCCESS;
4634: -- dbms_output.put_line('Returning table to caller');
4635:
4636: END IF;

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

4754:
4755: BEGIN
4756:
4757: IF NOT FND_API.Compatible_API_CALL
4758: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
4759: OR NOT initialized_ok(p_user_name)
4760: THEN
4761: Raise FND_API.G_EXC_UNEXPECTED_ERROR;
4762: ELSE

Line 4873: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_orgn_id';

4869: THEN
4870: g_orgn_id := p_organization_id;
4871: main_where_clause := main_where_clause
4872: ||' AND se.organization_id = :organization_id';
4873: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_orgn_id';
4874: END IF;
4875:
4876: IF p_from_sample_no IS NOT NULL OR p_to_sample_no IS NOT NULL
4877: THEN

Line 4885: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_sample_no';

4881: IF p_from_sample_no IS NOT NULL
4882: THEN
4883: g_from_sample_no := p_from_sample_no;
4884: main_where_clause := main_where_clause||' AND gsa.sample_no >= :from_sample';
4885: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_sample_no';
4886: END IF;
4887:
4888: IF p_to_sample_no IS NOT NULL
4889: THEN

Line 4892: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_sample_no';

4888: IF p_to_sample_no IS NOT NULL
4889: THEN
4890: g_to_sample_no := p_to_sample_no;
4891: main_where_clause := main_where_clause||' AND gsa.sample_no <= :to_sample';
4892: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_sample_no';
4893: END IF;
4894: END IF;
4895:
4896: /* Bug 3124627 - changed event_id to sampling_event_id */

Line 4903: ', gmd_outbound_apis_pub.g_sample_event_id';

4899: g_sample_event_id := p_sample_event_id;
4900: main_where_clause := main_where_clause||
4901: ' AND se.sampling_event_id = :sampling_event_id';
4902: main_using_clause := main_using_clause||
4903: ', gmd_outbound_apis_pub.g_sample_event_id';
4904: END IF;
4905:
4906: IF (p_from_item_number IS NOT NULL OR p_to_item_number IS NOT NULL ) THEN
4907: g_from_item_number := p_from_item_number;

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

4909: main_where_clause := main_where_clause
4910: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
4911: ||' WHERE concatenated_segments BETWEEN :from_item_number AND :to_item_number'
4912: ||' AND organization_id = gs.owner_organization_id)';
4913: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';
4914: END IF; -- (p_from_item_number IS NOT NULL OR p_to_item_number IS NOT NULL )
4915:
4916: -- Bug 4165704 invconv: code replaced by above
4917: --IF p_from_item_number IS NOT NULL THEN

Line 4920: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number';

4916: -- Bug 4165704 invconv: code replaced by above
4917: --IF p_from_item_number IS NOT NULL THEN
4918: --g_from_item_number := p_from_item_number;
4919: --main_where_clause := main_where_clause||' AND im.item_number >= :from_item';
4920: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number';
4921: --END IF;
4922: --IF p_to_item_number IS NOT NULL THEN
4923: --g_to_item_number := p_to_item_number;
4924: --main_where_clause := main_where_clause||' AND im.item_number <= :to_item';

Line 4925: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_item_number';

4921: --END IF;
4922: --IF p_to_item_number IS NOT NULL THEN
4923: --g_to_item_number := p_to_item_number;
4924: --main_where_clause := main_where_clause||' AND im.item_number <= :to_item';
4925: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_item_number';
4926: --END IF;
4927:
4928: IF p_inventory_item_id IS NOT NULL
4929: THEN

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

4928: IF p_inventory_item_id IS NOT NULL
4929: THEN
4930: g_inventory_item_id := p_inventory_item_id;
4931: main_where_clause := main_where_clause||' AND se.inventory_item_id = :inventory_item_id';
4932: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inventory_item_id';
4933: END IF;
4934:
4935: IF p_from_lot_number IS NOT NULL
4936: THEN

Line 4939: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_lot_number';

4935: IF p_from_lot_number IS NOT NULL
4936: THEN
4937: g_from_lot_number := p_from_lot_number;
4938: main_where_clause := main_where_clause||' AND se.lot_number >= :from_lot_number';
4939: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_lot_number';
4940: END IF;
4941:
4942: IF p_to_lot_number IS NOT NULL
4943: THEN

Line 4946: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_lot_number';

4942: IF p_to_lot_number IS NOT NULL
4943: THEN
4944: g_to_lot_number := p_to_lot_number;
4945: main_where_clause := main_where_clause||' AND se.lot_number <= :to_lot_number';
4946: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_lot_number';
4947: END IF;
4948:
4949: IF p_from_parent_lot_number IS NOT NULL
4950: THEN

Line 4953: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_parent_lot_number';

4949: IF p_from_parent_lot_number IS NOT NULL
4950: THEN
4951: g_from_parent_lot_number := p_from_parent_lot_number;
4952: main_where_clause := main_where_clause||' AND se.parent_lot_number >= :from_parent_lot_number';
4953: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_parent_lot_number';
4954: END IF;
4955:
4956: IF p_to_parent_lot_number IS NOT NULL
4957: THEN

Line 4960: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_parent_lot_number';

4956: IF p_to_parent_lot_number IS NOT NULL
4957: THEN
4958: g_to_parent_lot_number := p_to_parent_lot_number;
4959: main_where_clause := main_where_clause||' AND se.parent_lot_number <= :to_parent_lot_number';
4960: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_parent_lot_number';
4961: END IF;
4962:
4963: /* taken out for bug 4165704
4964: IF p_lot_id IS NOT NULL

Line 4968: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_lot_id';

4964: IF p_lot_id IS NOT NULL
4965: THEN
4966: g_lot_id := p_lot_id;
4967: main_where_clause := main_where_clause||' AND se.lot_id = :lot_id';
4968: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_lot_id';
4969: END IF;
4970: */
4971:
4972: IF p_subinventory IS NOT NULL

Line 4976: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_subinventory';

4972: IF p_subinventory IS NOT NULL
4973: THEN
4974: g_subinventory := p_subinventory;
4975: main_where_clause := main_where_clause||' AND se.subinventory = :subinventory';
4976: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_subinventory';
4977: END IF;
4978:
4979: IF p_locator_id IS NOT NULL
4980: THEN

Line 4983: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_locator_id';

4979: IF p_locator_id IS NOT NULL
4980: THEN
4981: g_locator_id := p_locator_id;
4982: main_where_clause := main_where_clause||' AND se.locator_id = :locator_id';
4983: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_locator_id';
4984: END IF;
4985:
4986: /* taken out for invconv bug 4165704
4987: IF p_location_id IS NOT NULL

Line 4993: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_location_id';

4989: g_location_id := p_location_id;
4990: main_table_list := main_table_list||', ic_loct_mst lm';
4991: main_where_clause := main_where_clause||' AND se.location = il.location'
4992: ||' AND il.inventory_location_id = :location_id';
4993: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_location_id';
4994: END IF;
4995: */
4996:
4997: IF p_wip_organization_id IS NOT NULL

Line 5001: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_orgn_id';

4997: IF p_wip_organization_id IS NOT NULL
4998: THEN
4999: g_wip_orgn_id := p_wip_organization_id;
5000: main_where_clause := main_where_clause||' AND bh.plant_code = :wip_organization_id';
5001: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_orgn_id';
5002: END IF;
5003:
5004: IF p_wip_batch_no IS NOT NULL
5005: THEN

Line 5008: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_no';

5004: IF p_wip_batch_no IS NOT NULL
5005: THEN
5006: g_wip_batch_no := p_wip_batch_no;
5007: main_where_clause := main_where_clause||' AND bh.batch_no = :wip_batch_no';
5008: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_no';
5009: END IF;
5010:
5011: IF p_wip_batch_id IS NOT NULL
5012: THEN

Line 5015: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_id';

5011: IF p_wip_batch_id IS NOT NULL
5012: THEN
5013: g_wip_batch_id := p_wip_batch_id;
5014: main_where_clause := main_where_clause||' AND se.batch_id = :wip_batch_id';
5015: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_id';
5016: END IF;
5017:
5018: IF p_wip_formula_no IS NOT NULL
5019: THEN

Line 5022: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_no';

5018: IF p_wip_formula_no IS NOT NULL
5019: THEN
5020: g_wip_formula_no := p_wip_formula_no;
5021: main_where_clause := main_where_clause||' AND fh.formula_no = :wip_formula_no';
5022: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_no';
5023: END IF;
5024:
5025: IF p_wip_formula_vers IS NOT NULL
5026: THEN

Line 5029: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers';

5025: IF p_wip_formula_vers IS NOT NULL
5026: THEN
5027: g_wip_formula_vers := p_wip_formula_vers;
5028: main_where_clause := main_where_clause||' AND fh.formula_no = :wip_formula_vers';
5029: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers';
5030: END IF;
5031:
5032: IF p_wip_formula_id IS NOT NULL
5033: THEN

Line 5036: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';

5032: IF p_wip_formula_id IS NOT NULL
5033: THEN
5034: g_wip_formula_id := p_wip_formula_id;
5035: main_where_clause := main_where_clause||' AND se.formula_id = :wip_formula_id';
5036: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';
5037: END IF;
5038:
5039: IF p_wip_recipe_no IS NOT NULL
5040: THEN

Line 5043: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no';

5039: IF p_wip_recipe_no IS NOT NULL
5040: THEN
5041: g_wip_recipe_no := p_wip_recipe_no;
5042: main_where_clause := main_where_clause||' AND r.recipe_no = :wip_recipe_no';
5043: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no';
5044: END IF;
5045:
5046: /* Bug 3124643; Changed r.recipe_no to r.recipe_version */
5047: IF p_wip_recipe_vers IS NOT NULL

Line 5051: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_vers';

5047: IF p_wip_recipe_vers IS NOT NULL
5048: THEN
5049: g_wip_recipe_vers := p_wip_recipe_vers;
5050: main_where_clause := main_where_clause||' AND r.recipe_version = :wip_recipe_vers';
5051: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_vers';
5052: END IF;
5053:
5054: IF p_wip_recipe_id IS NOT NULL
5055: THEN

Line 5058: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';

5054: IF p_wip_recipe_id IS NOT NULL
5055: THEN
5056: g_wip_recipe_id := p_wip_recipe_id;
5057: main_where_clause := main_where_clause||' AND se.recipe_id = :wip_recipe_id';
5058: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';
5059: END IF;
5060:
5061: IF p_wip_formulaline_id IS NOT NULL
5062: THEN

Line 5065: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id';

5061: IF p_wip_formulaline_id IS NOT NULL
5062: THEN
5063: g_wip_formulaline_id := p_wip_formulaline_id;
5064: main_where_clause := main_where_clause||' AND se.formulaline_id = :wip_formulaline_id';
5065: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id';
5066: END IF;
5067:
5068: IF p_wip_formulaline_no IS NOT NULL OR p_wip_formulaline_type IS NOT NULL
5069: THEN

Line 5075: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_no';

5071: IF p_wip_formulaline_no IS NOT NULL
5072: THEN
5073: g_wip_formulaline_no := p_wip_formulaline_no;
5074: main_where_clause := main_where_clause||' AND fd.line_no = :wip_formulaline_no';
5075: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_no';
5076: END IF;
5077:
5078: IF p_wip_formulaline_type IS NOT NULL
5079: THEN

Line 5082: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_type';

5078: IF p_wip_formulaline_type IS NOT NULL
5079: THEN
5080: g_wip_formulaline_type := p_wip_formulaline_type;
5081: main_where_clause := main_where_clause||' AND fd.formulaline_type = :wip_formulaline_type';
5082: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_type';
5083: END IF;
5084: END IF;
5085:
5086: IF p_wip_step_id IS NOT NULL

Line 5090: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_id';

5086: IF p_wip_step_id IS NOT NULL
5087: THEN
5088: g_wip_step_id := p_wip_step_id;
5089: main_where_clause := main_where_clause||' AND se.step_id = :wip_step_id';
5090: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_id';
5091: END IF;
5092:
5093: IF p_wip_step_no IS NOT NULL
5094: THEN

Line 5097: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_no';

5093: IF p_wip_step_no IS NOT NULL
5094: THEN
5095: g_wip_step_no := p_wip_step_no;
5096: main_where_clause := main_where_clause||' AND se.step_no = :wip_step_no';
5097: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_no';
5098: END IF;
5099:
5100: IF p_wip_oprn_id IS NOT NULL
5101: THEN

Line 5104: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id';

5100: IF p_wip_oprn_id IS NOT NULL
5101: THEN
5102: g_wip_oprn_id := p_wip_oprn_id;
5103: main_where_clause := main_where_clause||' AND se.oprn_id = :wip_oprn_id';
5104: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id';
5105: END IF;
5106:
5107: IF p_wip_oprn_no IS NOT NULL OR p_wip_oprn_vers IS NOT NULL
5108: THEN

Line 5116: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no';

5112: IF p_wip_oprn_no IS NOT NULL
5113: THEN
5114: g_wip_oprn_no := p_wip_oprn_no;
5115: main_where_clause := main_where_clause||' AND go.oprn_no = :wip_oprn_no';
5116: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no';
5117: END IF;
5118:
5119: IF p_wip_oprn_id IS NOT NULL
5120: THEN

Line 5123: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers';

5119: IF p_wip_oprn_id IS NOT NULL
5120: THEN
5121: g_wip_oprn_id := p_wip_oprn_id;
5122: main_where_clause := main_where_clause||' AND go.oprn_vers = :wip_oprn_vers';
5123: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers';
5124: END IF;
5125: END IF;
5126:
5127: IF p_customer_order_id IS NOT NULL

Line 5131: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_id';

5127: IF p_customer_order_id IS NOT NULL
5128: THEN
5129: g_customer_order_id := p_customer_order_id;
5130: main_where_clause := main_where_clause||' AND se.order_id = :customer_order_id';
5131: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_id';
5132: END IF;
5133:
5134: IF p_customer_order_number IS NOT NULL
5135: THEN

Line 5138: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_number';

5134: IF p_customer_order_number IS NOT NULL
5135: THEN
5136: g_customer_order_number := p_customer_order_number;
5137: main_where_clause := main_where_clause||' AND oh.order_number = :customer_order_number';
5138: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_number';
5139: END IF;
5140:
5141: IF p_customer IS NOT NULL
5142: THEN

Line 5148: main_using_clause := main_using_clause ||', gmd_outbound_apis_pub.g_cust_name ';

5144: main_table_list := main_table_list ||', hz_cust_accounts_all hca, hz_parties hp ';
5145: main_where_clause := main_where_clause ||' AND se.cust_id = hca.cust_account_id'
5146: ||' AND hca.party_id = hp.party_id'
5147: ||' AND hp.party_name = :cust_name';
5148: main_using_clause := main_using_clause ||', gmd_outbound_apis_pub.g_cust_name ';
5149: END IF;
5150:
5151: IF p_customer_id IS NOT NULL
5152: THEN

Line 5155: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_id';

5151: IF p_customer_id IS NOT NULL
5152: THEN
5153: g_customer_id := p_customer_id;
5154: main_where_clause := main_where_clause||' AND se.cust_id = :customer_id';
5155: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_id';
5156: END IF;
5157:
5158: /* Bug 3124653 Added code to retrieve sample groups by customer_ship_to_location &
5159: customer_ship_to_location_id */

Line 5169: ', gmd_outbound_apis_pub.g_customer_ship_to_location';

5165: ' ( select site_use_id '||
5166: ' from hz_cust_site_uses_all '||
5167: ' where location = :customer_ship_to_location)';
5168: main_using_clause := main_using_clause||
5169: ', gmd_outbound_apis_pub.g_customer_ship_to_location';
5170: END IF;
5171:
5172: IF p_customer_ship_to_location_id IS NOT NULL
5173: THEN

Line 5178: ', gmd_outbound_apis_pub.g_customer_ship_to_location_id';

5174: g_customer_ship_to_location_id := p_customer_ship_to_location_id;
5175: main_where_clause := main_where_clause||
5176: ' AND se.ship_to_site_id = :customer_ship_to_location_id';
5177: main_using_clause := main_using_clause||
5178: ', gmd_outbound_apis_pub.g_customer_ship_to_location_id';
5179: END IF;
5180:
5181: IF p_customer_order_type IS NOT NULL
5182: THEN

Line 5187: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_type';

5183: g_customer_order_type := p_customer_order_type;
5184: main_table_list := main_table_list||', oe_transaction_types_all tt';
5185: main_where_clause := main_where_clause||' AND oh.order_type_id = tt.transaction_type_id'
5186: ||' AND tt.transaction_type_code = :customer_order_type';
5187: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_type';
5188: END IF;
5189:
5190: IF p_customer_order_line IS NOT NULL OR p_customer_order_line_id IS NOT NULL
5191: THEN

Line 5198: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line';

5194: IF p_customer_order_line IS NOT NULL
5195: THEN
5196: g_customer_order_line := p_customer_order_line;
5197: main_where_clause := main_where_clause||' AND ol.line_number = :customer_order_line';
5198: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line';
5199: END IF;
5200:
5201: IF p_customer_order_line_id IS NOT NULL
5202: THEN

Line 5205: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line_id';

5201: IF p_customer_order_line_id IS NOT NULL
5202: THEN
5203: g_customer_order_line_id := g_customer_order_line_id;
5204: main_where_clause := main_where_clause||' AND ol.line_id = :customer_order_line_id';
5205: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line_id';
5206: END IF;
5207: END IF;
5208:
5209: IF p_supplier_id IS NOT NULL

Line 5213: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_id';

5209: IF p_supplier_id IS NOT NULL
5210: THEN
5211: g_supplier_id := p_supplier_id;
5212: main_where_clause := main_where_clause||' AND se.supplier_id = :supplier_id';
5213: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_id';
5214: END IF;
5215:
5216: IF p_supplier IS NOT NULL
5217: THEN

Line 5222: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier';

5218: g_supplier := p_supplier;
5219: main_table_list := main_table_list||', po_vendors v';
5220: main_where_clause := main_where_clause||' AND se.supplier_id = v.vendor_id'
5221: ||' AND v.segment1 = :supplier';
5222: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier';
5223: END IF;
5224:
5225: IF p_supplier_site IS NOT NULL
5226: THEN

Line 5231: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_site';

5227: g_supplier_site := p_supplier_site;
5228: main_table_list := main_table_list||', po_vendor_sites_all vsa';
5229: main_where_clause := main_where_clause||' AND se.supplier_site_id = vsa.vendor_site_id'
5230: ||' AND vsa.vendor_site_code = :supplier_site';
5231: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_site';
5232: END IF;
5233:
5234: IF p_supplier_po_number IS NOT NULL
5235: THEN

Line 5240: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_number';

5236: g_supplier_po_number := p_supplier_po_number;
5237: main_table_list := main_table_list||', po_headers_all pha';
5238: main_where_clause := main_where_clause||' AND se.po_header_id = pha.po_header_id'
5239: ||' AND pha.segment1 = :supplier_po_number';
5240: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_number';
5241: END IF;
5242:
5243: IF p_supplier_po_id IS NOT NULL
5244: THEN

Line 5247: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_id';

5243: IF p_supplier_po_id IS NOT NULL
5244: THEN
5245: g_supplier_po_id := p_supplier_po_id;
5246: main_where_clause := main_where_clause||' AND se.po_header_id = :supplier_po_id';
5247: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_id';
5248: END IF;
5249:
5250: IF p_supplier_po_line IS NOT NULL
5251: THEN

Line 5254: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line';

5250: IF p_supplier_po_line IS NOT NULL
5251: THEN
5252: g_supplier_po_line := g_supplier_po_line;
5253: main_where_clause := main_where_clause||' AND pl.line_num = :supplier_po_line)';
5254: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line';
5255: END IF;
5256:
5257: IF p_supplier_po_line_id IS NOT NULL
5258: THEN

Line 5261: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id';

5257: IF p_supplier_po_line_id IS NOT NULL
5258: THEN
5259: g_supplier_po_line_id := p_supplier_po_line_id;
5260: main_where_clause := main_where_clause||' AND se.po_line_id = :supplier_po_line_id';
5261: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id';
5262: END IF;
5263:
5264: IF p_disposition IS NOT NULL
5265: THEN

Line 5268: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_disposition';

5264: IF p_disposition IS NOT NULL
5265: THEN
5266: g_disposition := p_disposition;
5267: main_where_clause := main_where_clause||' AND se.disposition = :disposition';
5268: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_disposition';
5269:
5270: disp_where_clause := disp_where_clause||' AND sd.disposition = :disposition';
5271: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_disposition';
5272: END IF;

Line 5271: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_disposition';

5267: main_where_clause := main_where_clause||' AND se.disposition = :disposition';
5268: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_disposition';
5269:
5270: disp_where_clause := disp_where_clause||' AND sd.disposition = :disposition';
5271: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_disposition';
5272: END IF;
5273:
5274: IF p_delete_mark IS NOT NULL
5275: THEN

Line 5278: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_delete_mark';

5274: IF p_delete_mark IS NOT NULL
5275: THEN
5276: g_delete_mark := p_delete_mark;
5277: disp_where_clause := disp_where_clause||' AND sd.delete_mark = :delete_mark';
5278: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_delete_mark';
5279: END IF;
5280:
5281:
5282: IF p_from_last_update_date IS NOT NULL

Line 5284: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

5280:
5281:
5282: IF p_from_last_update_date IS NOT NULL
5283: THEN
5284: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
5285: main_where_clause := main_where_clause||'AND se.last_update_date >= :from_last_update_date ';
5286: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5287:
5288: disp_where_clause := disp_where_clause||'AND sd.last_update_date >= :from_last_update_date ';

Line 5286: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

5282: IF p_from_last_update_date IS NOT NULL
5283: THEN
5284: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
5285: main_where_clause := main_where_clause||'AND se.last_update_date >= :from_last_update_date ';
5286: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5287:
5288: disp_where_clause := disp_where_clause||'AND sd.last_update_date >= :from_last_update_date ';
5289: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5290: END IF;

Line 5289: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

5285: main_where_clause := main_where_clause||'AND se.last_update_date >= :from_last_update_date ';
5286: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5287:
5288: disp_where_clause := disp_where_clause||'AND sd.last_update_date >= :from_last_update_date ';
5289: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5290: END IF;
5291:
5292: IF p_to_last_update_date IS NOT NULL
5293: THEN

Line 5294: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

5290: END IF;
5291:
5292: IF p_to_last_update_date IS NOT NULL
5293: THEN
5294: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
5295: main_where_clause := main_where_clause||'AND se.last_update_date <= :to_last_update_date ';
5296: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5297:
5298: disp_where_clause := disp_where_clause||'AND sd.last_update_date <= :to_last_update_date ';

Line 5296: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

5292: IF p_to_last_update_date IS NOT NULL
5293: THEN
5294: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
5295: main_where_clause := main_where_clause||'AND se.last_update_date <= :to_last_update_date ';
5296: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5297:
5298: disp_where_clause := disp_where_clause||'AND sd.last_update_date <= :to_last_update_date ';
5299: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5300: END IF;

Line 5299: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

5295: main_where_clause := main_where_clause||'AND se.last_update_date <= :to_last_update_date ';
5296: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5297:
5298: disp_where_clause := disp_where_clause||'AND sd.last_update_date <= :to_last_update_date ';
5299: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5300: END IF;
5301:
5302: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
5303: IF p_sg_organization_id IS NOT NULL

Line 5305: gmd_outbound_apis_pub.g_sg_organization_id := p_sg_organization_id;

5301:
5302: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
5303: IF p_sg_organization_id IS NOT NULL
5304: THEN
5305: gmd_outbound_apis_pub.g_sg_organization_id := p_sg_organization_id;
5306: main_where_clause := main_where_clause||'AND se.organization_id = :sg_organization_id ';
5307: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_sg_organization_id ';
5308: END IF;
5309:

Line 5307: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_sg_organization_id ';

5303: IF p_sg_organization_id IS NOT NULL
5304: THEN
5305: gmd_outbound_apis_pub.g_sg_organization_id := p_sg_organization_id;
5306: main_where_clause := main_where_clause||'AND se.organization_id = :sg_organization_id ';
5307: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_sg_organization_id ';
5308: END IF;
5309:
5310: IF p_resources IS NOT NULL
5311: THEN

Line 5312: gmd_outbound_apis_pub.g_resources := p_resources;

5308: END IF;
5309:
5310: IF p_resources IS NOT NULL
5311: THEN
5312: gmd_outbound_apis_pub.g_resources := p_resources;
5313: main_where_clause := main_where_clause||'AND se.resources = :resources ';
5314: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_resources ';
5315: END IF;
5316:

Line 5314: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_resources ';

5310: IF p_resources IS NOT NULL
5311: THEN
5312: gmd_outbound_apis_pub.g_resources := p_resources;
5313: main_where_clause := main_where_clause||'AND se.resources = :resources ';
5314: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_resources ';
5315: END IF;
5316:
5317: IF p_instance_id IS NOT NULL
5318: THEN

Line 5319: gmd_outbound_apis_pub.g_instance_id := p_instance_id;

5315: END IF;
5316:
5317: IF p_instance_id IS NOT NULL
5318: THEN
5319: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
5320: main_where_clause := main_where_clause||'AND se.instance_id = :instance_id ';
5321: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_instance_id ';
5322: END IF;
5323:

Line 5321: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_instance_id ';

5317: IF p_instance_id IS NOT NULL
5318: THEN
5319: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
5320: main_where_clause := main_where_clause||'AND se.instance_id = :instance_id ';
5321: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_instance_id ';
5322: END IF;
5323:
5324: l_ss_table_included := 'FALSE';
5325: IF (p_ss_organization_id IS NOT NULL OR p_ss_no IS NOT NULL OR p_ss_id IS NOT NULL) THEN

Line 5332: gmd_outbound_apis_pub.g_ss_id := p_ss_id;

5328: l_ss_table_included := 'TRUE';
5329:
5330: IF p_ss_id IS NOT NULL
5331: THEN
5332: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
5333: main_where_clause := main_where_clause||'AND ss.ss_id = :ss_id ';
5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_id ';
5335: END IF;
5336:

Line 5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_id ';

5330: IF p_ss_id IS NOT NULL
5331: THEN
5332: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
5333: main_where_clause := main_where_clause||'AND ss.ss_id = :ss_id ';
5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_id ';
5335: END IF;
5336:
5337: IF p_ss_organization_id IS NOT NULL
5338: THEN

Line 5339: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;

5335: END IF;
5336:
5337: IF p_ss_organization_id IS NOT NULL
5338: THEN
5339: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
5340: main_where_clause := main_where_clause||'AND ss.organization_id = :ss_organization_id ';
5341: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
5342: END IF;
5343:

Line 5341: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';

5337: IF p_ss_organization_id IS NOT NULL
5338: THEN
5339: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
5340: main_where_clause := main_where_clause||'AND ss.organization_id = :ss_organization_id ';
5341: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
5342: END IF;
5343:
5344: IF p_ss_no IS NOT NULL
5345: THEN

Line 5346: gmd_outbound_apis_pub.g_ss_no := p_ss_no;

5342: END IF;
5343:
5344: IF p_ss_no IS NOT NULL
5345: THEN
5346: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
5347: main_where_clause := main_where_clause||'AND ss.ss_no = :ss_no ';
5348: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_no ';
5349: END IF;
5350:

Line 5348: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_no ';

5344: IF p_ss_no IS NOT NULL
5345: THEN
5346: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
5347: main_where_clause := main_where_clause||'AND ss.ss_no = :ss_no ';
5348: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_no ';
5349: END IF;
5350:
5351: END IF;
5352:

Line 5360: gmd_outbound_apis_pub.g_variant_no := p_variant_no;

5356: main_table_list := main_table_list ||', gmd_ss_variants ssv ';
5357: main_where_clause := main_where_clause ||'AND ssv.variant_id = se.variant_id ';
5358: END IF;
5359:
5360: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
5361: main_where_clause := main_where_clause||'AND ssv.variant_no = :variant_no ';
5362: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_no ';
5363: END IF;
5364:

Line 5362: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_no ';

5358: END IF;
5359:
5360: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
5361: main_where_clause := main_where_clause||'AND ssv.variant_no = :variant_no ';
5362: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_no ';
5363: END IF;
5364:
5365: IF p_variant_id IS NOT NULL
5366: THEN

Line 5367: gmd_outbound_apis_pub.g_variant_id := p_variant_id;

5363: END IF;
5364:
5365: IF p_variant_id IS NOT NULL
5366: THEN
5367: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
5368: main_where_clause := main_where_clause||'AND se.variant_id = :variant_id ';
5369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_id ';
5370: END IF;
5371:

Line 5369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_id ';

5365: IF p_variant_id IS NOT NULL
5366: THEN
5367: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
5368: main_where_clause := main_where_clause||'AND se.variant_id = :variant_id ';
5369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_id ';
5370: END IF;
5371:
5372: IF p_time_point_id IS NOT NULL
5373: THEN

Line 5374: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;

5370: END IF;
5371:
5372: IF p_time_point_id IS NOT NULL
5373: THEN
5374: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
5375: main_where_clause := main_where_clause||'AND se.time_point_id = :time_point_id ';
5376: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
5377: END IF;
5378:

Line 5376: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_time_point_id ';

5372: IF p_time_point_id IS NOT NULL
5373: THEN
5374: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
5375: main_where_clause := main_where_clause||'AND se.time_point_id = :time_point_id ';
5376: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
5377: END IF;
5378:
5379: -- END B3124291 Incorporated Mini-Pack K Features to Outboud APIs
5380:

Line 5400: main_into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_sample_groups_table ';

5396: -- That's more or less the job done. We just need to tell the system where to store the data
5397: -- and assemble the USING clause. Note thatthe main_using_clause is last in the list as it
5398: -- appears last in the query.
5399:
5400: main_into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_sample_groups_table ';
5401: main_using_clause := ' USING '||disp_using_clause
5402: ||','||main_using_clause;
5403:
5404: main_execution_string := 'BEGIN EXECUTE IMMEDIATE '

Line 5471: end gmd_outbound_apis_pub;

5467: FND_MSG_PUB.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
5468: x_return_status := FND_API.G_RET_STS_ERROR;
5469: END fetch_sample_groups;
5470:
5471: end gmd_outbound_apis_pub;