291: where assignment_set_id = G_def_assg_set
292: and inventory_item_id = p_config_id;
293:
294: If PG_DEBUG <> 0 Then
295: oe_debug_pub.add('DEL_FROM_MSA: Rows deleted =' || sql%rowcount,5);
296: End if;
297:
298: commit;
299: end del_from_msa;
345:
346: BEGIN
347:
348:
349: oe_debug_pub.add('=========================================================================',1);
350: oe_debug_pub.add(' ',1);
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
346: BEGIN
347:
348:
349: oe_debug_pub.add('=========================================================================',1);
350: oe_debug_pub.add(' ',1);
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
354: oe_debug_pub.add(' ',1);
347:
348:
349: oe_debug_pub.add('=========================================================================',1);
350: oe_debug_pub.add(' ',1);
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
354: oe_debug_pub.add(' ',1);
355: oe_debug_pub.add('=========================================================================',1);
348:
349: oe_debug_pub.add('=========================================================================',1);
350: oe_debug_pub.add(' ',1);
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
354: oe_debug_pub.add(' ',1);
355: oe_debug_pub.add('=========================================================================',1);
356:
349: oe_debug_pub.add('=========================================================================',1);
350: oe_debug_pub.add(' ',1);
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
354: oe_debug_pub.add(' ',1);
355: oe_debug_pub.add('=========================================================================',1);
356:
357: g_pg_level := 3;
350: oe_debug_pub.add(' ',1);
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
354: oe_debug_pub.add(' ',1);
355: oe_debug_pub.add('=========================================================================',1);
356:
357: g_pg_level := 3;
358: x_return_status := FND_API.G_RET_STS_SUCCESS;
351: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
352: oe_debug_pub.add(' ',1);
353: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
354: oe_debug_pub.add(' ',1);
355: oe_debug_pub.add('=========================================================================',1);
356:
357: g_pg_level := 3;
358: x_return_status := FND_API.G_RET_STS_SUCCESS;
359: l_Stmt_num := 10;
358: x_return_status := FND_API.G_RET_STS_SUCCESS;
359: l_Stmt_num := 10;
360:
361: If PG_DEBUG <> 0 Then
362: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGIRATIONS: Insise PROCESS_OSS_CONFIGURATION API',5);
363: End if;
364:
365: /* Get the default assignment set into a global variable.
366: The global variable will be used in all other modules later
369: l_stmt_num := 20;
370: G_def_assg_set := to_number(FND_PROFILE.VALUE('MRP_DEFAULT_ASSIGNMENT_SET'));
371:
372: IF PG_DEBUG <> 0 Then
373: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Default Assignment set = '
374: ||to_char(g_def_assg_set),5);
375: End if;
376:
377:
379: */
380:
381: If g_def_assg_set is null Then
382: IF PG_DEBUG <> 0 Then
383: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Default assignment set is null',5);
384: oe_debug_pub.add('=========================================================================',1);
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
380:
381: If g_def_assg_set is null Then
382: IF PG_DEBUG <> 0 Then
383: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Default assignment set is null',5);
384: oe_debug_pub.add('=========================================================================',1);
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
381: If g_def_assg_set is null Then
382: IF PG_DEBUG <> 0 Then
383: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Default assignment set is null',5);
384: oe_debug_pub.add('=========================================================================',1);
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
389: oe_debug_pub.add(' ',1);
382: IF PG_DEBUG <> 0 Then
383: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Default assignment set is null',5);
384: oe_debug_pub.add('=========================================================================',1);
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
389: oe_debug_pub.add(' ',1);
390: oe_debug_pub.add('=========================================================================',1);
383: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Default assignment set is null',5);
384: oe_debug_pub.add('=========================================================================',1);
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
389: oe_debug_pub.add(' ',1);
390: oe_debug_pub.add('=========================================================================',1);
391: End if;
384: oe_debug_pub.add('=========================================================================',1);
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
389: oe_debug_pub.add(' ',1);
390: oe_debug_pub.add('=========================================================================',1);
391: End if;
392: return;
385: oe_debug_pub.add(' ',1);
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
389: oe_debug_pub.add(' ',1);
390: oe_debug_pub.add('=========================================================================',1);
391: End if;
392: return;
393: End if;
386: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
387: oe_debug_pub.add(' ',1);
388: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
389: oe_debug_pub.add(' ',1);
390: oe_debug_pub.add('=========================================================================',1);
391: End if;
392: return;
393: End if;
394:
407: l_oss_defined := 'N';
408: end;
409:
410: If l_oss_defined = 'N' Then
411: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: No Option Specific Soucing setup exists in the system',5);
412: return;
413: End if;
414:
415: /* Check to see if the whole configuration is matched or not.
423:
424:
425: l_stmt_num := 35;
426: If PG_DEBUG <> 0 Then
427: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIOS: CAlling mode = '||p_mode,5);
428: end if;
429:
430: If p_mode = 'UPG' then
431: copy_to_bcol_temp(
459:
460: -- End of change for bug 3896824 on 11/30/04
461:
462: IF PG_DEBUG <> 0 THEN
463: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_perform_match:' || l_perform_match,3);
464: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_reuse_config:' || l_reuse_config,3);
465: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_config_creation:' || l_config_creation,3);
466: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_ship_from_org_id:'|| l_ship_from_org_id,3);
467: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_program_id:' || l_program_id,3);
460: -- End of change for bug 3896824 on 11/30/04
461:
462: IF PG_DEBUG <> 0 THEN
463: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_perform_match:' || l_perform_match,3);
464: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_reuse_config:' || l_reuse_config,3);
465: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_config_creation:' || l_config_creation,3);
466: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_ship_from_org_id:'|| l_ship_from_org_id,3);
467: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_program_id:' || l_program_id,3);
468: END IF;
461:
462: IF PG_DEBUG <> 0 THEN
463: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_perform_match:' || l_perform_match,3);
464: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_reuse_config:' || l_reuse_config,3);
465: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_config_creation:' || l_config_creation,3);
466: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_ship_from_org_id:'|| l_ship_from_org_id,3);
467: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_program_id:' || l_program_id,3);
468: END IF;
469:
462: IF PG_DEBUG <> 0 THEN
463: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_perform_match:' || l_perform_match,3);
464: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_reuse_config:' || l_reuse_config,3);
465: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_config_creation:' || l_config_creation,3);
466: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_ship_from_org_id:'|| l_ship_from_org_id,3);
467: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_program_id:' || l_program_id,3);
468: END IF;
469:
470: if p_mode = 'ACC' then
463: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_perform_match:' || l_perform_match,3);
464: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_reuse_config:' || l_reuse_config,3);
465: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_config_creation:' || l_config_creation,3);
466: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_ship_from_org_id:'|| l_ship_from_org_id,3);
467: oe_debug_pub.add(lpad(' ',g_pg_level)|| 'PROCESS_OSS_CONFIGURATIONS: l_program_id:' || l_program_id,3);
468: END IF;
469:
470: if p_mode = 'ACC' then
471: -- Added this if as part of Bugfix 8894392. Because of this bypass, table bcos_gt is not populated.
526: and nvl(rcv.disable_date,sysdate+1)>sysdate
527: and rcv.SR_RECEIPT_ID = src.sr_receipt_id);
528: End if;
529: Exception When no_data_found then
530: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ship from org is not valid',1);
531: l_valid_ship_from_org := 'N';
532: CTO_MSG_PUB.cto_message('BOM','CTO_OSS_INVALID_SHIP_ORG');
533: raise FND_API.G_EXC_ERROR;
534: End;
582: and rcv.sr_receipt_id = src.sr_receipt_id
583: )
584: );
585: if PG_DEBUG <> 0 then
586: oe_debug_pub.add(lpad(' ',g_pg_level)||
587: 'PROCESS_OSS_CONFIGURATIONS: Preconfiguration org is a valid manufacturing or Procuring org',3);
588: End if;
589: Exception when no_data_found then
590: if PG_DEBUG <> 0 then
587: 'PROCESS_OSS_CONFIGURATIONS: Preconfiguration org is a valid manufacturing or Procuring org',3);
588: End if;
589: Exception when no_data_found then
590: if PG_DEBUG <> 0 then
591: oe_debug_pub.add(lpad(' ',g_pg_level)||
592: 'PROCESS_OSS_CONFIGURATIONS: Preconfiguration org is not a valid manufacturing or Procuring org',1);
593: CTO_MSG_PUB.cto_message('BOM','CTO_OSS_INVALID_PC_ORG');
594: raise FND_API.G_EXC_ERROR;
595: End if;
621:
622: -- End of addition by Renga on 12/02/04 for bug 3896824
623:
624: IF PG_DEBUG <> 0 Then
625: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Config item is matched/re-used with attribute 3',5);
626: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ending API with Success',5);
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
622: -- End of addition by Renga on 12/02/04 for bug 3896824
623:
624: IF PG_DEBUG <> 0 Then
625: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Config item is matched/re-used with attribute 3',5);
626: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ending API with Success',5);
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
623:
624: IF PG_DEBUG <> 0 Then
625: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Config item is matched/re-used with attribute 3',5);
626: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ending API with Success',5);
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
624: IF PG_DEBUG <> 0 Then
625: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Config item is matched/re-used with attribute 3',5);
626: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ending API with Success',5);
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
632: oe_debug_pub.add(' ',1);
625: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Config item is matched/re-used with attribute 3',5);
626: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ending API with Success',5);
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
632: oe_debug_pub.add(' ',1);
633: oe_debug_pub.add('=========================================================================',1);
626: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ending API with Success',5);
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
632: oe_debug_pub.add(' ',1);
633: oe_debug_pub.add('=========================================================================',1);
634: End if;
627: oe_debug_pub.add('=========================================================================',1);
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
632: oe_debug_pub.add(' ',1);
633: oe_debug_pub.add('=========================================================================',1);
634: End if;
635:
628: oe_debug_pub.add(' ',1);
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
632: oe_debug_pub.add(' ',1);
633: oe_debug_pub.add('=========================================================================',1);
634: End if;
635:
636: return;
629: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
630: oe_debug_pub.add(' ',1);
631: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
632: oe_debug_pub.add(' ',1);
633: oe_debug_pub.add('=========================================================================',1);
634: End if;
635:
636: return;
637: end if;
656: x_msg_count => x_msg_count);
657:
658: If x_return_status = FND_API.G_RET_STS_ERROR Then
659: IF PG_DEBUG <> 0 Then
660: oe_debug_pub.add(lpad(' ',g_pg_level)||
661: 'GET_OSS_ORGS_LIST: Exepected error occurred in update_oss_in_bcol API',5);
662: End if;
663: raise FND_API.G_EXC_ERROR;
664: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
662: End if;
663: raise FND_API.G_EXC_ERROR;
664: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
665: IF PG_DEBUG <> 0 Then
666: oe_debug_pub.add(lpad(' ',g_pg_level)||
667: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in update_oss_in_bcol API',5);
668: End if;
669: raise FND_API.G_EXC_UNEXPECTED_ERROR;
670: End if;
687: l_count := sql%rowcount;
688: end if;
689:
690: IF PG_DEBUG <> 0 Then
691: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Number of matched configs with attribute settting 3 ='
692: ||l_count,5);
693: End if;
694:
695: l_stmt_num := 70;
702: x_msg_count => x_msg_count,
703: x_msg_data => x_msg_data);
704: If x_return_status = FND_API.G_RET_STS_ERROR Then
705: IF PG_DEBUG <> 0 Then
706: oe_debug_pub.add(lpad(' ',g_pg_level)||
707: 'GET_OSS_ORGS_LIST: Exepected error occurred in update_oss_in_bcol API',5);
708: End if;
709: raise FND_API.G_EXC_ERROR;
710: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
708: End if;
709: raise FND_API.G_EXC_ERROR;
710: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
711: IF PG_DEBUG <> 0 Then
712: oe_debug_pub.add(lpad(' ',g_pg_level)||
713: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in update_oss_in_bcol API',5);
714: End if;
715: raise FND_API.G_EXC_UNEXPECTED_ERROR;
716: End if;
725: x_msg_data => x_msg_data);
726:
727: If x_return_status = FND_API.G_RET_STS_ERROR Then
728: IF PG_DEBUG <> 0 Then
729: oe_debug_pub.add(lpad(' ',g_pg_level)||
730: 'GET_OSS_ORGS_LIST: Exepected error occurred in update_oss_in_bcol API',5);
731: End if;
732: raise FND_API.G_EXC_ERROR;
733: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
731: End if;
732: raise FND_API.G_EXC_ERROR;
733: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
734: IF PG_DEBUG <> 0 Then
735: oe_debug_pub.add(lpad(' ',g_pg_level)||
736: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in update_oss_in_bcol API',5);
737: End if;
738: raise FND_API.G_EXC_UNEXPECTED_ERROR;
739: End if;
742:
743: l_stmt_num := 90;
744:
745: If PG_DEBUG <> 0 Then
746: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Before validating ship from org',5);
747: End if;
748:
749: /* Renga: Add Validation to ship from org check */
750:
764: where bcol.ato_line_id = p_ato_line_id;
765: end if;
766:
767: If PG_DEBUG <> 0 Then
768: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: l_program_id:'|| l_program_id, 5);
769: END IF;
770:
771: IF (l_program_id <> cto_update_configs_pk.bac_program_id) THEN
772: -- Bugfix 8894392: If program id = 99, it means that the matched CIB = 3 config
800: where line_id = p_ato_line_id
801: and valid_flag = 'Y'));
802: Exception when no_data_found then
803: If PG_DEBUG <> 0 Then
804: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS: Ship from org is not valid',5);
805: end if;
806: CTO_MSG_PUB.cto_message('BOM','CTO_OSS_INVALID_SHIP_ORG');
807: raise FND_API.G_EXC_ERROR;
808: End;
855: and valid_flag in( 'P','Y')))
856: Where org_id = l_ship_from_org_id
857: and rownum = 1;
858: if PG_DEBUG<> 0 Then
859: oe_debug_pub.add(lpad(' ',g_pg_level)||
860: 'PROCESS_OSS_CONFIGURATIONS::The Preconfiguration org is valid manufacturing/procuring org',3);
861: end if;
862:
863: Exception when no_data_found then
861: end if;
862:
863: Exception when no_data_found then
864: if PG_DEBUG<> 0 Then
865: oe_debug_pub.add(lpad(' ',g_pg_level)||
866: 'PROCESS_OSS_CONFIGURATIONS::The Preconfiguration org is not a valid manufacturing/procuring org',3);
867: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS::Raising Expected error',1);
868: end if;
869: CTO_MSG_PUB.cto_message('BOM','CTO_OSS_INVALID_PC_ORG');
863: Exception when no_data_found then
864: if PG_DEBUG<> 0 Then
865: oe_debug_pub.add(lpad(' ',g_pg_level)||
866: 'PROCESS_OSS_CONFIGURATIONS::The Preconfiguration org is not a valid manufacturing/procuring org',3);
867: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS::Raising Expected error',1);
868: end if;
869: CTO_MSG_PUB.cto_message('BOM','CTO_OSS_INVALID_PC_ORG');
870: raise FND_API.G_EXC_ERROR;
871: End;
876: End if; /* x_oss_exists = 'Y' */
877:
878:
879: If PG_DEBUG <> 0 Then
880: oe_debug_pub.add('=========================================================================',1);
881: oe_debug_pub.add(' ',1);
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
877:
878:
879: If PG_DEBUG <> 0 Then
880: oe_debug_pub.add('=========================================================================',1);
881: oe_debug_pub.add(' ',1);
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
885: oe_debug_pub.add(' ',1);
878:
879: If PG_DEBUG <> 0 Then
880: oe_debug_pub.add('=========================================================================',1);
881: oe_debug_pub.add(' ',1);
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
885: oe_debug_pub.add(' ',1);
886: oe_debug_pub.add('=========================================================================',1);
879: If PG_DEBUG <> 0 Then
880: oe_debug_pub.add('=========================================================================',1);
881: oe_debug_pub.add(' ',1);
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
885: oe_debug_pub.add(' ',1);
886: oe_debug_pub.add('=========================================================================',1);
887: End if;
880: oe_debug_pub.add('=========================================================================',1);
881: oe_debug_pub.add(' ',1);
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
885: oe_debug_pub.add(' ',1);
886: oe_debug_pub.add('=========================================================================',1);
887: End if;
888:
881: oe_debug_pub.add(' ',1);
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
885: oe_debug_pub.add(' ',1);
886: oe_debug_pub.add('=========================================================================',1);
887: End if;
888:
889: Exception
882: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
883: oe_debug_pub.add(' ',1);
884: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
885: oe_debug_pub.add(' ',1);
886: oe_debug_pub.add('=========================================================================',1);
887: End if;
888:
889: Exception
890:
889: Exception
890:
891: WHEN FND_API.G_EXC_ERROR THEN
892: IF PG_DEBUG <> 0 THEN
893: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS::exp error::'
894: ||to_char(l_stmt_num)
895: ||'::'||sqlerrm,1);
896: END IF;
897: x_return_status := FND_API.G_RET_STS_ERROR;
901: p_msg_data => x_msg_data
902: );
903: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
904: IF PG_DEBUG <> 0 THEN
905: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS::exp error::'
906: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
907: END IF;
908: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
909: g_pg_level := g_pg_level - 3;
912: p_msg_data => x_msg_data
913: );
914: WHEN OTHERS THEN
915: IF PG_DEBUG <> 0 THEN
916: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_OSS_CONFIGURATIONS::exp error::'
917: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
918: END IF;
919: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
920: g_pg_level := g_pg_level - 3;
975: configuration has OSS definition
976: */
977:
978: If PG_DEBUG <> 0 Then
979: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Inside PRUNE_OSS_CONFIG API',5);
980: End if;
981:
982:
983: l_stmt_num := 10;
994: where ossl.oss_comp_seq_id = ossc.oss_comp_seq_id);
995:
996:
997: If PG_DEBUG <> 0 then
998: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: No of oss components for this model = '||l_comp_count,5);
999: End if;
1000:
1001: If l_comp_count > 0 then
1002:
1039:
1040: l_org_count := sql%rowcount;
1041:
1042: If PG_DEBUG <> 0 Then
1043: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: After first Insert',5);
1044: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of of orgs inserted in temp table ='||l_org_count,5);
1045: End if;
1046:
1047:
1040: l_org_count := sql%rowcount;
1041:
1042: If PG_DEBUG <> 0 Then
1043: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: After first Insert',5);
1044: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of of orgs inserted in temp table ='||l_org_count,5);
1045: End if;
1046:
1047:
1048: /* We need to find out the intersection vendors from the sourcing setup list.
1088:
1089: l_vendor_count := sql%rowcount;
1090:
1091: If PG_DEBUG <> 0 Then
1092: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: After Second insert..',5);
1093: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of Vendors inserted into temp = '||l_vendor_count);
1094: End if;
1095:
1096: /* If there is no commong orgs, then CTO will raise an error and end the process
1089: l_vendor_count := sql%rowcount;
1090:
1091: If PG_DEBUG <> 0 Then
1092: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: After Second insert..',5);
1093: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of Vendors inserted into temp = '||l_vendor_count);
1094: End if;
1095:
1096: /* If there is no commong orgs, then CTO will raise an error and end the process
1097: Renga: Think about the case, where no orgs found but some valid vendors found.
1106:
1107: If l_vendor_count = 0 and l_org_count = 0 then
1108:
1109: If PG_DEBUG <> 0 then
1110: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: No Intersection org found ',1);
1111: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Model line id = '||p_model_line_id,1);
1112: end if;
1113: If p_calling_mode in ('ACC', 'UPG') Then --Bugfix 8894392
1114: cto_msg_pub.cto_message('BOM','BOM_CTO_OSS_NO_COMMON_ORGS');
1107: If l_vendor_count = 0 and l_org_count = 0 then
1108:
1109: If PG_DEBUG <> 0 then
1110: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: No Intersection org found ',1);
1111: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Model line id = '||p_model_line_id,1);
1112: end if;
1113: If p_calling_mode in ('ACC', 'UPG') Then --Bugfix 8894392
1114: cto_msg_pub.cto_message('BOM','BOM_CTO_OSS_NO_COMMON_ORGS');
1115: raise FND_API.G_EXC_ERROR;
1152: */
1153: /*
1154: for org_rec in org_cur
1155: Loop
1156: oe_debug_pub.add('Temp Org id = '||org_rec.organization_id,1);
1157: End Loop;
1158:
1159: for src_rec in src_cur
1160: loop
1157: End Loop;
1158:
1159: for src_rec in src_cur
1160: loop
1161: oe_debug_pub.add('Temp rcv org id = '||src_rec.rcv_org_id,1);
1162: oe_debug_pub.add('Temp Src org id = '||src_rec.source_org_id,1);
1163: oe_debug_pub.add('Temp Valid flag = '||src_rec.valid_flag,1);
1164: end loop;
1165: */
1158:
1159: for src_rec in src_cur
1160: loop
1161: oe_debug_pub.add('Temp rcv org id = '||src_rec.rcv_org_id,1);
1162: oe_debug_pub.add('Temp Src org id = '||src_rec.source_org_id,1);
1163: oe_debug_pub.add('Temp Valid flag = '||src_rec.valid_flag,1);
1164: end loop;
1165: */
1166:
1159: for src_rec in src_cur
1160: loop
1161: oe_debug_pub.add('Temp rcv org id = '||src_rec.rcv_org_id,1);
1162: oe_debug_pub.add('Temp Src org id = '||src_rec.source_org_id,1);
1163: oe_debug_pub.add('Temp Valid flag = '||src_rec.valid_flag,1);
1164: end loop;
1165: */
1166:
1167: l_stmt_num := 60;
1191: );
1192:
1193:
1194: If PG_DEBUG <> 0 Then
1195: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of valid nodes in the pruned tree ='
1196: ||sql%rowcount,5);
1197: End if;
1198:
1199:
1263:
1264: /* Impact : Valid flag condition should be removed */
1265:
1266: IF PG_DEBUG <> 0 Then
1267: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of 100% rules inserted ='
1268: ||sql%rowcount);
1269: End if;
1270:
1271:
1281: where valid_flag = 'Y'
1282: and line_id = p_model_line_id;
1283:
1284: IF PG_DEBUG <> 0 Then
1285: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Number of valid orgs = '
1286: ||l_valid_count);
1287: End if;
1288:
1289: If l_valid_count = 0 then
1288:
1289: If l_valid_count = 0 then
1290:
1291: If PG_DEBUG <> 0 then
1292: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Purning model tree results wiht no valid orgs',5);
1293: End if;
1294: If p_calling_mode in ('ACC', 'UPG') Then --Bugfix 8894392
1295:
1296: IF PG_DEBUG <> 0 Then
1293: End if;
1294: If p_calling_mode in ('ACC', 'UPG') Then --Bugfix 8894392
1295:
1296: IF PG_DEBUG <> 0 Then
1297: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: About to delete rules for config item:'|| p_config_item_id);
1298: End if;
1299:
1300: del_from_msa(p_config_item_id); --Bugfix 8894392
1301:
1336:
1337: /* Renga: Things about match and re-use case for parent configs
1338: */
1339: If PG_DEBUG <> 0 Then
1340: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG: Coming out of PRUNE_OSS_CONFIG API',5);
1341: End if;
1342:
1343:
1344: End if;
1354: Exception
1355:
1356: WHEN FND_API.G_EXC_ERROR THEN
1357: IF PG_DEBUG <> 0 THEN
1358: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG::exp error::'
1359: ||to_char(l_stmt_num)
1360: ||'::'||sqlerrm,1);
1361: END IF;
1362: x_return_status := FND_API.G_RET_STS_ERROR;
1366: p_msg_data => x_msg_data
1367: );
1368: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
1369: IF PG_DEBUG <> 0 THEN
1370: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG::exp error::'
1371: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
1372: END IF;
1373: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1374: g_pg_level := g_pg_level - 3;
1377: p_msg_data => x_msg_data
1378: );
1379: WHEN OTHERS THEN
1380: IF PG_DEBUG <> 0 THEN
1381: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_OSS_CONFIG::exp error::'
1382: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
1383: END IF;
1384: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1385: g_pg_level := g_pg_level - 3;
1434: set valid_flag = 'N'
1435: where line_id = p_model_line_id
1436: and valid_flag is null;
1437: If PG_DEBUG <> 0 then
1438: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Number of records updated in source table = '
1439: ||sql%rowcount,5);
1440: End if;
1441:
1442: update /*+ INDEX (oss_src BOM_CTO_OSS_SOURCE_GT_N2) */
1445: where line_id = p_model_line_id
1446: and valid_flag = 'Y';
1447:
1448: If PG_DEBUG <> 0 then
1449: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Number of records updated in source table = '
1450: ||sql%rowcount,5);
1451: End if;
1452: end if;
1453:
1457: /* Get the no of child that are oss for this parent model
1458: */
1459:
1460: If PG_DEBUG <> 0 Then
1461: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Inside PRUNE_PARENT_OSS_CONFIG API',5);
1462: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: p_calling_mode::' || p_calling_mode,5);
1463: End if;
1464:
1465:
1458: */
1459:
1460: If PG_DEBUG <> 0 Then
1461: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Inside PRUNE_PARENT_OSS_CONFIG API',5);
1462: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: p_calling_mode::' || p_calling_mode,5);
1463: End if;
1464:
1465:
1466: select /*+ INDEX(bcol BOM_CTO_ORDER_LINES_GT_N3) */
1499: */
1500:
1501:
1502: If PG_DEBUG <> 0 Then
1503: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Number of oss child = '
1504: ||l_oss_child_count,5);
1505: End if;
1506: l_stmt_num := 20;
1507: If l_oss_child_count > 0 then
1567: --Bugfix 13362916
1568: l_cnt := sql%rowcount;
1569: Else
1570: IF PG_DEBUG <> 0 THEN
1571: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: No oss child found...Updating in bcol',1);
1572: END IF;
1573:
1574: update /*+ INDEX (bcol BOM_CTO_ORDER_LINES_GT_U1) */
1575: bom_cto_order_lines_gt bcol
1576: set option_specific = null
1577: where line_id = p_model_line_id;
1578:
1579: IF PG_DEBUG <> 0 THEN
1580: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Rows updated = '||sql%rowcount,1);
1581: END IF;
1582:
1583: return;
1584: End if;
1584: End if;
1585:
1586: l_stmt_num := 50;
1587: If PG_DEBUG <> 0 Then
1588: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Number of intersection orgs = '
1589: ||l_cnt,5);
1590: End if;
1591:
1592: -- Bug 13362916
1592: -- Bug 13362916
1593: -- If sql%rowcount = 0 then
1594: If l_cnt = 0 then
1595: IF PG_DEBUG <> 0 Then
1596: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: No intersection orgs found',5);
1597: END IF;
1598: x_exp_error_code := 350; /* No intersection orgs found */
1599: g_pg_level := g_pg_level - 3;
1600: return;
1623: */
1624:
1625:
1626: If PG_DEBUG <> 0 Then
1627: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Item rule count = '||to_char(l_item_rule_count),5);
1628: end if;
1629:
1630: l_stmt_num := 70;
1631: If l_item_rule_count > 0 then
1639: x_msg_data => x_msg_data
1640: );
1641: If x_return_status = FND_API.G_RET_STS_ERROR Then
1642: IF PG_DEBUG <> 0 Then
1643: oe_debug_pub.add(lpad(' ',g_pg_level)||
1644: 'GET_OSS_ORGS_LIST: Exepected error occurred in update_oss_in_bcol API',5);
1645: End if;
1646: raise FND_API.G_EXC_ERROR;
1647: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
1645: End if;
1646: raise FND_API.G_EXC_ERROR;
1647: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
1648: IF PG_DEBUG <> 0 Then
1649: oe_debug_pub.add(lpad(' ',g_pg_level)||
1650: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in update_oss_in_bcol API',5);
1651: End if;
1652: raise FND_API.G_EXC_UNEXPECTED_ERROR;
1653: End if;
1651: End if;
1652: raise FND_API.G_EXC_UNEXPECTED_ERROR;
1653: End if;
1654:
1655: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: '
1656: ||' Item Rule exists after pruning',1);
1657: Else
1658: l_rule_exists := 'N';
1659: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: '
1655: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: '
1656: ||' Item Rule exists after pruning',1);
1657: Else
1658: l_rule_exists := 'N';
1659: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: '
1660: ||' No Item Ruleafter pruning',1);
1661:
1662: End if;
1663: /* After pruing the item level sourcing, If still there are some
1711: Returning rcv_org_id,source_org_id Bulk collect into l_source_org_tbl,l_rcv_org_tbl;
1712:
1713:
1714: If PG_DEBUG <> 0 Then
1715: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Number of updated records ='||l_source_org_tbl.count,5);
1716: End if;
1717:
1718: If l_source_org_tbl.count <> 0 then
1719: For i in l_source_org_tbl.first..l_source_org_tbl.last
1725: x_msg_data => x_msg_data,
1726: x_msg_count => x_msg_count);
1727: If x_return_status = FND_API.G_RET_STS_ERROR Then
1728: IF PG_DEBUG <> 0 Then
1729: oe_debug_pub.add(lpad(' ',g_pg_level)||
1730: 'GET_OSS_ORGS_LIST: Exepected error occurred in update_oss_in_bcol API',5);
1731: End if;
1732: raise FND_API.G_EXC_ERROR;
1733: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
1731: End if;
1732: raise FND_API.G_EXC_ERROR;
1733: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
1734: IF PG_DEBUG <> 0 Then
1735: oe_debug_pub.add(lpad(' ',g_pg_level)||
1736: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in update_oss_in_bcol API',5);
1737: End if;
1738: raise FND_API.G_EXC_UNEXPECTED_ERROR;
1739: End if;
1766: -- any rows.
1767: -- Added the nvl clause in the subquery returun column
1768:
1769: If PG_DEBUG <> 0 Then
1770: oe_debug_pub.add(lpad(' ',g_pg_level)||
1771: 'PRUNE_PARENT_OSS: Before inserting 100% make at rules',5);
1772: End if;
1773: Insert into bom_cto_oss_source_gt
1774: (
1840: where line_id = p_model_line_id
1841: and valid_flag = 'Y';
1842:
1843: IF PG_DEBUG <> 0 Then
1844: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: Number of valid nodes in the pruned tree ='
1845: ||l_valid_source_count,5);
1846: End if;
1847:
1848: If l_valid_source_count = 0 then
1846: End if;
1847:
1848: If l_valid_source_count = 0 then
1849: IF PG_DEBUG <> 0 Then
1850: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG: After pruning there is no valid source node',4);
1851: End if;
1852: If p_calling_mode in ('ACC', 'UPG') Then --Bugfix 8894392
1853: CTO_MSG_PUB.cto_message('BOM','CTO_OSS_NO_VALID_TREE');
1854: raise FND_API.G_EXC_ERROR;
1868: Exception
1869:
1870: WHEN FND_API.G_EXC_ERROR THEN
1871: IF PG_DEBUG <> 0 THEN
1872: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG::exp error::'
1873: ||to_char(l_stmt_num)
1874: ||'::'||sqlerrm,1);
1875: END IF;
1876: x_return_status := FND_API.G_RET_STS_ERROR;
1880: p_msg_data => x_msg_data
1881: );
1882: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
1883: IF PG_DEBUG <> 0 THEN
1884: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG::exp error::'
1885: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
1886: END IF;
1887: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1888: g_pg_level := g_pg_level - 3;
1891: p_msg_data => x_msg_data
1892: );
1893: WHEN OTHERS THEN
1894: IF PG_DEBUG <> 0 THEN
1895: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_PARENT_OSS_CONFIG::exp error::'
1896: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
1897: END IF;
1898: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1899: g_pg_level := g_pg_level - 3;
2166: g_pg_level := 3;
2167: x_return_status := FND_API.G_RET_STS_SUCCESS;
2168:
2169: If PG_DEBUG <> 0 Then
2170: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Inside Create OSS Sourcing Rule API',5);
2171: End if;
2172:
2173: l_stmt_num := 15;
2174: If p_mode = 'UPG' then
2181: For oss_model_lines_rec in oss_model_lines
2182: Loop
2183: l_stmt_num := 20;
2184: If PG_DEBUG <> 0 Then
2185: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Line id = '||oss_model_lines_rec.line_id,5);
2186: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Config item = '||oss_model_lines_rec.config_item_id,5);
2187: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Option specific = '||oss_model_lines_rec.option_specific,5);
2188:
2189: -- bug 13362916
2182: Loop
2183: l_stmt_num := 20;
2184: If PG_DEBUG <> 0 Then
2185: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Line id = '||oss_model_lines_rec.line_id,5);
2186: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Config item = '||oss_model_lines_rec.config_item_id,5);
2187: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Option specific = '||oss_model_lines_rec.option_specific,5);
2188:
2189: -- bug 13362916
2190: print_source_gt;
2183: l_stmt_num := 20;
2184: If PG_DEBUG <> 0 Then
2185: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Line id = '||oss_model_lines_rec.line_id,5);
2186: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Config item = '||oss_model_lines_rec.config_item_id,5);
2187: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Option specific = '||oss_model_lines_rec.option_specific,5);
2188:
2189: -- bug 13362916
2190: print_source_gt;
2191: Print_orglist_gt;
2207: if p_mode = 'ACC' then -- Bugfix 8894392
2208: If oss_model_lines_rec.config_creation = '3' and
2209: (oss_model_lines_rec.perform_match = 'Y' or oss_model_lines_rec.reuse_config = 'Y') Then
2210: If PG_DEBUG <> 0 Then
2211: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Config item is matched and item attribute is 3',5);
2212: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: No Need to create new sourcing rules',5);
2213: End if;
2214: l_stmt_num := 30;
2215: --Bugfix 13324638
2208: If oss_model_lines_rec.config_creation = '3' and
2209: (oss_model_lines_rec.perform_match = 'Y' or oss_model_lines_rec.reuse_config = 'Y') Then
2210: If PG_DEBUG <> 0 Then
2211: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Config item is matched and item attribute is 3',5);
2212: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: No Need to create new sourcing rules',5);
2213: End if;
2214: l_stmt_num := 30;
2215: --Bugfix 13324638
2216: --exit; /* Start processing next record */
2243: where line_id = oss_model_lines_rec.line_id
2244: and valid_flag = 'Y';
2245:
2246: IF PG_DEBUG <> 0 then
2247: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Number of lines updated in bom_cto_oss_source_gt ='
2248: ||sql%rowcount,5);
2249: End if;
2250:
2251: Else
2262: from bom_cto_src_orgs
2263: where line_id = oss_model_lines_rec.line_id
2264: and organization_type is not null);
2265: IF PG_DEBUG <> 0 then
2266: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Number of lines updated in bom_cto_oss_source_gt ='
2267: ||sql%rowcount,5);
2268: End if;
2269:
2270: update /*+ INDEX (oss_src BOM_CTO_OSS_SOURCE_GT_N2) */
2283: where line_id = oss_model_lines_rec.line_id
2284: and valid_flag = 'P'));
2285:
2286: IF PG_DEBUG <> 0 then
2287: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Number of lines updated in bom_cto_oss_source_gt ='
2288: ||sql%rowcount,5);
2289: End if;
2290: End if;
2291:
2307: )
2308: );
2309:
2310: If PG_DEBUG <> 0 Then
2311: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Number of records that are not re-used = '||
2312: sql%rowcount,5);
2313: End if;
2314:
2315: l_stmt_num := 70;
2323: l_cur_assg_id := null;
2324: End if;
2325:
2326: If PG_DEBUG <> 0 Then
2327: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Line id = '
2328: ||source_tree_rec.line_id,5);
2329: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Rcv Org Id = '
2330: ||source_tree_rec.rcv_org_id,5);
2331: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Source org id = '
2325:
2326: If PG_DEBUG <> 0 Then
2327: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Line id = '
2328: ||source_tree_rec.line_id,5);
2329: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Rcv Org Id = '
2330: ||source_tree_rec.rcv_org_id,5);
2331: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Source org id = '
2332: ||Source_tree_rec.source_org_id,5);
2333: oe_debug_pub.add(lpad(' ',g_pg_level)||'Old assignment set id = '||l_cur_assg_id,5);
2327: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Line id = '
2328: ||source_tree_rec.line_id,5);
2329: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Rcv Org Id = '
2330: ||source_tree_rec.rcv_org_id,5);
2331: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Source org id = '
2332: ||Source_tree_rec.source_org_id,5);
2333: oe_debug_pub.add(lpad(' ',g_pg_level)||'Old assignment set id = '||l_cur_assg_id,5);
2334: oe_debug_pub.add(lpad(' ',g_pg_level)||'New assignment set id = '||source_tree_rec.assignment_id,5);
2335: --Bugfix 13362916
2329: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Rcv Org Id = '
2330: ||source_tree_rec.rcv_org_id,5);
2331: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Source org id = '
2332: ||Source_tree_rec.source_org_id,5);
2333: oe_debug_pub.add(lpad(' ',g_pg_level)||'Old assignment set id = '||l_cur_assg_id,5);
2334: oe_debug_pub.add(lpad(' ',g_pg_level)||'New assignment set id = '||source_tree_rec.assignment_id,5);
2335: --Bugfix 13362916
2336: oe_debug_pub.add(lpad(' ',g_pg_level)||'SR_RECEIPT_ID = '||source_tree_rec.sr_receipt_id,5);
2337: End if;
2330: ||source_tree_rec.rcv_org_id,5);
2331: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Source org id = '
2332: ||Source_tree_rec.source_org_id,5);
2333: oe_debug_pub.add(lpad(' ',g_pg_level)||'Old assignment set id = '||l_cur_assg_id,5);
2334: oe_debug_pub.add(lpad(' ',g_pg_level)||'New assignment set id = '||source_tree_rec.assignment_id,5);
2335: --Bugfix 13362916
2336: oe_debug_pub.add(lpad(' ',g_pg_level)||'SR_RECEIPT_ID = '||source_tree_rec.sr_receipt_id,5);
2337: End if;
2338: l_stmt_num := 90;
2332: ||Source_tree_rec.source_org_id,5);
2333: oe_debug_pub.add(lpad(' ',g_pg_level)||'Old assignment set id = '||l_cur_assg_id,5);
2334: oe_debug_pub.add(lpad(' ',g_pg_level)||'New assignment set id = '||source_tree_rec.assignment_id,5);
2335: --Bugfix 13362916
2336: oe_debug_pub.add(lpad(' ',g_pg_level)||'SR_RECEIPT_ID = '||source_tree_rec.sr_receipt_id,5);
2337: End if;
2338: l_stmt_num := 90;
2339: if nvl(l_cur_assg_id,-1) <> source_tree_rec.assignment_id then
2340: /* Now this is the time to process the sourcing rule creation.
2365: FOR l_index IN 1..x_msg_count LOOP
2366: l_msg_data := fnd_msg_pub.get(
2367: p_msg_index => l_index,
2368: p_encoded => FND_API.G_FALSE);
2369: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: error : '||substr(l_msg_data,1,250));
2370: END LOOP;
2371:
2372: If x_return_status = FND_API.G_RET_STS_ERROR Then
2373: IF PG_DEBUG <> 0 Then
2370: END LOOP;
2371:
2372: If x_return_status = FND_API.G_RET_STS_ERROR Then
2373: IF PG_DEBUG <> 0 Then
2374: oe_debug_pub.add(lpad(' ',g_pg_level)||
2375: 'CREATE_OSS_SOURCING_RULES: Exepected error occurred in update_oss_in_bcol API',5);
2376: End if;
2377: raise FND_API.G_EXC_ERROR;
2378: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
2376: End if;
2377: raise FND_API.G_EXC_ERROR;
2378: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
2379: IF PG_DEBUG <> 0 Then
2380: oe_debug_pub.add(lpad(' ',g_pg_level)||
2381: 'CREATE_OSS_SOURCING_RULES: Un Exepected error occurred in update_oss_in_bcol API',5);
2382: End if;
2383: raise FND_API.G_EXC_UNEXPECTED_ERROR;
2384: End if;
2392: l_shipping_org_val_tbl.delete;
2393: l_stmt_num := 110;
2394: lAssignmentTbl(asg_count).sourcing_rule_id := x_sourcing_rule_rec.sourcing_rule_id;
2395: If PG_DEBUG <> 0 Then
2396: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: New Sourcing rule cretaed= ' ||x_sourcing_rule_rec.sourcing_rule_id,5);
2397: End if;
2398: Asg_count := asg_count + 1;
2399: l_old_rank := null;
2400: End if; /* l_cur_assg_id is not null */
2403:
2404: l_stmt_num := 120;
2405:
2406: If PG_DEBUG <> 0 Then
2407: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
2408: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
2409: ||source_tree_rec.assignment_type,5);
2410: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
2411: ||oss_model_lines_rec.config_item_id,5);
2404: l_stmt_num := 120;
2405:
2406: If PG_DEBUG <> 0 Then
2407: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
2408: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
2409: ||source_tree_rec.assignment_type,5);
2410: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
2411: ||oss_model_lines_rec.config_item_id,5);
2412: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
2406: If PG_DEBUG <> 0 Then
2407: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
2408: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
2409: ||source_tree_rec.assignment_type,5);
2410: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
2411: ||oss_model_lines_rec.config_item_id,5);
2412: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
2413: ||source_tree_rec.organization_id,5);
2414:
2408: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
2409: ||source_tree_rec.assignment_type,5);
2410: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
2411: ||oss_model_lines_rec.config_item_id,5);
2412: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
2413: ||source_tree_rec.organization_id,5);
2414:
2415: End if;
2416:
2517: where sourcing_rule_id = source_tree_rec.sourcing_rule_id;
2518:
2519:
2520: If PG_DEBUG <> 0 Then
2521: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Sourcing Rule name = '||
2522: l_sourcing_rule_rec.sourcing_rule_name,5);
2523: End if;
2524: l_sourcing_rule_rec.operation := 'CREATE';
2525:
2527:
2528: l_stmt_num := 140;
2529:
2530: If PG_DEBUG <> 0 Then
2531: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Checking l_curr_rcv_org and sr_receipt_id',5);
2532: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: l_curr_rcv_org = '||l_curr_rcv_org,5);
2533: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source_tree_rec.sr_receipt_id = '|| source_tree_rec.sr_receipt_id,5);
2534: End if;
2535:
2528: l_stmt_num := 140;
2529:
2530: If PG_DEBUG <> 0 Then
2531: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Checking l_curr_rcv_org and sr_receipt_id',5);
2532: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: l_curr_rcv_org = '||l_curr_rcv_org,5);
2533: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source_tree_rec.sr_receipt_id = '|| source_tree_rec.sr_receipt_id,5);
2534: End if;
2535:
2536: /*
2529:
2530: If PG_DEBUG <> 0 Then
2531: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Checking l_curr_rcv_org and sr_receipt_id',5);
2532: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: l_curr_rcv_org = '||l_curr_rcv_org,5);
2533: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source_tree_rec.sr_receipt_id = '|| source_tree_rec.sr_receipt_id,5);
2534: End if;
2535:
2536: /*
2537: Bugfix 13362916: Commenting this if condition. Because of this condition, the variable rcv_count was not
2636: sr_receipt_id_cachedloc := l_sr_receipt_id_cache_tbl(source_tree_rec.sr_receipt_id);
2637: END IF; /* !l_sr_receipt_id_cache_tbl.EXISTS(sr_receipt_id) */
2638:
2639: If PG_DEBUG <> 0 Then
2640: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Old Rank = '||l_old_rank);
2641: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: New Rank = '||source_tree_rec.rank);
2642: End if;
2643:
2644: l_stmt_num := 150;
2637: END IF; /* !l_sr_receipt_id_cache_tbl.EXISTS(sr_receipt_id) */
2638:
2639: If PG_DEBUG <> 0 Then
2640: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Old Rank = '||l_old_rank);
2641: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: New Rank = '||source_tree_rec.rank);
2642: End if;
2643:
2644: l_stmt_num := 150;
2645:
2656: and rank = source_tree_rec.rank
2657: and valid_flag = 'P';
2658:
2659: If PG_DEBUG <> 0 Then
2660: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rule id = '||source_tree_rec.sourcing_rule_id);
2661: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rank = '||source_tree_rec.rank);
2662: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rank Sum = '||l_rank_sum);
2663: End if;
2664:
2657: and valid_flag = 'P';
2658:
2659: If PG_DEBUG <> 0 Then
2660: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rule id = '||source_tree_rec.sourcing_rule_id);
2661: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rank = '||source_tree_rec.rank);
2662: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rank Sum = '||l_rank_sum);
2663: End if;
2664:
2665: l_new_rank_seq := l_new_rank_seq + 1;
2658:
2659: If PG_DEBUG <> 0 Then
2660: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rule id = '||source_tree_rec.sourcing_rule_id);
2661: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rank = '||source_tree_rec.rank);
2662: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Rank Sum = '||l_rank_sum);
2663: End if;
2664:
2665: l_new_rank_seq := l_new_rank_seq + 1;
2666: l_old_rank := source_tree_rec.rank;
2670: l_stmt_num := 170;
2671:
2672: l_shipping_org_tbl(i).allocation_percent := source_tree_rec.allocation/l_rank_sum*100;
2673: If PG_DEBUG <> 0 Then
2674: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: New Allocation % = '
2675: ||l_shipping_org_tbl(i).allocation_percent);
2676: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Vendor id = '
2677: ||source_tree_rec.vendor_id,5);
2678: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source org id = '
2672: l_shipping_org_tbl(i).allocation_percent := source_tree_rec.allocation/l_rank_sum*100;
2673: If PG_DEBUG <> 0 Then
2674: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: New Allocation % = '
2675: ||l_shipping_org_tbl(i).allocation_percent);
2676: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Vendor id = '
2677: ||source_tree_rec.vendor_id,5);
2678: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source org id = '
2679: ||source_tree_rec.source_org_id);
2680: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING)RULE: Sr Source id ='
2674: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: New Allocation % = '
2675: ||l_shipping_org_tbl(i).allocation_percent);
2676: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Vendor id = '
2677: ||source_tree_rec.vendor_id,5);
2678: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source org id = '
2679: ||source_tree_rec.source_org_id);
2680: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING)RULE: Sr Source id ='
2681: ||source_tree_rec.sr_source_id);
2682: --Bugfix 13362916
2676: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: Vendor id = '
2677: ||source_tree_rec.vendor_id,5);
2678: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULE: source org id = '
2679: ||source_tree_rec.source_org_id);
2680: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING)RULE: Sr Source id ='
2681: ||source_tree_rec.sr_source_id);
2682: --Bugfix 13362916
2683: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING)RULE: Sr Receipt id ='
2684: ||source_tree_rec.SR_RECEIPT_ID);
2679: ||source_tree_rec.source_org_id);
2680: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING)RULE: Sr Source id ='
2681: ||source_tree_rec.sr_source_id);
2682: --Bugfix 13362916
2683: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING)RULE: Sr Receipt id ='
2684: ||source_tree_rec.SR_RECEIPT_ID);
2685: End if;
2686:
2687: l_shipping_org_tbl(i).rank := l_new_rank_seq;
2746: l_shipping_org_tbl(i).vendor_site_id
2747: from mrp_sr_source_org
2748: where sr_source_id = source_tree_rec.sr_source_id;
2749:
2750: oe_debug_pub.add('Vendor site id inserted = '||l_shipping_org_tbl(i).vendor_site_id,5);
2751: i := i + 1;
2752:
2753: --Bugfix 12917456
2754: sr_receipt_id_cachedloc := NULL;
2766: If l_cur_line_id <> 0 then
2767: -- bug 13362916
2768: --
2769: If PG_DEBUG <> 0 Then
2770: oe_debug_pub.add(lpad(' ',g_pg_level)||'Before Calling the MRP API ');
2771: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_sourcing_rule_rec ');
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2767: -- bug 13362916
2768: --
2769: If PG_DEBUG <> 0 Then
2770: oe_debug_pub.add(lpad(' ',g_pg_level)||'Before Calling the MRP API ');
2771: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_sourcing_rule_rec ');
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2768: --
2769: If PG_DEBUG <> 0 Then
2770: oe_debug_pub.add(lpad(' ',g_pg_level)||'Before Calling the MRP API ');
2771: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_sourcing_rule_rec ');
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2769: If PG_DEBUG <> 0 Then
2770: oe_debug_pub.add(lpad(' ',g_pg_level)||'Before Calling the MRP API ');
2771: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_sourcing_rule_rec ');
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2770: oe_debug_pub.add(lpad(' ',g_pg_level)||'Before Calling the MRP API ');
2771: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_sourcing_rule_rec ');
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2771: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_sourcing_rule_rec ');
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2772: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2773: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Id :'||l_sourcing_rule_rec.Sourcing_Rule_Id );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2774: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute1 :'||l_sourcing_rule_rec.Attribute1 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2775: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute10 :'||l_sourcing_rule_rec.Attribute10 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2776: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute11 :'||l_sourcing_rule_rec.Attribute11 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2777: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute12 :'||l_sourcing_rule_rec.Attribute12 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2778: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute13 :'||l_sourcing_rule_rec.Attribute13 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2779: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute14 :'||l_sourcing_rule_rec.Attribute14 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2780: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute15 :'||l_sourcing_rule_rec.Attribute15 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2781: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute2 :'||l_sourcing_rule_rec.Attribute2 );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2782: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute3 :'||l_sourcing_rule_rec.Attribute3 );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2783: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute4 :'||l_sourcing_rule_rec.Attribute4 );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2784: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute5 :'||l_sourcing_rule_rec.Attribute5 );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2785: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute6 :'||l_sourcing_rule_rec.Attribute6 );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2786: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute7 :'||l_sourcing_rule_rec.Attribute7 );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2787: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute8 :'||l_sourcing_rule_rec.Attribute8 );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2788: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute9 :'||l_sourcing_rule_rec.Attribute9 );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2789: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Attribute_Category :'||l_sourcing_rule_rec.Attribute_Category );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2790: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Created_By :'||l_sourcing_rule_rec.Created_By );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2791: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Creation_Date :'||l_sourcing_rule_rec.Creation_Date );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2792: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Description :'||l_sourcing_rule_rec.Description );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2793: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Updated_By :'||l_sourcing_rule_rec.Last_Updated_By );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2794: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Date :'||l_sourcing_rule_rec.Last_Update_Date );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2795: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Last_Update_Login :'||l_sourcing_rule_rec.Last_Update_Login );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2796: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Organization_Id :'||l_sourcing_rule_rec.Organization_Id );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2797: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Planning_Active :'||l_sourcing_rule_rec.Planning_Active );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2798: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Application_Id :'||l_sourcing_rule_rec.Program_Application_Id );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2799: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Id :'||l_sourcing_rule_rec.Program_Id );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2800: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Program_Update_Date :'||l_sourcing_rule_rec.Program_Update_Date );
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2801: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Request_Id :'||l_sourcing_rule_rec.Request_Id );
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2809:
2802: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Name :'||l_sourcing_rule_rec.Sourcing_Rule_Name );
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2809:
2810: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_val_rec.null_element :'|| l_sourcing_rule_val_rec.null_element);
2803: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Sourcing_Rule_Type :'||l_sourcing_rule_rec.Sourcing_Rule_Type );
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2809:
2810: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_val_rec.null_element :'|| l_sourcing_rule_val_rec.null_element);
2811:
2804: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.Status :'||l_sourcing_rule_rec.Status );
2805: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.return_status :'||l_sourcing_rule_rec.return_status );
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2809:
2810: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_val_rec.null_element :'|| l_sourcing_rule_val_rec.null_element);
2811:
2812: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_tbl count :'|| l_receiving_org_tbl.count);
2806: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.db_flag :'||l_sourcing_rule_rec.db_flag );
2807: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_rec.operation :'||l_sourcing_rule_rec.operation );
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2809:
2810: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_val_rec.null_element :'|| l_sourcing_rule_val_rec.null_element);
2811:
2812: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_tbl count :'|| l_receiving_org_tbl.count);
2813: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2814:
2808: oe_debug_pub.add(lpad(' ',g_pg_level)||'==============================================');
2809:
2810: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_val_rec.null_element :'|| l_sourcing_rule_val_rec.null_element);
2811:
2812: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_tbl count :'|| l_receiving_org_tbl.count);
2813: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2814:
2815: FOR debug_cntr in 1..l_receiving_org_tbl.count LOOP
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2809:
2810: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_sourcing_rule_val_rec.null_element :'|| l_sourcing_rule_val_rec.null_element);
2811:
2812: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_tbl count :'|| l_receiving_org_tbl.count);
2813: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2814:
2815: FOR debug_cntr in 1..l_receiving_org_tbl.count LOOP
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2812: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_tbl count :'|| l_receiving_org_tbl.count);
2813: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2814:
2815: FOR debug_cntr in 1..l_receiving_org_tbl.count LOOP
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2813: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2814:
2815: FOR debug_cntr in 1..l_receiving_org_tbl.count LOOP
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2814:
2815: FOR debug_cntr in 1..l_receiving_org_tbl.count LOOP
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2815: FOR debug_cntr in 1..l_receiving_org_tbl.count LOOP
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2816: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sr_Receipt_Id :' || l_receiving_org_tbl(debug_cntr).Sr_Receipt_Id );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2817: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute1 :' || l_receiving_org_tbl(debug_cntr).Attribute1 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2818: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute10 :' || l_receiving_org_tbl(debug_cntr).Attribute10 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2819: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute11 :' || l_receiving_org_tbl(debug_cntr).Attribute11 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2820: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute12 :' || l_receiving_org_tbl(debug_cntr).Attribute12 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2821: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute13 :' || l_receiving_org_tbl(debug_cntr).Attribute13 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2822: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute14 :' || l_receiving_org_tbl(debug_cntr).Attribute14 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2823: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute15 :' || l_receiving_org_tbl(debug_cntr).Attribute15 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2824: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute2 :' || l_receiving_org_tbl(debug_cntr).Attribute2 );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2825: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute3 :' || l_receiving_org_tbl(debug_cntr).Attribute3 );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2826: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute4 :' || l_receiving_org_tbl(debug_cntr).Attribute4 );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2827: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute5 :' || l_receiving_org_tbl(debug_cntr).Attribute5 );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2828: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute6 :' || l_receiving_org_tbl(debug_cntr).Attribute6 );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2829: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute7 :' || l_receiving_org_tbl(debug_cntr).Attribute7 );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2830: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute8 :' || l_receiving_org_tbl(debug_cntr).Attribute8 );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2831: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute9 :' || l_receiving_org_tbl(debug_cntr).Attribute9 );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2832: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Attribute_Category :' || l_receiving_org_tbl(debug_cntr).Attribute_Category );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2833: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Created_By :' || l_receiving_org_tbl(debug_cntr).Created_By );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2834: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Creation_Date :' || l_receiving_org_tbl(debug_cntr).Creation_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2835: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Disable_Date :' || l_receiving_org_tbl(debug_cntr).Disable_Date );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2836: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Effective_Date :' || l_receiving_org_tbl(debug_cntr).Effective_Date );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2837: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Updated_By :' || l_receiving_org_tbl(debug_cntr).Last_Updated_By );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2838: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Date :' || l_receiving_org_tbl(debug_cntr).Last_Update_Date );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2839: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Last_Update_Login :' || l_receiving_org_tbl(debug_cntr).Last_Update_Login );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2840: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Application_Id :' || l_receiving_org_tbl(debug_cntr).Program_Application_Id );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2841: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Id :' || l_receiving_org_tbl(debug_cntr).Program_Id );
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2849: END LOOP;
2842: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Program_Update_Date :' || l_receiving_org_tbl(debug_cntr).Program_Update_Date );
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2849: END LOOP;
2850: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2843: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Receipt_Organization_Id :' || l_receiving_org_tbl(debug_cntr).Receipt_Organization_Id );
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2849: END LOOP;
2850: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2851:
2844: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Request_Id :' || l_receiving_org_tbl(debug_cntr).Request_Id );
2845: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').Sourcing_Rule_Id :' || l_receiving_org_tbl(debug_cntr).Sourcing_Rule_Id );
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2849: END LOOP;
2850: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2851:
2852: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_val_tbl count :'|| l_receiving_org_val_tbl.count);
2846: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').return_status :' || l_receiving_org_tbl(debug_cntr).return_status );
2847: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').db_flag :' || l_receiving_org_tbl(debug_cntr).db_flag );
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2849: END LOOP;
2850: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2851:
2852: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_val_tbl count :'|| l_receiving_org_val_tbl.count);
2853: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2854:
2848: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_tbl('||debug_cntr||').operation :' || l_receiving_org_tbl(debug_cntr).operation );
2849: END LOOP;
2850: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2851:
2852: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_val_tbl count :'|| l_receiving_org_val_tbl.count);
2853: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2854:
2855: FOR debug_cntr2 in 1..l_receiving_org_val_tbl.count LOOP
2856: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_val_tbl('||debug_cntr2||').null_element :' || l_receiving_org_val_tbl(debug_cntr2).null_element );
2849: END LOOP;
2850: oe_debug_pub.add(lpad(' ',g_pg_level)||'--------------------------------------------------------------------------');
2851:
2852: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_val_tbl count :'|| l_receiving_org_val_tbl.count);
2853: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2854:
2855: FOR debug_cntr2 in 1..l_receiving_org_val_tbl.count LOOP
2856: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_val_tbl('||debug_cntr2||').null_element :' || l_receiving_org_val_tbl(debug_cntr2).null_element );
2857: END LOOP;
2852: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_receiving_org_val_tbl count :'|| l_receiving_org_val_tbl.count);
2853: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2854:
2855: FOR debug_cntr2 in 1..l_receiving_org_val_tbl.count LOOP
2856: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_val_tbl('||debug_cntr2||').null_element :' || l_receiving_org_val_tbl(debug_cntr2).null_element );
2857: END LOOP;
2858:
2859: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2860:
2855: FOR debug_cntr2 in 1..l_receiving_org_val_tbl.count LOOP
2856: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_receiving_org_val_tbl('||debug_cntr2||').null_element :' || l_receiving_org_val_tbl(debug_cntr2).null_element );
2857: END LOOP;
2858:
2859: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2860:
2861: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_tbl count :'|| l_shipping_org_tbl.count);
2862: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2863:
2857: END LOOP;
2858:
2859: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2860:
2861: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_tbl count :'|| l_shipping_org_tbl.count);
2862: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2863:
2864: FOR debug_cntr3 in 1..l_shipping_org_tbl.count LOOP
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2858:
2859: oe_debug_pub.add(lpad(' ',g_pg_level)||'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');
2860:
2861: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_tbl count :'|| l_shipping_org_tbl.count);
2862: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2863:
2864: FOR debug_cntr3 in 1..l_shipping_org_tbl.count LOOP
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2861: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_tbl count :'|| l_shipping_org_tbl.count);
2862: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2863:
2864: FOR debug_cntr3 in 1..l_shipping_org_tbl.count LOOP
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2862: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2863:
2864: FOR debug_cntr3 in 1..l_shipping_org_tbl.count LOOP
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2863:
2864: FOR debug_cntr3 in 1..l_shipping_org_tbl.count LOOP
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2864: FOR debug_cntr3 in 1..l_shipping_org_tbl.count LOOP
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2865: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Source_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Source_Id );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2866: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Allocation_Percent :' || l_shipping_org_tbl(debug_cntr3).Allocation_Percent );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2867: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute1 :' || l_shipping_org_tbl(debug_cntr3).Attribute1 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2868: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute10 :' || l_shipping_org_tbl(debug_cntr3).Attribute10 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2869: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute11 :' || l_shipping_org_tbl(debug_cntr3).Attribute11 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2870: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute12 :' || l_shipping_org_tbl(debug_cntr3).Attribute12 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2871: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute13 :' || l_shipping_org_tbl(debug_cntr3).Attribute13 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2872: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute14 :' || l_shipping_org_tbl(debug_cntr3).Attribute14 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2873: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute15 :' || l_shipping_org_tbl(debug_cntr3).Attribute15 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2874: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute2 :' || l_shipping_org_tbl(debug_cntr3).Attribute2 );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2875: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute3 :' || l_shipping_org_tbl(debug_cntr3).Attribute3 );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2876: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute4 :' || l_shipping_org_tbl(debug_cntr3).Attribute4 );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2877: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute5 :' || l_shipping_org_tbl(debug_cntr3).Attribute5 );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2878: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute6 :' || l_shipping_org_tbl(debug_cntr3).Attribute6 );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2879: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute7 :' || l_shipping_org_tbl(debug_cntr3).Attribute7 );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2880: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute8 :' || l_shipping_org_tbl(debug_cntr3).Attribute8 );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2881: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute9 :' || l_shipping_org_tbl(debug_cntr3).Attribute9 );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2882: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Attribute_Category :' || l_shipping_org_tbl(debug_cntr3).Attribute_Category );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2883: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Created_By :' || l_shipping_org_tbl(debug_cntr3).Created_By );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2884: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Creation_Date :' || l_shipping_org_tbl(debug_cntr3).Creation_Date );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2885: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Updated_By :' || l_shipping_org_tbl(debug_cntr3).Last_Updated_By );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2886: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Date );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2887: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Last_Update_Login :' || l_shipping_org_tbl(debug_cntr3).Last_Update_Login );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2888: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Application_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Application_Id );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2889: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Id :' || l_shipping_org_tbl(debug_cntr3).Program_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2890: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Program_Update_Date :' || l_shipping_org_tbl(debug_cntr3).Program_Update_Date );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2891: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Rank :' || l_shipping_org_tbl(debug_cntr3).Rank );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2892: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Request_Id :' || l_shipping_org_tbl(debug_cntr3).Request_Id );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2893: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Secondary_Inventory :' || l_shipping_org_tbl(debug_cntr3).Secondary_Inventory );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2894: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Ship_Method :' || l_shipping_org_tbl(debug_cntr3).Ship_Method );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2895: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Organization_Id :' || l_shipping_org_tbl(debug_cntr3).Source_Organization_Id );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2903: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Receiving_Org_index :' || l_shipping_org_tbl(debug_cntr3).Receiving_Org_index );
2896: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Source_Type :' || l_shipping_org_tbl(debug_cntr3).Source_Type );
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2903: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Receiving_Org_index :' || l_shipping_org_tbl(debug_cntr3).Receiving_Org_index );
2904: END LOOP;
2897: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Sr_Receipt_Id :' || l_shipping_org_tbl(debug_cntr3).Sr_Receipt_Id );
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2903: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Receiving_Org_index :' || l_shipping_org_tbl(debug_cntr3).Receiving_Org_index );
2904: END LOOP;
2905:
2898: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Id );
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2903: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Receiving_Org_index :' || l_shipping_org_tbl(debug_cntr3).Receiving_Org_index );
2904: END LOOP;
2905:
2906: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2899: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Vendor_Site_Id :' || l_shipping_org_tbl(debug_cntr3).Vendor_Site_Id );
2900: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').return_status :' || l_shipping_org_tbl(debug_cntr3).return_status );
2901: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').db_flag :' || l_shipping_org_tbl(debug_cntr3).db_flag );
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2903: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Receiving_Org_index :' || l_shipping_org_tbl(debug_cntr3).Receiving_Org_index );
2904: END LOOP;
2905:
2906: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2907:
2902: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').operation :' || l_shipping_org_tbl(debug_cntr3).operation );
2903: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_tbl('||debug_cntr3||').Receiving_Org_index :' || l_shipping_org_tbl(debug_cntr3).Receiving_Org_index );
2904: END LOOP;
2905:
2906: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2907:
2908: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_val_tbl count :'|| l_shipping_org_val_tbl.count);
2909: oe_debug_pub.add(lpad(' ',g_pg_level)||'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
2910:
2904: END LOOP;
2905:
2906: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2907:
2908: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_val_tbl count :'|| l_shipping_org_val_tbl.count);
2909: oe_debug_pub.add(lpad(' ',g_pg_level)||'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
2910:
2911: FOR debug_cntr4 in 1..l_shipping_org_val_tbl.count LOOP
2912: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_val_tbl('||debug_cntr4||').null_element :' || l_shipping_org_val_tbl(debug_cntr4).null_element );
2905:
2906: oe_debug_pub.add(lpad(' ',g_pg_level)||'**********************************************************************************');
2907:
2908: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_val_tbl count :'|| l_shipping_org_val_tbl.count);
2909: oe_debug_pub.add(lpad(' ',g_pg_level)||'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
2910:
2911: FOR debug_cntr4 in 1..l_shipping_org_val_tbl.count LOOP
2912: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_val_tbl('||debug_cntr4||').null_element :' || l_shipping_org_val_tbl(debug_cntr4).null_element );
2913: END LOOP;
2908: oe_debug_pub.add(lpad(' ',g_pg_level)||'Printing data of l_shipping_org_val_tbl count :'|| l_shipping_org_val_tbl.count);
2909: oe_debug_pub.add(lpad(' ',g_pg_level)||'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
2910:
2911: FOR debug_cntr4 in 1..l_shipping_org_val_tbl.count LOOP
2912: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_val_tbl('||debug_cntr4||').null_element :' || l_shipping_org_val_tbl(debug_cntr4).null_element );
2913: END LOOP;
2914:
2915: oe_debug_pub.add(lpad(' ',g_pg_level)||'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
2916: END If;
2911: FOR debug_cntr4 in 1..l_shipping_org_val_tbl.count LOOP
2912: oe_debug_pub.add(lpad(' ',g_pg_level)||'l_shipping_org_val_tbl('||debug_cntr4||').null_element :' || l_shipping_org_val_tbl(debug_cntr4).null_element );
2913: END LOOP;
2914:
2915: oe_debug_pub.add(lpad(' ',g_pg_level)||'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
2916: END If;
2917:
2918: MRP_SOURCING_RULE_PUB.PROCESS_SOURCING_RULE(
2919: p_api_version_number => 1.0,
2937: FOR l_index IN 1..x_msg_count LOOP
2938: l_msg_data := fnd_msg_pub.get(
2939: p_msg_index => l_index,
2940: p_encoded => FND_API.G_FALSE);
2941: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: error : '||substr(l_msg_data,1,250));
2942: END LOOP;
2943:
2944: If x_return_status = FND_API.G_RET_STS_ERROR Then
2945: IF PG_DEBUG <> 0 Then
2942: END LOOP;
2943:
2944: If x_return_status = FND_API.G_RET_STS_ERROR Then
2945: IF PG_DEBUG <> 0 Then
2946: oe_debug_pub.add(lpad(' ',g_pg_level)||
2947: 'CREATE_OSS_SOURCING_RULES: Exepected error occurred in update_oss_in_bcol API',5);
2948: End if;
2949: raise FND_API.G_EXC_ERROR;
2950: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
2948: End if;
2949: raise FND_API.G_EXC_ERROR;
2950: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
2951: IF PG_DEBUG <> 0 Then
2952: oe_debug_pub.add(lpad(' ',g_pg_level)||
2953: 'CREATE_OSS_SOURCING_RULES: Un Exepected error occurred in update_oss_in_bcol API',5);
2954: End if;
2955: raise FND_API.G_EXC_UNEXPECTED_ERROR;
2956: End if;
2955: raise FND_API.G_EXC_UNEXPECTED_ERROR;
2956: End if;
2957:
2958: If PG_DEBUG <> 0 Then
2959: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: New sourcing Rule created = '
2960: ||x_sourcing_rule_rec.sourcing_rule_id,5);
2961: End if;
2962:
2963: lAssignmentTbl(asg_count).sourcing_rule_id := x_sourcing_rule_rec.sourcing_rule_id;
2983:
2984: l_stmt_num := 200;
2985:
2986: If PG_DEBUG <> 0 Then
2987: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: '||'Before make orgs loop ',5);
2988: End if;
2989:
2990: For oss_make_orgs in
2991: oss_make_orgs_cur(oss_model_lines_rec.line_id,oss_model_lines_rec.config_item_id)
2991: oss_make_orgs_cur(oss_model_lines_rec.line_id,oss_model_lines_rec.config_item_id)
2992: Loop
2993:
2994:
2995: oe_debug_pub.add('Inside make at rule loop ',5);
2996: l_stmt_num := 210;
2997:
2998: l_sourcing_rule_rec := MRP_SOURCING_RULE_PUB.G_MISS_SOURCING_RULE_REC;
2999: l_sourcing_rule_rec.organization_id := oss_make_orgs.rcv_org_id;
3060: x_msg_data => x_msg_data);
3061:
3062: If x_return_status = FND_API.G_RET_STS_ERROR Then
3063: IF PG_DEBUG <> 0 Then
3064: oe_debug_pub.add(lpad(' ',g_pg_level)||
3065: 'CREATE_OSS_SOURCING_RULES: Exepected error occurred in update_oss_in_bcol API',5);
3066: End if;
3067: raise FND_API.G_EXC_ERROR;
3068: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3066: End if;
3067: raise FND_API.G_EXC_ERROR;
3068: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3069: IF PG_DEBUG <> 0 Then
3070: oe_debug_pub.add(lpad(' ',g_pg_level)||
3071: 'CREATE_OSS_SOURCING_RULES: Un Exepected error occurred in update_oss_in_bcol API',5);
3072: End if;
3073: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3074: End if;
3074: End if;
3075:
3076:
3077: If PG_DEBUG <> 0 Then
3078: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
3079: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3080: ||'6',5);
3081: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3082: ||oss_model_lines_rec.config_item_id,5);
3075:
3076:
3077: If PG_DEBUG <> 0 Then
3078: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
3079: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3080: ||'6',5);
3081: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3082: ||oss_model_lines_rec.config_item_id,5);
3083: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
3077: If PG_DEBUG <> 0 Then
3078: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
3079: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3080: ||'6',5);
3081: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3082: ||oss_model_lines_rec.config_item_id,5);
3083: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
3084: ||oss_make_orgs.rcv_org_id,5);
3085:
3079: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3080: ||'6',5);
3081: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3082: ||oss_model_lines_rec.config_item_id,5);
3083: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
3084: ||oss_make_orgs.rcv_org_id,5);
3085:
3086:
3087: End if;
3103: l_stmt_num := 230;
3104:
3105:
3106: If PG_DEBUG <> 0 Then
3107: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: '||'Before reuse org loop ',5);
3108: End if;
3109:
3110: For oss_reused_assg_rec in
3111: oss_reused_assg(oss_model_lines_rec.line_id,oss_model_lines_rec.config_item_id)
3112: Loop
3113:
3114:
3115: If PG_DEBUG <> 0 Then
3116: oe_debug_pub.add(lpad(' ',g_pg_level)||'Inside Reuse assignments loop',5);
3117: oe_debug_pub.add(lpad(' ',g_pg_level)||'Assignment id = '||oss_reused_assg_rec.assignment_id,5);
3118: End if;
3119:
3120: l_Stmt_Num := 240;
3113:
3114:
3115: If PG_DEBUG <> 0 Then
3116: oe_debug_pub.add(lpad(' ',g_pg_level)||'Inside Reuse assignments loop',5);
3117: oe_debug_pub.add(lpad(' ',g_pg_level)||'Assignment id = '||oss_reused_assg_rec.assignment_id,5);
3118: End if;
3119:
3120: l_Stmt_Num := 240;
3121:
3208: FROM MRP_SR_ASSIGNMENTS
3209: WHERE ASSIGNMENT_ID = oss_reused_assg_rec.assignment_id;
3210:
3211: If PG_DEBUG <> 0 Then
3212: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
3213: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3214: ||lAssignmentRec.Assignment_Type,5);
3215: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3216: ||oss_model_lines_rec.config_item_id,5);
3209: WHERE ASSIGNMENT_ID = oss_reused_assg_rec.assignment_id;
3210:
3211: If PG_DEBUG <> 0 Then
3212: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
3213: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3214: ||lAssignmentRec.Assignment_Type,5);
3215: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3216: ||oss_model_lines_rec.config_item_id,5);
3217: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
3211: If PG_DEBUG <> 0 Then
3212: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: Loading the assignment into assignment record ',5);
3213: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3214: ||lAssignmentRec.Assignment_Type,5);
3215: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3216: ||oss_model_lines_rec.config_item_id,5);
3217: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
3218: ||lAssignmentRec.Organization_Id,5);
3219: End if;
3213: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES: assignment_type = '
3214: ||lAssignmentRec.Assignment_Type,5);
3215: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: inventory item id = '
3216: ||oss_model_lines_rec.config_item_id,5);
3217: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: organization id = '
3218: ||lAssignmentRec.Organization_Id,5);
3219: End if;
3220:
3221: l_Stmt_Num := 245;
3277:
3278: l_stmt_num := 250;
3279:
3280: If pg_debug <> 0 then
3281: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: assignment count = '|| lAssignmentTbl.count,5);
3282: End if;
3283:
3284:
3285: If lAssignmentTbl.count <> 0 Then
3298: FOR l_index IN 1..x_msg_count LOOP
3299: l_msg_data := fnd_msg_pub.get(
3300: p_msg_index => l_index,
3301: p_encoded => FND_API.G_FALSE);
3302: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: error : '||substr(l_msg_data,1,250));
3303: END LOOP;
3304: If x_return_status = FND_API.G_RET_STS_ERROR Then
3305: IF PG_DEBUG <> 0 Then
3306: oe_debug_pub.add(lpad(' ',g_pg_level)||
3302: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES: error : '||substr(l_msg_data,1,250));
3303: END LOOP;
3304: If x_return_status = FND_API.G_RET_STS_ERROR Then
3305: IF PG_DEBUG <> 0 Then
3306: oe_debug_pub.add(lpad(' ',g_pg_level)||
3307: 'CREATE_OSS_SOURCING_RULES: Exepected error occurred in update_oss_in_bcol API',5);
3308: End if;
3309: raise FND_API.G_EXC_ERROR;
3310: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3308: End if;
3309: raise FND_API.G_EXC_ERROR;
3310: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3311: IF PG_DEBUG <> 0 Then
3312: oe_debug_pub.add(lpad(' ',g_pg_level)||
3313: 'CREATE_OSS_SOURCING_RULES: Un Exepected error occurred in update_oss_in_bcol API',5);
3314: End if;
3315: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3316: End if;
3353: Exception
3354:
3355: WHEN FND_API.G_EXC_ERROR THEN
3356: IF PG_DEBUG <> 0 THEN
3357: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCNIG_RULES::exp error::'
3358: ||to_char(l_stmt_num)
3359: ||'::'||sqlerrm,1);
3360: END IF;
3361: x_return_status := FND_API.G_RET_STS_ERROR;
3365: p_msg_data => x_msg_data
3366: );
3367: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3368: IF PG_DEBUG <> 0 THEN
3369: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES::exp error::'
3370: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
3371: END IF;
3372: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3373: g_pg_level := g_pg_level - 3;
3376: p_msg_data => x_msg_data
3377: );
3378: WHEN OTHERS THEN
3379: IF PG_DEBUG <> 0 THEN
3380: oe_debug_pub.add(lpad(' ',g_pg_level)||'CREATE_OSS_SOURCING_RULES::exp error::'
3381: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
3382: END IF;
3383: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3384: g_pg_level := g_pg_level - 3;
3410: l_stmt_num := 10;
3411: g_pg_level := g_pg_level + 3;
3412:
3413: If PG_DEBUG <> 0 Then
3414: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Inside Update Source Tree API',5);
3415: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Line id ='||p_line_id,5);
3416: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Org id ='||p_end_org,5);
3417: End if;
3418: If p_line_id is null and p_end_org is null then
3411: g_pg_level := g_pg_level + 3;
3412:
3413: If PG_DEBUG <> 0 Then
3414: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Inside Update Source Tree API',5);
3415: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Line id ='||p_line_id,5);
3416: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Org id ='||p_end_org,5);
3417: End if;
3418: If p_line_id is null and p_end_org is null then
3419: return;
3412:
3413: If PG_DEBUG <> 0 Then
3414: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Inside Update Source Tree API',5);
3415: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Line id ='||p_line_id,5);
3416: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Org id ='||p_end_org,5);
3417: End if;
3418: If p_line_id is null and p_end_org is null then
3419: return;
3420: end if;
3428: and nvl(leaf_node,'N') <> 'Y'
3429: returning rcv_org_id bulk collect into l_org_tbl;
3430:
3431: If PG_DEBUG <> 0 Then
3432: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_SOURCE_TREE: Number parent orgs = '||l_org_tbl.count,5);
3433: End if;
3434:
3435: /* Need to work for Cutomer rules... */
3436:
3444: x_msg_count => x_msg_count
3445: );
3446: If x_return_status = FND_API.G_RET_STS_ERROR Then
3447: IF PG_DEBUG <> 0 Then
3448: oe_debug_pub.add(lpad(' ',g_pg_level)||
3449: 'UPDATE_SOURCE_TREE: Exepected error occurred in update_oss_in_bcol API',5);
3450: End if;
3451: raise FND_API.G_EXC_ERROR;
3452: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3450: End if;
3451: raise FND_API.G_EXC_ERROR;
3452: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3453: IF PG_DEBUG <> 0 Then
3454: oe_debug_pub.add(lpad(' ',g_pg_level)||
3455: 'UPDATE_SOURCE_TREE: Un Exepected error occurred in update_oss_in_bcol API',5);
3456: End if;
3457: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3458: End if;
3546: x_msg_count => x_msg_count,
3547: x_msg_data => x_msg_data);
3548: If x_return_status = FND_API.G_RET_STS_ERROR Then
3549: IF PG_DEBUG <> 0 Then
3550: oe_debug_pub.add(lpad(' ',g_pg_level)||
3551: 'PRUNE_ITEM_LEVEL_RULE: Exepected error occurred in update_oss_in_bcol API',5);
3552: End if;
3553: raise FND_API.G_EXC_ERROR;
3554: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3552: End if;
3553: raise FND_API.G_EXC_ERROR;
3554: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3555: IF PG_DEBUG <> 0 Then
3556: oe_debug_pub.add(lpad(' ',g_pg_level)||
3557: 'PRUNE_ITEM_LEVEL_RULE: Un Exepected error occurred in update_oss_in_bcol API',5);
3558: End if;
3559: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3560: End if;
3613: )
3614: returning rcv_org_id bulk collect into l_source_org_tbl;
3615:
3616:
3617: oe_debug_pub.add(lpad(' ',g_pg_level)||'Prune_item_level_rule Updated
3618: valid leaf nodes = '||l_source_org_tbl.count,1);
3619:
3620: /* For all the above leaf nodes, traverse the tree up
3621: and update all the parents as valid
3631: x_msg_count => x_msg_count,
3632: x_msg_data => x_msg_data);
3633: If x_return_status = FND_API.G_RET_STS_ERROR Then
3634: IF PG_DEBUG <> 0 Then
3635: oe_debug_pub.add(lpad(' ',g_pg_level)||
3636: 'PRUNE_ITEM_LEVEL_RULE: Exepected error occurred in update_oss_in_bcol API',5);
3637: End if;
3638: raise FND_API.G_EXC_ERROR;
3639: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3637: End if;
3638: raise FND_API.G_EXC_ERROR;
3639: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3640: IF PG_DEBUG <> 0 Then
3641: oe_debug_pub.add(lpad(' ',g_pg_level)||
3642: 'PRUNE_ITEM_LEVEL_RULE: Un Exepected error occurred in update_oss_in_bcol API',5);
3643: End if;
3644: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3645: End if;
3646: End if;
3647:
3648: End loop;
3649: Else /* X_rule_exists */
3650: oe_debug_pub.add(lpad(' ',g_pg_level)||'PRUNE_ITEM_LEVEL_RULE: Updating bcol with option specific = 4',1);
3651:
3652: update /*+ INDEX (bcol BOM_CTO_ORDER_LINES_GT_U1) */
3653: bom_cto_order_lines_gt bcol
3654: set option_specific = 4
3692: Begin
3693: g_pg_level := nvl(g_pg_level,0)+3;
3694:
3695: If PG_DEBUG <> 0 Then
3696: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Entering Find Leaf Node',5);
3697: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_source_org_id = '||p_source_org_id,5);
3698: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_rcv_org_id = '||p_rcv_org_id,5);
3699: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: p_model_line_id = '||p_model_line_id,5);
3700: End if;
3693: g_pg_level := nvl(g_pg_level,0)+3;
3694:
3695: If PG_DEBUG <> 0 Then
3696: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Entering Find Leaf Node',5);
3697: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_source_org_id = '||p_source_org_id,5);
3698: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_rcv_org_id = '||p_rcv_org_id,5);
3699: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: p_model_line_id = '||p_model_line_id,5);
3700: End if;
3701:
3694:
3695: If PG_DEBUG <> 0 Then
3696: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Entering Find Leaf Node',5);
3697: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_source_org_id = '||p_source_org_id,5);
3698: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_rcv_org_id = '||p_rcv_org_id,5);
3699: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: p_model_line_id = '||p_model_line_id,5);
3700: End if;
3701:
3702: -- bug 13362916
3695: If PG_DEBUG <> 0 Then
3696: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Entering Find Leaf Node',5);
3697: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_source_org_id = '||p_source_org_id,5);
3698: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: P_rcv_org_id = '||p_rcv_org_id,5);
3699: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: p_model_line_id = '||p_model_line_id,5);
3700: End if;
3701:
3702: -- bug 13362916
3703: -- select /*+ INDEX (oss_src BOM_CTO_OSS_SOURCE_GT_N2) */
3721: AND nvl(valid_flag,'Y') <> 'N';
3722:
3723: IF PG_DEBUG <> 0 Then
3724: -- bug 13362916
3725: -- oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Org count = '||l_source_org_id.count,5);
3726: -- oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Type count = '||l_source_type.count,5);
3727: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Details Tab count = '||source_details_tab.count,5);
3728: End if;
3729:
3722:
3723: IF PG_DEBUG <> 0 Then
3724: -- bug 13362916
3725: -- oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Org count = '||l_source_org_id.count,5);
3726: -- oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Type count = '||l_source_type.count,5);
3727: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Details Tab count = '||source_details_tab.count,5);
3728: End if;
3729:
3730:
3723: IF PG_DEBUG <> 0 Then
3724: -- bug 13362916
3725: -- oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Org count = '||l_source_org_id.count,5);
3726: -- oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Type count = '||l_source_type.count,5);
3727: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: Source Details Tab count = '||source_details_tab.count,5);
3728: End if;
3729:
3730:
3731: -- If l_source_type.count <> 0 then
3733: --For i in l_source_type.first..l_source_type.last
3734: For i in 1..source_details_tab.count
3735: Loop
3736: IF PG_DEBUG <> 0 Then
3737: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: source_details_tab.l_source_type = '||source_details_tab(i).l_source_type,5);
3738: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: source_details_tab.l_source_org_id = '||source_details_tab(i).l_source_org_id,5);
3739: End if;
3740:
3741: -- If l_source_type(i) not in (2,3) then
3734: For i in 1..source_details_tab.count
3735: Loop
3736: IF PG_DEBUG <> 0 Then
3737: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: source_details_tab.l_source_type = '||source_details_tab(i).l_source_type,5);
3738: oe_debug_pub.add(lpad(' ',g_pg_level)||'FIND_LEAF_NODE: source_details_tab.l_source_org_id = '||source_details_tab(i).l_source_org_id,5);
3739: End if;
3740:
3741: -- If l_source_type(i) not in (2,3) then
3742: If source_details_tab(i).l_source_type not in (2,3) then
3748: x_msg_count => x_msg_count);
3749:
3750: If x_return_status = FND_API.G_RET_STS_ERROR Then
3751: IF PG_DEBUG <> 0 Then
3752: oe_debug_pub.add(lpad(' ',g_pg_level)||
3753: 'FIND_LEAF_NODE: Exepected error occurred in update_oss_in_bcol API',5);
3754: End if;
3755: raise FND_API.G_EXC_ERROR;
3756: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3754: End if;
3755: raise FND_API.G_EXC_ERROR;
3756: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3757: IF PG_DEBUG <> 0 Then
3758: oe_debug_pub.add(lpad(' ',g_pg_level)||
3759: 'FIND_LEAF_NODE: Un Exepected error occurred in update_oss_in_bcol API',5);
3760: End if;
3761: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3762: End if;
3821: x_msg_count => x_msg_count,
3822: x_msg_data => x_msg_data);
3823: If x_return_status = FND_API.G_RET_STS_ERROR Then
3824: IF PG_DEBUG <> 0 Then
3825: oe_debug_pub.add(lpad(' ',g_pg_level)||
3826: 'FIND_LEAF_NODE: Exepected error occurred in update_oss_in_bcol API',5);
3827: End if;
3828: raise FND_API.G_EXC_ERROR;
3829: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3827: End if;
3828: raise FND_API.G_EXC_ERROR;
3829: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3830: IF PG_DEBUG <> 0 Then
3831: oe_debug_pub.add(lpad(' ',g_pg_level)||
3832: 'FIND_LEAF_NODE: Un Exepected error occurred in update_oss_in_bcol API',5);
3833: End if;
3834: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3835: End if;
3837: End if;/* Sql%rowcount <> 0 then */
3838: End Loop;
3839: else
3840: IF PG_DEBUG <> 0 THEN
3841: oe_debug_pub.add('Inside else.. Find_leaf_node');
3842: END IF;
3843:
3844: update /*+ INDEX (oss_src BOM_CTO_OSS_SOURCE_GT_N2) */
3845: bom_cto_oss_source_gt oss_src
3870: x_msg_count => x_msg_count,
3871: x_msg_data => x_msg_data);
3872: If x_return_status = FND_API.G_RET_STS_ERROR Then
3873: IF PG_DEBUG <> 0 Then
3874: oe_debug_pub.add(lpad(' ',g_pg_level)||
3875: 'FIND_LEAF_NODE: Exepected error occurred in update_oss_in_bcol API',5);
3876: End if;
3877: raise FND_API.G_EXC_ERROR;
3878: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3876: End if;
3877: raise FND_API.G_EXC_ERROR;
3878: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3879: IF PG_DEBUG <> 0 Then
3880: oe_debug_pub.add(lpad(' ',g_pg_level)||
3881: 'FIND_LEAF_NODE: Un Exepected error occurred in update_oss_in_bcol API',5);
3882: End if;
3883: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3884: End if;
3904: Begin
3905: g_pg_level := g_pg_level + 3;
3906:
3907: If PG_DEBUG <> 0 Then
3908: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Entering Traverse up tree API',5);
3909: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Model Line id =
3910: '||p_model_line_id,1);
3911: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Source Org id =
3912: '||p_source_org_id,1);
3905: g_pg_level := g_pg_level + 3;
3906:
3907: If PG_DEBUG <> 0 Then
3908: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Entering Traverse up tree API',5);
3909: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Model Line id =
3910: '||p_model_line_id,1);
3911: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Source Org id =
3912: '||p_source_org_id,1);
3913:
3907: If PG_DEBUG <> 0 Then
3908: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Entering Traverse up tree API',5);
3909: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Model Line id =
3910: '||p_model_line_id,1);
3911: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Source Org id =
3912: '||p_source_org_id,1);
3913:
3914: End if;
3915:
3922: and source_type <> 2 /*Exclude make rules...*/
3923: returning source_org_id,rcv_org_id bulk collect into l_rcv_org_tbl, l_org_id_tbl;
3924:
3925: If PG_DEBUG <> 0 then
3926: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_TREE_UP: Number of parents updated = '||l_org_id_tbl.count,5);
3927: end if;
3928:
3929: If l_org_id_tbl.count <> 0 Then
3930: For i in l_org_id_tbl.first..l_org_id_tbl.last
3929: If l_org_id_tbl.count <> 0 Then
3930: For i in l_org_id_tbl.first..l_org_id_tbl.last
3931: Loop
3932:
3933: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Rcv org id = '||l_rcv_org_tbl(i),1);
3934: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Org id = '||l_org_id_tbl(i),1);
3935:
3936: If l_rcv_org_tbl(i) <> l_org_id_tbl(i)
3937: and l_rcv_org_tbl(i) is not null then
3930: For i in l_org_id_tbl.first..l_org_id_tbl.last
3931: Loop
3932:
3933: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Rcv org id = '||l_rcv_org_tbl(i),1);
3934: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_UP_TREE: Org id = '||l_org_id_tbl(i),1);
3935:
3936: If l_rcv_org_tbl(i) <> l_org_id_tbl(i)
3937: and l_rcv_org_tbl(i) is not null then
3938:
3944: x_msg_count => x_msg_count,
3945: x_msg_data => x_msg_data);
3946: if x_return_status = FND_API.G_RET_STS_ERROR Then
3947: IF PG_DEBUG <> 0 Then
3948: oe_debug_pub.add(lpad(' ',g_pg_level)||
3949: 'TRAVERSE_UP_TREE: Exepected error occurred in update_oss_in_bcol API',5);
3950: End if;
3951: raise FND_API.G_EXC_ERROR;
3952: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3950: End if;
3951: raise FND_API.G_EXC_ERROR;
3952: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
3953: IF PG_DEBUG <> 0 Then
3954: oe_debug_pub.add(lpad(' ',g_pg_level)||
3955: 'TRAVERSE_UP_TREE: Un Exepected error occurred in update_oss_in_bcol API',5);
3956: End if;
3957: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3958: End if;
4003:
4004: x_return_status := FND_API.G_RET_STS_SUCCESS;
4005: l_stmt_num := 10;
4006:
4007: oe_debug_pub.add('=========================================================================',1);
4008: oe_debug_pub.add(' ',1);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4004: x_return_status := FND_API.G_RET_STS_SUCCESS;
4005: l_stmt_num := 10;
4006:
4007: oe_debug_pub.add('=========================================================================',1);
4008: oe_debug_pub.add(' ',1);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4012: oe_debug_pub.add(' ',1);
4005: l_stmt_num := 10;
4006:
4007: oe_debug_pub.add('=========================================================================',1);
4008: oe_debug_pub.add(' ',1);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4012: oe_debug_pub.add(' ',1);
4013: oe_debug_pub.add('=========================================================================',1);
4006:
4007: oe_debug_pub.add('=========================================================================',1);
4008: oe_debug_pub.add(' ',1);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4012: oe_debug_pub.add(' ',1);
4013: oe_debug_pub.add('=========================================================================',1);
4014:
4007: oe_debug_pub.add('=========================================================================',1);
4008: oe_debug_pub.add(' ',1);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4012: oe_debug_pub.add(' ',1);
4013: oe_debug_pub.add('=========================================================================',1);
4014:
4015: If PG_DEBUG <> 0 Then
4008: oe_debug_pub.add(' ',1);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4012: oe_debug_pub.add(' ',1);
4013: oe_debug_pub.add('=========================================================================',1);
4014:
4015: If PG_DEBUG <> 0 Then
4016: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Begin GET_OSS_ORGS_LIST API',5);
4009: oe_debug_pub.add(' START OPTION SPECIFIC SOURCE PROCESSING ',1);
4010: oe_debug_pub.add(' ',1);
4011: oe_debug_pub.add(' START TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4012: oe_debug_pub.add(' ',1);
4013: oe_debug_pub.add('=========================================================================',1);
4014:
4015: If PG_DEBUG <> 0 Then
4016: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Begin GET_OSS_ORGS_LIST API',5);
4017: End if;
4012: oe_debug_pub.add(' ',1);
4013: oe_debug_pub.add('=========================================================================',1);
4014:
4015: If PG_DEBUG <> 0 Then
4016: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Begin GET_OSS_ORGS_LIST API',5);
4017: End if;
4018:
4019: delete from bom_cto_oss_source_gt ;
4020: If PG_DEBUG <> 0 Then
4017: End if;
4018:
4019: delete from bom_cto_oss_source_gt ;
4020: If PG_DEBUG <> 0 Then
4021: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Number of records delete in source_gt = '
4022: ||sql%rowcount,5);
4023: end if;
4024:
4025: delete from bom_cto_oss_orgslist_gt;
4024:
4025: delete from bom_cto_oss_orgslist_gt;
4026:
4027: If PG_DEBUG <> 0 Then
4028: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Number of records delete in source_gt = '
4029: ||sql%rowcount,5);
4030: end if;
4031:
4032: g_def_assg_set := to_number(
4038: */
4039:
4040:
4041: If PG_DEBUG <> 0 then
4042: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Default Assignment set id = '
4043: ||g_def_assg_set);
4044: End if;
4045:
4046: If g_def_assg_set is null then
4044: End if;
4045:
4046: If g_def_assg_set is null then
4047: If PG_DEBUG <> 0 Then
4048: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: There is no default assignment set Specified',4);
4049: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4045:
4046: If g_def_assg_set is null then
4047: If PG_DEBUG <> 0 Then
4048: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: There is no default assignment set Specified',4);
4049: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4046: If g_def_assg_set is null then
4047: If PG_DEBUG <> 0 Then
4048: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: There is no default assignment set Specified',4);
4049: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4047: If PG_DEBUG <> 0 Then
4048: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: There is no default assignment set Specified',4);
4049: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4048: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: There is no default assignment set Specified',4);
4049: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4056: oe_debug_pub.add(' ',1);
4049: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4056: oe_debug_pub.add(' ',1);
4057: oe_debug_pub.add('=========================================================================',1);
4050: oe_debug_pub.add('=========================================================================',1);
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4056: oe_debug_pub.add(' ',1);
4057: oe_debug_pub.add('=========================================================================',1);
4058:
4051: oe_debug_pub.add(' ',1);
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4056: oe_debug_pub.add(' ',1);
4057: oe_debug_pub.add('=========================================================================',1);
4058:
4059: End if;
4052: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4056: oe_debug_pub.add(' ',1);
4057: oe_debug_pub.add('=========================================================================',1);
4058:
4059: End if;
4060: return;
4053: oe_debug_pub.add(' ',1);
4054: oe_debug_pub.add(' ',1);
4055: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4056: oe_debug_pub.add(' ',1);
4057: oe_debug_pub.add('=========================================================================',1);
4058:
4059: End if;
4060: return;
4061: end if;
4079: where exists (select 'x' from bom_cto_oss_components);
4080:
4081: If l_check_flag = 'X' then
4082: If PG_DEBUG <> 0 Then
4083: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Some OSS Setup Exists',5);
4084: End if;
4085: end if;
4086: Exception when no_data_found then
4087: If PG_DEBUG <>0 then
4084: End if;
4085: end if;
4086: Exception when no_data_found then
4087: If PG_DEBUG <>0 then
4088: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: No OSS orgs defied in the system',4);
4089: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4085: end if;
4086: Exception when no_data_found then
4087: If PG_DEBUG <>0 then
4088: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: No OSS orgs defied in the system',4);
4089: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4086: Exception when no_data_found then
4087: If PG_DEBUG <>0 then
4088: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: No OSS orgs defied in the system',4);
4089: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4087: If PG_DEBUG <>0 then
4088: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: No OSS orgs defied in the system',4);
4089: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4088: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: No OSS orgs defied in the system',4);
4089: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4096: oe_debug_pub.add(' ',1);
4089: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4096: oe_debug_pub.add(' ',1);
4097: oe_debug_pub.add('=========================================================================',1);
4090: oe_debug_pub.add('=========================================================================',1);
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4096: oe_debug_pub.add(' ',1);
4097: oe_debug_pub.add('=========================================================================',1);
4098:
4091: oe_debug_pub.add(' ',1);
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4096: oe_debug_pub.add(' ',1);
4097: oe_debug_pub.add('=========================================================================',1);
4098:
4099: End if;
4092: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4096: oe_debug_pub.add(' ',1);
4097: oe_debug_pub.add('=========================================================================',1);
4098:
4099: End if;
4100:
4093: oe_debug_pub.add(' ',1);
4094: oe_debug_pub.add(' ',1);
4095: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4096: oe_debug_pub.add(' ',1);
4097: oe_debug_pub.add('=========================================================================',1);
4098:
4099: End if;
4100:
4101: return;
4113: );
4114:
4115: If x_return_status = FND_API.G_RET_STS_ERROR Then
4116: IF PG_DEBUG <> 0 Then
4117: oe_debug_pub.add(lpad(' ',g_pg_level)||
4118: 'GET_OSS_ORGS_LIST: Exepected error occurred in get_configurations_org API',5);
4119: End if;
4120: raise FND_API.G_EXC_ERROR;
4121: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4119: End if;
4120: raise FND_API.G_EXC_ERROR;
4121: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4122: IF PG_DEBUG <> 0 Then
4123: oe_debug_pub.add(lpad(' ',g_pg_level)||
4124: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in get_configurations_org API',5);
4125: End if;
4126: raise FND_API.G_EXC_UNEXPECTED_ERROR;
4127: End if;
4140: );
4141:
4142: If x_return_status = FND_API.G_RET_STS_ERROR Then
4143: IF PG_DEBUG <> 0 Then
4144: oe_debug_pub.add(lpad(' ',g_pg_level)||
4145: 'GET_OSS_ORGS_LIST: Exepected error occurred in get_configurations_org API',5);
4146: End if;
4147: raise FND_API.G_EXC_ERROR;
4148: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4146: End if;
4147: raise FND_API.G_EXC_ERROR;
4148: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4149: IF PG_DEBUG <> 0 Then
4150: oe_debug_pub.add(lpad(' ',g_pg_level)||
4151: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in get_configurations_org API',5);
4152: End if;
4153: raise FND_API.G_EXC_UNEXPECTED_ERROR;
4154: End if;
4178: If PG_DEBUG <> 0 Then
4179: If x_oss_orgs_list.line_id.count <> 0 Then
4180: For i in x_oss_orgs_list.line_id.first..x_oss_orgs_list.line_id.last
4181: Loop
4182: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Line id = '||x_oss_orgs_list.line_id(i),5);
4183: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Org id = '||x_oss_orgs_list.org_id(i),5);
4184: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor id = '||x_oss_orgs_list.Vendor_id(i),5);
4185: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor Site = '||x_oss_orgs_list.vendor_site(i),5);
4186: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Make Flag = '||x_oss_orgs_list.make_flag(i),5);
4179: If x_oss_orgs_list.line_id.count <> 0 Then
4180: For i in x_oss_orgs_list.line_id.first..x_oss_orgs_list.line_id.last
4181: Loop
4182: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Line id = '||x_oss_orgs_list.line_id(i),5);
4183: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Org id = '||x_oss_orgs_list.org_id(i),5);
4184: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor id = '||x_oss_orgs_list.Vendor_id(i),5);
4185: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor Site = '||x_oss_orgs_list.vendor_site(i),5);
4186: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Make Flag = '||x_oss_orgs_list.make_flag(i),5);
4187: End loop;
4180: For i in x_oss_orgs_list.line_id.first..x_oss_orgs_list.line_id.last
4181: Loop
4182: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Line id = '||x_oss_orgs_list.line_id(i),5);
4183: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Org id = '||x_oss_orgs_list.org_id(i),5);
4184: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor id = '||x_oss_orgs_list.Vendor_id(i),5);
4185: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor Site = '||x_oss_orgs_list.vendor_site(i),5);
4186: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Make Flag = '||x_oss_orgs_list.make_flag(i),5);
4187: End loop;
4188: End if;
4181: Loop
4182: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Line id = '||x_oss_orgs_list.line_id(i),5);
4183: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Org id = '||x_oss_orgs_list.org_id(i),5);
4184: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor id = '||x_oss_orgs_list.Vendor_id(i),5);
4185: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor Site = '||x_oss_orgs_list.vendor_site(i),5);
4186: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Make Flag = '||x_oss_orgs_list.make_flag(i),5);
4187: End loop;
4188: End if;
4189: End if;
4182: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Line id = '||x_oss_orgs_list.line_id(i),5);
4183: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Org id = '||x_oss_orgs_list.org_id(i),5);
4184: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor id = '||x_oss_orgs_list.Vendor_id(i),5);
4185: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Vendor Site = '||x_oss_orgs_list.vendor_site(i),5);
4186: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Make Flag = '||x_oss_orgs_list.make_flag(i),5);
4187: End loop;
4188: End if;
4189: End if;
4190:
4188: End if;
4189: End if;
4190:
4191: If PG_DEBUG <> 0 Then
4192: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Number of records insert to output structure ='||sql%rowcount,4);
4193: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4194: End if;
4195:
4196:
4189: End if;
4190:
4191: If PG_DEBUG <> 0 Then
4192: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Number of records insert to output structure ='||sql%rowcount,4);
4193: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4194: End if;
4195:
4196:
4197: oe_debug_pub.add('=========================================================================',1);
4193: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_ORGS_LIST: Ending the call',4);
4194: End if;
4195:
4196:
4197: oe_debug_pub.add('=========================================================================',1);
4198: oe_debug_pub.add(' ',1);
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4194: End if;
4195:
4196:
4197: oe_debug_pub.add('=========================================================================',1);
4198: oe_debug_pub.add(' ',1);
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4195:
4196:
4197: oe_debug_pub.add('=========================================================================',1);
4198: oe_debug_pub.add(' ',1);
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4203: oe_debug_pub.add(' ',1);
4196:
4197: oe_debug_pub.add('=========================================================================',1);
4198: oe_debug_pub.add(' ',1);
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4203: oe_debug_pub.add(' ',1);
4204: oe_debug_pub.add('=========================================================================',1);
4197: oe_debug_pub.add('=========================================================================',1);
4198: oe_debug_pub.add(' ',1);
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4203: oe_debug_pub.add(' ',1);
4204: oe_debug_pub.add('=========================================================================',1);
4205:
4198: oe_debug_pub.add(' ',1);
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4203: oe_debug_pub.add(' ',1);
4204: oe_debug_pub.add('=========================================================================',1);
4205:
4206:
4199: oe_debug_pub.add(' END OPTION SPECIFIC SOURCE PROCESSING ',1);
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4203: oe_debug_pub.add(' ',1);
4204: oe_debug_pub.add('=========================================================================',1);
4205:
4206:
4207: Exception
4200: oe_debug_pub.add(' ',1);
4201: oe_debug_pub.add(' ',1);
4202: oe_debug_pub.add(' END TIME STAMP : '||to_char(sysdate,'hh:mi:ss')||' ',1);
4203: oe_debug_pub.add(' ',1);
4204: oe_debug_pub.add('=========================================================================',1);
4205:
4206:
4207: Exception
4208:
4207: Exception
4208:
4209: WHEN FND_API.G_EXC_ERROR THEN
4210: IF PG_DEBUG <> 0 THEN
4211: oe_debug_pub.add(lpad(' ',g_pg_level)||'Get_OSS_Orgs_list::exp error::'
4212: ||to_char(l_stmt_num)
4213: ||'::'||sqlerrm,1);
4214: END IF;
4215: x_return_status := FND_API.G_RET_STS_ERROR;
4218: p_msg_data => x_msg_data
4219: );
4220: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4221: IF PG_DEBUG <> 0 THEN
4222: oe_debug_pub.add(lpad(' ',g_pg_level)||'Get_OSS_Orgs_list::exp error::'
4223: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
4224: END IF;
4225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4226: cto_msg_pub.count_and_get(
4228: p_msg_data => x_msg_data
4229: );
4230: WHEN OTHERS THEN
4231: IF PG_DEBUG <> 0 THEN
4232: oe_debug_pub.add(lpad(' ',g_pg_level)||'Get_OSS_Orgs_list::exp error::'
4233: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
4234: END IF;
4235: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4236: cto_msg_pub.count_and_get(
4299: x_return_status := FND_API.G_RET_STS_SUCCESS;
4300:
4301:
4302: If PG_DEBUG <> 0 Then
4303: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG : Entering Model Process',5);
4304: End if;
4305:
4306: /* Get the all models which has new config items created and the configuration
4307: has some oss orgs defined. The cursor definition resolves all the condition.
4311: FOR oss_top_model_rec in oss_top_models
4312: LOOP
4313:
4314: If PG_DEBUG <> 0 then
4315: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: ATO Line id ='
4316: ||oss_top_model_rec.ato_line_id,5);
4317: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: Processing top model line = '
4318: ||oss_top_model_rec.ato_line_id,5);
4319: End if;
4313:
4314: If PG_DEBUG <> 0 then
4315: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: ATO Line id ='
4316: ||oss_top_model_rec.ato_line_id,5);
4317: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: Processing top model line = '
4318: ||oss_top_model_rec.ato_line_id,5);
4319: End if;
4320:
4321:
4328: x_msg_data => x_msg_data,
4329: x_msg_count => x_msg_count);
4330: If x_return_status = FND_API.G_RET_STS_ERROR Then
4331: IF PG_DEBUG <> 0 Then
4332: oe_debug_pub.add(lpad(' ',g_pg_level)||
4333: 'GET_OSS_ORGS_LIST: Exepected error occurred in update_oss_in_bcol API',5);
4334: End if;
4335: raise FND_API.G_EXC_ERROR;
4336: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4334: End if;
4335: raise FND_API.G_EXC_ERROR;
4336: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4337: IF PG_DEBUG <> 0 Then
4338: oe_debug_pub.add(lpad(' ',g_pg_level)||
4339: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in update_oss_in_bcol API',5);
4340: End if;
4341: raise FND_API.G_EXC_UNEXPECTED_ERROR;
4342: End if;
4344:
4345: If X_oss_exists = 'Y' Then
4346:
4347: If PG_DEBUG <> 0 Then
4348: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: This order line has some oss models',5);
4349: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: Start processing OSS Model bottom-up',5);
4350: End if;
4351:
4352: get_sourcing_data(
4345: If X_oss_exists = 'Y' Then
4346:
4347: If PG_DEBUG <> 0 Then
4348: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: This order line has some oss models',5);
4349: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: Start processing OSS Model bottom-up',5);
4350: End if;
4351:
4352: get_sourcing_data(
4353: p_ato_line_id => oss_top_model_rec.ato_line_id,
4357:
4358: If x_return_status = FND_API.G_RET_STS_ERROR Then
4359:
4360: IF PG_DEBUG <> 0 Then
4361: oe_debug_pub.add(lpad(' ',g_pg_level)||
4362: 'GET_OSS_ORGS_LIST: Exepected error occurred in get_sourcing_data API',5);
4363: End if;
4364: raise FND_API.G_EXC_ERROR;
4365: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4363: End if;
4364: raise FND_API.G_EXC_ERROR;
4365: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4366: IF PG_DEBUG <> 0 Then
4367: oe_debug_pub.add(lpad(' ',g_pg_level)||
4368: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in get_sourcing_data API',5);
4369: End if;
4370: raise FND_API.G_EXC_UNEXPECTED_ERROR;
4371: End if; /* x_return_status = FND_API.G_RET_STS_ERROR */
4378: x_msg_data => x_msg_data);
4379:
4380: If x_return_status = FND_API.G_RET_STS_ERROR Then
4381: IF PG_DEBUG <> 0 Then
4382: oe_debug_pub.add(lpad(' ',g_pg_level)||
4383: 'GET_CONFIGURATIONS_ORG: Exepected error occurred in update_oss_in_bcol API',5);
4384: End if;
4385: raise FND_API.G_EXC_ERROR;
4386: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4384: End if;
4385: raise FND_API.G_EXC_ERROR;
4386: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
4387: IF PG_DEBUG <> 0 Then
4388: oe_debug_pub.add(lpad(' ',g_pg_level)||
4389: 'GET_CONFIGURATIONS_ORG: Un Exepected error occurred in update_oss_in_bcol API',5);
4390: End if;
4391: raise FND_API.G_EXC_UNEXPECTED_ERROR;
4392: End if;
4393:
4394: Else
4395:
4396: IF PG_DEBUG <> 0 Then
4397: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: This order line does not have any OSS configuration',5);
4398: End if;
4399: End if;
4400:
4401: END LOOP;
4509: Exception
4510:
4511: WHEN FND_API.G_EXC_ERROR THEN
4512: IF PG_DEBUG <> 0 THEN
4513: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: get_configurations_org::exp error::'
4514: ||to_char(l_stmt_no)
4515: ||'::'||sqlerrm,1);
4516: END IF;
4517: g_pg_level := g_pg_level - 3;
4521: p_msg_data => x_msg_data
4522: );
4523: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4524: IF PG_DEBUG <> 0 THEN
4525: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: get_configurations_org::exp error::'
4526: ||to_char(l_stmt_no)||'::'||sqlerrm,1);
4527: END IF;
4528: g_pg_level := g_pg_level - 3;
4529: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4532: p_msg_data => x_msg_data
4533: );
4534: WHEN OTHERS THEN
4535: IF PG_DEBUG <> 0 THEN
4536: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_CONFIGURATIONS_ORG: get_configurations_org::exp error::'
4537: ||to_char(l_stmt_no)||'::'||sqlerrm,1);
4538: END IF;
4539: g_pg_level := g_pg_level - 3;
4540: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4565:
4566: l_stmt_num := 10;
4567:
4568: If PG_DEBUG <> 0 Then
4569: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ATO_ITEM_ORGS: Assignment set id = '||p_assignment_id);
4570: End if;
4571:
4572: /* The following sql will insert all the orgs and vendors from sourcing assignments
4573: and sourcing rules for ato item and matched configuration item
4733: and msi.option_specific_sourced = 3);
4734:
4735:
4736: If PG_DEBUG <> 0 Then
4737: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ATO_ITEM_ORGS: Number of records inserted = '||sql%rowcount);
4738: End if;
4739:
4740: g_pg_level := g_pg_level - 3;
4741:
4747: Exception
4748:
4749: WHEN FND_API.G_EXC_ERROR THEN
4750: IF PG_DEBUG <> 0 THEN
4751: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ATO_ITEM_ORGS::exp error::'
4752: ||to_char(l_stmt_num)
4753: ||'::'||sqlerrm,1);
4754: END IF;
4755: g_pg_level := g_pg_level - 3;
4759: p_msg_data => x_msg_data
4760: );
4761: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4762: IF PG_DEBUG <> 0 THEN
4763: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ATO_ITEM_ORGS::exp error::'
4764: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
4765: END IF;
4766: g_pg_level := g_pg_level - 3;
4767: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4770: p_msg_data => x_msg_data
4771: );
4772: WHEN OTHERS THEN
4773: IF PG_DEBUG <> 0 THEN
4774: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ATO_ITEM_ORGS::exp error::'
4775: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
4776: END IF;
4777: g_pg_level := g_pg_level - 3;
4778: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4834: x_return_status := FND_API.G_RET_STS_SUCCESS;
4835: g_pg_level := g_pg_level + 3;
4836:
4837: IF PG_DEBUG <> 0 Then
4838: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: In UPDATE_OSS_BCOL API',5);
4839: End if;
4840: x_oss_exists :='Y';
4841:
4842: l_stmt_num := 10;
4859: and bcol1.bom_item_type = 1
4860: returning parent_ato_line_id bulk collect into l_parent_ato_line_tbl;
4861:
4862: --Bugfix 6710393
4863: --Swaped the positions of if block with oe_debug_pub and sql%rowcount
4864: --else sql%rowcount will get rowcount of sql executed in oe_debug_pub.add api() api
4865:
4866: l_rows_updated := sql%rowcount;
4867:
4860: returning parent_ato_line_id bulk collect into l_parent_ato_line_tbl;
4861:
4862: --Bugfix 6710393
4863: --Swaped the positions of if block with oe_debug_pub and sql%rowcount
4864: --else sql%rowcount will get rowcount of sql executed in oe_debug_pub.add api() api
4865:
4866: l_rows_updated := sql%rowcount;
4867:
4868: If PG_DEBUG <> 0 Then
4865:
4866: l_rows_updated := sql%rowcount;
4867:
4868: If PG_DEBUG <> 0 Then
4869: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: Number of OSS configuratinos = '
4870: ||l_rows_updated,5);
4871: End if;
4872: If l_rows_updated = 0 then
4873: IF PG_DEBUG <> 0 Then
4870: ||l_rows_updated,5);
4871: End if;
4872: If l_rows_updated = 0 then
4873: IF PG_DEBUG <> 0 Then
4874: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: No OSS configuration exists..',5);
4875: End if;
4876: x_oss_exists := 'N';
4877: g_pg_level := g_pg_level - 3;
4878: return;
4883: by line id
4884: */
4885:
4886: IF PG_DEBUG <> 0 Then
4887: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: Caching BCOL Data',5);
4888: End if;
4889:
4890: l_stmt_num := 20;
4891:
4910: /* For the top model no need to traverse */
4911:
4912:
4913: IF PG_DEBUG <> 0 Then
4914: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: Falgging OSS for parents',5);
4915: End if;
4916:
4917: l_stmt_num := 30;
4918:
4937: where line_id = g_parent_rec.line_id(i);
4938: end if;
4939:
4940: IF PG_DEBUG <> 0 Then
4941: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: Number of parent records updated = '
4942: ||g_parent_rec.line_id.count,5);
4943: End if;
4944:
4945:
4965: /*and bcol.config_creation = '3'
4966: and bcol.ato_line_id = p_ato_line_id;
4967:
4968: IF PG_DEBUG <> 0 Then
4969: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL: Number of matched configs with attribute settting 3 ='
4970: ||sql%rowcount,5);
4971: End if;*/
4972:
4973: l_stmt_num := 60;
4979:
4980: Exception
4981: WHEN FND_API.G_EXC_ERROR THEN
4982: IF PG_DEBUG <> 0 THEN
4983: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL::exp error::'
4984: ||to_char(l_stmt_num)
4985: ||'::'||sqlerrm,1);
4986: END IF;
4987: g_pg_level := g_pg_level - 3;
4991: p_msg_data => x_msg_data
4992: );
4993: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4994: IF PG_DEBUG <> 0 THEN
4995: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL::exp error::'
4996: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
4997: END IF;
4998: g_pg_level := g_pg_level - 3;
4999: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5002: p_msg_data => x_msg_data
5003: );
5004: WHEN OTHERS THEN
5005: IF PG_DEBUG <> 0 THEN
5006: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_OSS_IN_BCOL::exp error::'
5007: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
5008: END IF;
5009: g_pg_level := g_pg_level - 3;
5010: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5053:
5054:
5055:
5056: If PG_DEBUG <> 0 Then
5057: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: Inside UPDATE_PARENT_OSS_LIEN API',5);
5058: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: Line id = '||g_bcol_tbl(p_parent_ato_line_id).line_id,5);
5059: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: oss = '||g_bcol_tbl(p_parent_ato_line_id).option_specific,5);
5060: End if;
5061:
5054:
5055:
5056: If PG_DEBUG <> 0 Then
5057: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: Inside UPDATE_PARENT_OSS_LIEN API',5);
5058: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: Line id = '||g_bcol_tbl(p_parent_ato_line_id).line_id,5);
5059: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: oss = '||g_bcol_tbl(p_parent_ato_line_id).option_specific,5);
5060: End if;
5061:
5062: l_stmt_num := 20;
5055:
5056: If PG_DEBUG <> 0 Then
5057: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: Inside UPDATE_PARENT_OSS_LIEN API',5);
5058: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: Line id = '||g_bcol_tbl(p_parent_ato_line_id).line_id,5);
5059: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: oss = '||g_bcol_tbl(p_parent_ato_line_id).option_specific,5);
5060: End if;
5061:
5062: l_stmt_num := 20;
5063: g_parent_rec.line_id.extend(g_tbl_index);
5082:
5083: l_parent_ato_line_id := g_bcol_tbl(p_parent_ato_line_id).parent_ato_line_id;
5084:
5085: If PG_DEBUG <> 0 Then
5086: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: l_parent_ato_line_id = '||l_parent_ato_line_id,5);
5087: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new line_id = '||g_bcol_tbl(l_parent_ato_line_id).line_id,5);
5088: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: ato_line_id = '||g_bcol_tbl(l_parent_ato_line_id).ato_line_id,5);
5089: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new oss = '||g_bcol_tbl(l_parent_ato_line_id).option_specific,5);
5090: END IF;
5083: l_parent_ato_line_id := g_bcol_tbl(p_parent_ato_line_id).parent_ato_line_id;
5084:
5085: If PG_DEBUG <> 0 Then
5086: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: l_parent_ato_line_id = '||l_parent_ato_line_id,5);
5087: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new line_id = '||g_bcol_tbl(l_parent_ato_line_id).line_id,5);
5088: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: ato_line_id = '||g_bcol_tbl(l_parent_ato_line_id).ato_line_id,5);
5089: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new oss = '||g_bcol_tbl(l_parent_ato_line_id).option_specific,5);
5090: END IF;
5091:
5084:
5085: If PG_DEBUG <> 0 Then
5086: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: l_parent_ato_line_id = '||l_parent_ato_line_id,5);
5087: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new line_id = '||g_bcol_tbl(l_parent_ato_line_id).line_id,5);
5088: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: ato_line_id = '||g_bcol_tbl(l_parent_ato_line_id).ato_line_id,5);
5089: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new oss = '||g_bcol_tbl(l_parent_ato_line_id).option_specific,5);
5090: END IF;
5091:
5092: /* If the parent of the current node is already processed by some other tree,
5085: If PG_DEBUG <> 0 Then
5086: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: l_parent_ato_line_id = '||l_parent_ato_line_id,5);
5087: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new line_id = '||g_bcol_tbl(l_parent_ato_line_id).line_id,5);
5088: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: ato_line_id = '||g_bcol_tbl(l_parent_ato_line_id).ato_line_id,5);
5089: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE: new oss = '||g_bcol_tbl(l_parent_ato_line_id).option_specific,5);
5090: END IF;
5091:
5092: /* If the parent of the current node is already processed by some other tree,
5093: then we need not traverse the tree up. Also, if the current one is the top most
5135:
5136: Exception
5137: WHEN FND_API.G_EXC_ERROR THEN
5138: IF PG_DEBUG <> 0 THEN
5139: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE::exp error::'
5140: ||to_char(l_stmt_num)
5141: ||'::'||sqlerrm,1);
5142: END IF;
5143: g_pg_level := g_pg_level - 3;
5147: p_msg_data => x_msg_data
5148: );
5149: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5150: IF PG_DEBUG <> 0 THEN
5151: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE::exp error::'
5152: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
5153: END IF;
5154: g_pg_level := g_pg_level - 3;
5155: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5158: p_msg_data => x_msg_data
5159: );
5160: WHEN OTHERS THEN
5161: IF PG_DEBUG <> 0 THEN
5162: oe_debug_pub.add(lpad(' ',g_pg_level)||'UPDATE_PARENT_OSS_LINE::exp error::'
5163: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
5164: END IF;
5165: g_pg_level := g_pg_level - 3;
5166: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5184: x_return_status := FND_API.G_RET_STS_SUCCESS;
5185: l_stmt_num := 10;
5186:
5187: IF PG_DEBUG <> 0 Then
5188: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Inside GET_SOURCING_DATA API',5);
5189: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Assignment set id ='||g_def_assg_set,5);
5190: End if;
5191:
5192: Insert into bom_cto_oss_source_gt
5185: l_stmt_num := 10;
5186:
5187: IF PG_DEBUG <> 0 Then
5188: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Inside GET_SOURCING_DATA API',5);
5189: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Assignment set id ='||g_def_assg_set,5);
5190: End if;
5191:
5192: Insert into bom_cto_oss_source_gt
5193: (
5251: and src.vendor_site_id = vend.vendor_site_id(+);
5252:
5253:
5254: If PG_DEBUG <> 0 Then
5255: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Number of records inserted in 1st sql ='||sql%rowcount,5);
5256: -- 13362916
5257: Print_source_gt;
5258: End if;
5259: Insert into bom_cto_oss_source_gt
5319: and nvl(rcv.disable_date,sysdate+1)>sysdate
5320: and rcv.SR_RECEIPT_ID = src.sr_receipt_id
5321: and src.vendor_site_id = vend.vendor_site_id(+);
5322: If PG_DEBUG <> 0 Then
5323: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Number of records inserted in 2nd sql ='||sql%rowcount,5);
5324: -- Bug 13362916
5325: Print_source_gt;
5326: End if;
5327:
5384: and rcv.SR_RECEIPT_ID = src.sr_receipt_id
5385: and src.vendor_site_id = vend.vendor_site_id(+);
5386:
5387: If PG_DEBUG <> 0 Then
5388: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_SOURCING_DATA: Number of assignment records inserted = '
5389: ||sql%rowcount,5);
5390: End if;
5391:
5392: elsif p_config_creation in ('1','2') then
5514: l_stmt_num := 10;
5515: g_pg_level := g_pg_level + 3;
5516:
5517: If PG_DEBUG <> 0 Then
5518: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Inside PROCESS_ORDER_FOR_OSS API',5);
5519: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_ato_line_id:' || P_ato_line_id,5);
5520: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_calling_mode:'|| P_calling_mode,5);
5521: End if;
5522: -- bug 13324638
5515: g_pg_level := g_pg_level + 3;
5516:
5517: If PG_DEBUG <> 0 Then
5518: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Inside PROCESS_ORDER_FOR_OSS API',5);
5519: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_ato_line_id:' || P_ato_line_id,5);
5520: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_calling_mode:'|| P_calling_mode,5);
5521: End if;
5522: -- bug 13324638
5523: If PG_DEBUG <> 0 Then
5516:
5517: If PG_DEBUG <> 0 Then
5518: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Inside PROCESS_ORDER_FOR_OSS API',5);
5519: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_ato_line_id:' || P_ato_line_id,5);
5520: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_calling_mode:'|| P_calling_mode,5);
5521: End if;
5522: -- bug 13324638
5523: If PG_DEBUG <> 0 Then
5524: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5520: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: P_calling_mode:'|| P_calling_mode,5);
5521: End if;
5522: -- bug 13324638
5523: If PG_DEBUG <> 0 Then
5524: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5525: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Printing bom_cto_order_lines_gt data ' || P_ato_line_id,5);
5526: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5527: oe_debug_pub.add(lpad(' ',g_pg_level)||'ATO_LINE_ID, CONFIG_ITEM_ID, INVENTORY_ITEM_ID, LINE_ID, LINK_TO_LINE_ID, '||
5528: 'PARENT_ATO_LINE_ID, PERFORM_MATCH, PLAN_LEVEL, SHIP_FROM_ORG_ID, TOP_MODEL_LINE_ID, '||
5521: End if;
5522: -- bug 13324638
5523: If PG_DEBUG <> 0 Then
5524: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5525: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Printing bom_cto_order_lines_gt data ' || P_ato_line_id,5);
5526: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5527: oe_debug_pub.add(lpad(' ',g_pg_level)||'ATO_LINE_ID, CONFIG_ITEM_ID, INVENTORY_ITEM_ID, LINE_ID, LINK_TO_LINE_ID, '||
5528: 'PARENT_ATO_LINE_ID, PERFORM_MATCH, PLAN_LEVEL, SHIP_FROM_ORG_ID, TOP_MODEL_LINE_ID, '||
5529: 'HEADER_ID, OPTION_SPECIFIC, REUSE_CONFIG, VALIDATION_ORG',5);
5522: -- bug 13324638
5523: If PG_DEBUG <> 0 Then
5524: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5525: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Printing bom_cto_order_lines_gt data ' || P_ato_line_id,5);
5526: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5527: oe_debug_pub.add(lpad(' ',g_pg_level)||'ATO_LINE_ID, CONFIG_ITEM_ID, INVENTORY_ITEM_ID, LINE_ID, LINK_TO_LINE_ID, '||
5528: 'PARENT_ATO_LINE_ID, PERFORM_MATCH, PLAN_LEVEL, SHIP_FROM_ORG_ID, TOP_MODEL_LINE_ID, '||
5529: 'HEADER_ID, OPTION_SPECIFIC, REUSE_CONFIG, VALIDATION_ORG',5);
5530:
5523: If PG_DEBUG <> 0 Then
5524: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5525: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Printing bom_cto_order_lines_gt data ' || P_ato_line_id,5);
5526: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5527: oe_debug_pub.add(lpad(' ',g_pg_level)||'ATO_LINE_ID, CONFIG_ITEM_ID, INVENTORY_ITEM_ID, LINE_ID, LINK_TO_LINE_ID, '||
5528: 'PARENT_ATO_LINE_ID, PERFORM_MATCH, PLAN_LEVEL, SHIP_FROM_ORG_ID, TOP_MODEL_LINE_ID, '||
5529: 'HEADER_ID, OPTION_SPECIFIC, REUSE_CONFIG, VALIDATION_ORG',5);
5530:
5531: FOR bcolgtcur in bcolgt_debug_cur LOOP
5528: 'PARENT_ATO_LINE_ID, PERFORM_MATCH, PLAN_LEVEL, SHIP_FROM_ORG_ID, TOP_MODEL_LINE_ID, '||
5529: 'HEADER_ID, OPTION_SPECIFIC, REUSE_CONFIG, VALIDATION_ORG',5);
5530:
5531: FOR bcolgtcur in bcolgt_debug_cur LOOP
5532: oe_debug_pub.add(lpad(' ',g_pg_level)||bcolgtcur.ATO_LINE_ID||','||
5533: bcolgtcur.CONFIG_ITEM_ID||','||
5534: bcolgtcur.INVENTORY_ITEM_ID||','||
5535: bcolgtcur.LINE_ID||','||
5536: bcolgtcur.LINK_TO_LINE_ID||','||
5543: bcolgtcur.OPTION_SPECIFIC||','||
5544: bcolgtcur.REUSE_CONFIG||','||
5545: bcolgtcur.VALIDATION_ORG,5);
5546: END LOOP;
5547: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: =======================================================',5);
5548: End if;
5549:
5550: l_stmt_num := 20;
5551:
5556: For oss_model_rec in oss_models
5557: Loop
5558:
5559: If PG_DEBUG <> 0 Then
5560: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Inside PROCESS_ORDER_FOR_OSS API....',5);
5561: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: OSS process for line id = '
5562: ||oss_model_rec.line_id,5);
5563: End if;
5564:
5557: Loop
5558:
5559: If PG_DEBUG <> 0 Then
5560: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Inside PROCESS_ORDER_FOR_OSS API....',5);
5561: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: OSS process for line id = '
5562: ||oss_model_rec.line_id,5);
5563: End if;
5564:
5565:
5573:
5574: if oss_model_rec.option_specific in ('1','2') then
5575:
5576: IF PG_DEBUG <> 0 Then
5577: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Calling Prune OSS Config..',5);
5578: End if;
5579:
5580: l_stmt_num := 70;
5581: prune_oss_config(
5591: );
5592:
5593: If x_return_status = FND_API.G_RET_STS_ERROR Then
5594: IF PG_DEBUG <> 0 Then
5595: oe_debug_pub.add(lpad(' ',g_pg_level)||
5596: 'GET_OSS_ORGS_LIST: Exepected error occurred in prune_oss_config API',5);
5597: End if;
5598: raise FND_API.G_EXC_ERROR;
5599:
5599:
5600: Elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
5601:
5602: IF PG_DEBUG <> 0 Then
5603: oe_debug_pub.add(lpad(' ',g_pg_level)||
5604: 'GET_OSS_ORGS_LIST: Un Exepected error occurred in prune_oss_config API',5);
5605: End if;
5606: raise FND_API.G_EXC_UNEXPECTED_ERROR;
5607:
5616: set oss_error_code = x_exp_error_code
5617: where line_id = oss_model_rec.line_id;
5618:
5619: If PG_DEBUG <> 0 Then
5620: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Setting current model error code tp 350',5);
5621: End if;
5622:
5623: If oss_model_rec.line_id <> oss_model_rec.ato_line_id then
5624:
5630: where line_id = oss_model_rec.ato_line_id;
5631: exit;
5632:
5633: If PG_DEBUG <> 0 Then
5634: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: setting parent model error code to 360',5);
5635: End if;
5636: End if; /* oss_model_rec.line_id <> oss_model_rec.ato_line_id */
5637:
5638: End if; /* x_exp_error_code <> 0 */
5637:
5638: End if; /* x_exp_error_code <> 0 */
5639:
5640: If PG_DEBUG <> 0 Then
5641: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: After prune oss config.',5);
5642: End if;
5643:
5644: End if; /* oss_model_rec.option_specific in ('1','2') */
5645:
5643:
5644: End if; /* oss_model_rec.option_specific in ('1','2') */
5645:
5646: If PG_DEBUG <> 0 Then
5647: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Option Specific = '
5648: ||oss_model_rec.option_specific,5);
5649: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Exp Error Code = '
5650: || x_exp_error_code,5);
5651: End if;
5645:
5646: If PG_DEBUG <> 0 Then
5647: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Option Specific = '
5648: ||oss_model_rec.option_specific,5);
5649: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Exp Error Code = '
5650: || x_exp_error_code,5);
5651: End if;
5652:
5653: l_stmt_num := 100;
5654:
5655: If oss_model_rec.option_specific in ('2','3') and nvl(x_exp_error_code,0) = 0 then
5656:
5657: If PG_DEBUG <> 0 Then
5658: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Before Prune Parent oss config API',5);
5659: End if;
5660: l_stmt_num := 110;
5661:
5662: Prune_parent_oss_config(
5671: );
5672:
5673: If x_return_status = FND_API.G_RET_STS_ERROR Then
5674: IF PG_DEBUG <> 0 Then
5675: oe_debug_pub.add(lpad(' ',g_pg_level)||
5676: 'PROCESS_ORDER_FOR_OSS: Exepected error occurred in prune_parent_oss_config API',5);
5677: End if;
5678: raise FND_API.G_EXC_ERROR;
5679: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
5677: End if;
5678: raise FND_API.G_EXC_ERROR;
5679: elsif x_return_status = FND_API.G_RET_STS_UNEXP_ERROR Then
5680: IF PG_DEBUG <> 0 Then
5681: oe_debug_pub.add(lpad(' ',g_pg_level)||
5682: 'PROCESS_ORDER_FOR_OSS: Un Exepected error occurred in prune_parent_oss_config API',5);
5683: End if;
5684: raise FND_API.G_EXC_UNEXPECTED_ERROR;
5685: End if; /* x_return_status = FND_API.G_RET_STS_ERROR */
5691: set oss_error_code = x_exp_error_code
5692: where line_id = oss_model_rec.line_id;
5693:
5694: If PG_DEBUG <> 0 Then
5695: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: Setting current model error code tp 350',5);
5696: End if;
5697:
5698: If oss_model_rec.line_id <> oss_model_rec.ato_line_id then
5699: l_stmt_num := 130;
5701: bom_cto_order_lines_gt bcol
5702: set oss_error_code = 360
5703: where line_id = oss_model_rec.ato_line_id;
5704: If PG_DEBUG <> 0 Then
5705: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS: setting parent model error code to 360',5);
5706: End if;
5707: end if; /*oss_model_rec.line_id <> oss_model_rec.ato_line_id*/
5708: End if; /* x_exp_error_code */
5709:
5716:
5717: Exception
5718: WHEN FND_API.G_EXC_ERROR THEN
5719: IF PG_DEBUG <> 0 THEN
5720: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS::exp error::'
5721: ||to_char(l_stmt_num)
5722: ||'::'||sqlerrm,1);
5723: END IF;
5724: g_pg_level := g_pg_level - 3;
5728: p_msg_data => x_msg_data
5729: );
5730: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5731: IF PG_DEBUG <> 0 THEN
5732: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS::exp error::'
5733: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
5734: END IF;
5735: g_pg_level := g_pg_level - 3;
5736: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5739: p_msg_data => x_msg_data
5740: );
5741: WHEN OTHERS THEN
5742: IF PG_DEBUG <> 0 THEN
5743: oe_debug_pub.add(lpad(' ',g_pg_level)||'PROCESS_ORDER_FOR_OSS::exp error::'
5744: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
5745: END IF;
5746: g_pg_level := g_pg_level - 3;
5747: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5764: x_return_status := FND_API.G_RET_STS_SUCCESS;
5765: l_stmt_num := 10;
5766:
5767: If pg_debug <> 0 Then
5768: oe_debug_pub.add(lpad(' ',g_pg_level)||'COPY_TO_BCOL_TEMP: Inside Copy to Bcol Temp API',5);
5769: end if;
5770:
5771: delete /*+ INDEX (bcol BOM_CTO_ORDER_LINES_GT_N1) */
5772: from bom_cto_order_lines_gt bcol
5830: where ato_line_id = p_ato_line_id;
5831:
5832:
5833: If PG_DEBUG <> 0 Then
5834: oe_debug_pub.add(lpad(' ',g_pg_level)||'COPY_TO_BCOL_TEMP: Number of lines inserted in to temp '
5835: || sql%rowcount,5);
5836: End if;
5837: g_pg_level := g_pg_level - 3;
5838: End COPY_TO_BCOL_TEMP;
5882: delete /*+ INDEX (oss_src BOM_CTO_OSS_SOURCE_GT_N1) */
5883: from bom_cto_oss_source_gt oss_src where ato_line_id = p_ato_line_id;
5884:
5885: If PG_DEBUG <> 0 Then
5886: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: Inside GET_ORDER_SOURCING_DATA API',5);
5887: End if;
5888:
5889: Insert
5890: into bom_cto_oss_orgslist_gt(
5903:
5904: For model_lines_rec in model_lines_cur
5905: Loop
5906: If PG_DEBUG <> 0 Then
5907: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: Processing model line = '||model_lines_rec.line_id,5);
5908: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: Processing model Item = '||model_lines_rec.inventory_item_id,5);
5909: End if;
5910:
5911: l_stmt_num := 30;
5904: For model_lines_rec in model_lines_cur
5905: Loop
5906: If PG_DEBUG <> 0 Then
5907: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: Processing model line = '||model_lines_rec.line_id,5);
5908: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: Processing model Item = '||model_lines_rec.inventory_item_id,5);
5909: End if;
5910:
5911: l_stmt_num := 30;
5912:
5918: g_assg_list.delete;
5919: For mfg_orgs_rec in mfg_orgs_cur(l_parent_line_id)
5920: Loop
5921: If PG_DEBUG <> 0 Then
5922: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: get sourcing chain from org = '||mfg_orgs_rec.organization_id,5);
5923: End if;
5924: l_stmt_num := 40;
5925: Traverse_sourcing_chain(
5926: p_item_id => model_lines_rec.inventory_item_id,
5935: End loop;
5936: End Loop;
5937:
5938: If PG_DEBUG <> 0 Then
5939: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCNIG_DATA: after the loop on crsr model_lines_cur',5);
5940: End if;
5941:
5942: l_stmt_num := 41;
5943: if x_assg_list.assignment_id.count <> 0 Then
5941:
5942: l_stmt_num := 41;
5943: if x_assg_list.assignment_id.count <> 0 Then
5944: if PG_DEBUG <> 0 Then
5945: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA: Before inserting the assignments into temp table',5);
5946: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA: Assignment count = '||x_assg_list.assignment_id.count,1);
5947: end if;
5948:
5949: l_stmt_num := 50;
5942: l_stmt_num := 41;
5943: if x_assg_list.assignment_id.count <> 0 Then
5944: if PG_DEBUG <> 0 Then
5945: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA: Before inserting the assignments into temp table',5);
5946: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA: Assignment count = '||x_assg_list.assignment_id.count,1);
5947: end if;
5948:
5949: l_stmt_num := 50;
5950: FORALL i in x_assg_list.assignment_id.first..x_assg_list.assignment_id.last
6008:
6009:
6010:
6011: IF PG_DEBUG <> 0 Then
6012: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA: Before inserting Model attribute 3 lines',5);
6013: End if;
6014:
6015: l_stmt_num := 60;
6016: Insert into bom_cto_oss_source_gt
6076:
6077: -- Bugfix 8894392
6078: lCnt := sql%rowcount;
6079: IF PG_DEBUG <> 0 THEN
6080: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA: No. of rows inserted for CIB 3 model:'||lCnt,5);
6081: END IF;
6082: -- Bugfix 8894392
6083:
6084:
6165:
6166: Exception
6167: WHEN FND_API.G_EXC_ERROR THEN
6168: IF PG_DEBUG <> 0 THEN
6169: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA::exp error::'
6170: ||to_char(l_stmt_num)
6171: ||'::'||sqlerrm,1);
6172: END IF;
6173: g_pg_level := g_pg_level - 3;
6177: p_msg_data => x_msg_data
6178: );
6179: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6180: IF PG_DEBUG <> 0 THEN
6181: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA::exp error::'
6182: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
6183: END IF;
6184: g_pg_level := g_pg_level - 3;
6185: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6188: p_msg_data => x_msg_data
6189: );
6190: WHEN OTHERS THEN
6191: IF PG_DEBUG <> 0 THEN
6192: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA::exp error::'
6193: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
6194: END IF;
6195: g_pg_level := g_pg_level - 3;
6196: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6242: g_pg_level := g_pg_level + 3;
6243: x_return_status := FND_API.G_RET_STS_SUCCESS;
6244:
6245: IF PG_DEBUG <> 0 Then
6246: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Inside Traverse_Souricng_Chain API',5);
6247: End if;
6248:
6249: --
6250: -- Added By Renga Kannan on 11/21/03
6252: --
6253:
6254: If G_source_org_stk.exists(p_org_id) then
6255: if PG_DEBUG <> 0 then
6256: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Circular sourcing deducted..',5);
6257: end if;
6258: cto_msg_pub.cto_message('BOM','CTO_INVALID_SOURCING');
6259: raise FND_API.G_EXC_ERROR;
6260: Else
6270: l_stmt_num := 20;
6271: For src_rec in src_cur
6272: Loop
6273: If PG_DEBUG <> 0 Then
6274: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment Type = '||src_rec.assignment_type,1);
6275: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment id = '||src_rec.assignment_id,1);
6276: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Source org id = '||src_rec.source_organization_id,1);
6277: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Rcv org id = '||src_rec.organization_id,1);
6278: End if;
6271: For src_rec in src_cur
6272: Loop
6273: If PG_DEBUG <> 0 Then
6274: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment Type = '||src_rec.assignment_type,1);
6275: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment id = '||src_rec.assignment_id,1);
6276: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Source org id = '||src_rec.source_organization_id,1);
6277: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Rcv org id = '||src_rec.organization_id,1);
6278: End if;
6279: l_stmt_num := 30;
6272: Loop
6273: If PG_DEBUG <> 0 Then
6274: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment Type = '||src_rec.assignment_type,1);
6275: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment id = '||src_rec.assignment_id,1);
6276: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Source org id = '||src_rec.source_organization_id,1);
6277: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Rcv org id = '||src_rec.organization_id,1);
6278: End if;
6279: l_stmt_num := 30;
6280: If src_rec.assignment_type in (3,6) Then
6273: If PG_DEBUG <> 0 Then
6274: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment Type = '||src_rec.assignment_type,1);
6275: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assignment id = '||src_rec.assignment_id,1);
6276: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Source org id = '||src_rec.source_organization_id,1);
6277: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Rcv org id = '||src_rec.organization_id,1);
6278: End if;
6279: l_stmt_num := 30;
6280: If src_rec.assignment_type in (3,6) Then
6281: If not g_assg_list.exists(src_rec.assignment_id) and p_option_specific is not null Then
6279: l_stmt_num := 30;
6280: If src_rec.assignment_type in (3,6) Then
6281: If not g_assg_list.exists(src_rec.assignment_id) and p_option_specific is not null Then
6282:
6283: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Registering the assignment id ',1);
6284: l_stmt_num := 40;
6285: x_assg_list.assignment_id.extend(x_assg_list.assignment_id.count+1);
6286: x_assg_list.assignment_id(x_assg_list.assignment_id.last) := src_rec.assignment_id;
6287: x_assg_list.line_id.extend(x_assg_list.line_id.count+1);
6286: x_assg_list.assignment_id(x_assg_list.assignment_id.last) := src_rec.assignment_id;
6287: x_assg_list.line_id.extend(x_assg_list.line_id.count+1);
6288: x_assg_list.line_id(x_assg_list.line_id.last) := p_line_id;
6289: g_assg_list(src_rec.assignment_id) := src_rec.assignment_id;
6290: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Line id = '||x_assg_list.line_id(x_assg_list.line_id.last),1);
6291: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assg id = '||x_assg_list.assignment_id(x_assg_list.assignment_id.last),1);
6292: End if;
6293: l_assg_id := src_rec.assignment_id;
6294: If src_rec.source_type in (2,3) Then
6287: x_assg_list.line_id.extend(x_assg_list.line_id.count+1);
6288: x_assg_list.line_id(x_assg_list.line_id.last) := p_line_id;
6289: g_assg_list(src_rec.assignment_id) := src_rec.assignment_id;
6290: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Line id = '||x_assg_list.line_id(x_assg_list.line_id.last),1);
6291: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: Assg id = '||x_assg_list.assignment_id(x_assg_list.assignment_id.last),1);
6292: End if;
6293: l_assg_id := src_rec.assignment_id;
6294: If src_rec.source_type in (2,3) Then
6295: l_stmt_num := 50;
6292: End if;
6293: l_assg_id := src_rec.assignment_id;
6294: If src_rec.source_type in (2,3) Then
6295: l_stmt_num := 50;
6296: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: End org = '||src_rec.organization_id,1);
6297: insert into bom_cto_oss_orgslist_gt(
6298: line_id,
6299: organization_id,
6300: ato_line_id
6306: );
6307:
6308: Else
6309: If PG_DEBUG <> 0 Then
6310: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOOURCING_CHAIN: Before calling traverse sourcing chain recurrsive',5);
6311: End if;
6312: l_stmt_num := 60;
6313: Traverse_sourcing_chain(
6314: p_item_id => p_item_id,
6326: End if; /* src_rec.assignment_type in (3,6) */
6327: End Loop;
6328: If l_assg_id =0 Then
6329: If PG_DEBUG <> 0 Then
6330: oe_debug_pub.add(lpad(' ',g_pg_level)||'TRAVERSE_SOURCING_CHAIN: End of source chain',5);
6331: End if;
6332:
6333: insert into bom_cto_oss_orgslist_gt(
6334: line_id,
6390: x_return_status := FND_API.G_RET_STS_SUCCESS;
6391: i := 1;
6392:
6393: If PG_DEBUG <> 0 Then
6394: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Inside Query OSS Sourcing Org API',5);
6395: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_line_id = '||p_line_id,5);
6396: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_org_id = '||p_organization_id,5);
6397: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_inventory_item_id = '||p_inventory_item_id,5);
6398: End if;
6391: i := 1;
6392:
6393: If PG_DEBUG <> 0 Then
6394: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Inside Query OSS Sourcing Org API',5);
6395: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_line_id = '||p_line_id,5);
6396: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_org_id = '||p_organization_id,5);
6397: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_inventory_item_id = '||p_inventory_item_id,5);
6398: End if;
6399:
6392:
6393: If PG_DEBUG <> 0 Then
6394: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Inside Query OSS Sourcing Org API',5);
6395: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_line_id = '||p_line_id,5);
6396: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_org_id = '||p_organization_id,5);
6397: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_inventory_item_id = '||p_inventory_item_id,5);
6398: End if;
6399:
6400: For Source_org_rule_rec in Source_org_rule_cur
6393: If PG_DEBUG <> 0 Then
6394: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Inside Query OSS Sourcing Org API',5);
6395: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_line_id = '||p_line_id,5);
6396: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_org_id = '||p_organization_id,5);
6397: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: p_inventory_item_id = '||p_inventory_item_id,5);
6398: End if;
6399:
6400: For Source_org_rule_rec in Source_org_rule_cur
6401: Loop
6403: x_t_sourcing_info.source_organization_id(i) := Source_org_rule_rec.source_org_id;
6404: x_t_sourcing_info.source_type(i) := Source_org_rule_rec.source_type;
6405:
6406: If PG_DEBUG <> 0 Then
6407: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6408: ||x_t_sourcing_info.source_organization_id(i),5);
6409: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6410: ||x_t_sourcing_info.source_type(i),5);
6411:
6405:
6406: If PG_DEBUG <> 0 Then
6407: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6408: ||x_t_sourcing_info.source_organization_id(i),5);
6409: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6410: ||x_t_sourcing_info.source_type(i),5);
6411:
6412: End if;
6413: i := i +1 ;
6416: elsif source_org_rule_rec.source_type in (1,2) then
6417: x_t_sourcing_info.source_organization_id(i) := Source_org_rule_rec.source_org_id;
6418: x_t_sourcing_info.source_type(i) := Source_org_rule_rec.source_type;
6419: If PG_DEBUG <> 0 Then
6420: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6421: ||x_t_sourcing_info.source_organization_id(i),5);
6422: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6423: ||x_t_sourcing_info.source_type(i),5);
6424:
6418: x_t_sourcing_info.source_type(i) := Source_org_rule_rec.source_type;
6419: If PG_DEBUG <> 0 Then
6420: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6421: ||x_t_sourcing_info.source_organization_id(i),5);
6422: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6423: ||x_t_sourcing_info.source_type(i),5);
6424:
6425: End if;
6426:
6428: End if;
6429: End Loop;
6430:
6431: If PG_DEBUG <> 0 Then
6432: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Number of orgs based on orgs rule ='
6433: ||x_t_sourcing_info.source_organization_id.count,5);
6434: End if;
6435:
6436: If x_t_sourcing_info.source_organization_id.count = 0 Then
6440: If Source_item_rule_rec.source_type = 3 and l_buy_type = 'N' Then
6441: x_t_sourcing_info.source_organization_id(i) := Source_item_rule_rec.source_org_id;
6442: x_t_sourcing_info.source_type(i) := Source_item_rule_rec.source_type;
6443: If PG_DEBUG <> 0 Then
6444: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6445: ||x_t_sourcing_info.source_organization_id(i),5);
6446: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6447: ||x_t_sourcing_info.source_type(i),5);
6448:
6442: x_t_sourcing_info.source_type(i) := Source_item_rule_rec.source_type;
6443: If PG_DEBUG <> 0 Then
6444: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6445: ||x_t_sourcing_info.source_organization_id(i),5);
6446: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6447: ||x_t_sourcing_info.source_type(i),5);
6448:
6449: End if;
6450:
6453: elsif Source_item_rule_rec.source_type in (1,2) then
6454: x_t_sourcing_info.source_organization_id(i) := Source_item_rule_rec.source_org_id;
6455: x_t_sourcing_info.source_type(i) := Source_item_rule_rec.source_type;
6456: If PG_DEBUG <> 0 Then
6457: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6458: ||x_t_sourcing_info.source_organization_id(i),5);
6459: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6460: ||x_t_sourcing_info.source_type(i),5);
6461:
6455: x_t_sourcing_info.source_type(i) := Source_item_rule_rec.source_type;
6456: If PG_DEBUG <> 0 Then
6457: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing org = '
6458: ||x_t_sourcing_info.source_organization_id(i),5);
6459: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: sourcing Type = '
6460: ||x_t_sourcing_info.source_type(i),5);
6461:
6462: End if;
6463:
6465: End if;
6466: End Loop;
6467:
6468: If PG_DEBUG <> 0 Then
6469: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Number of orgs based on item rule ='
6470: ||x_t_sourcing_info.source_organization_id.count,5);
6471: End if;
6472:
6473:
6480: from mtl_system_items
6481: where inventory_item_id = p_inventory_item_id
6482: and organization_id = p_organization_id;
6483: If PG_DEBUG <> 0 Then
6484: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: No sourcing rule exists',5);
6485: End if;
6486: else
6487: If PG_DEBUG <> 0 Then
6488: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Number of sourcin orgs = '
6484: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: No sourcing rule exists',5);
6485: End if;
6486: else
6487: If PG_DEBUG <> 0 Then
6488: oe_debug_pub.add(lpad(' ',g_pg_level)||'QUERY_OSS_SOURCING_ORG: Number of sourcin orgs = '
6489: ||x_t_sourcing_info.source_organization_id.count,5);
6490: end if;
6491: x_sourcing_rule_exists := 'Y';
6492: End if;
6494: g_pg_level := g_pg_level - 3;
6495: Exception
6496: WHEN FND_API.G_EXC_ERROR THEN
6497: IF PG_DEBUG <> 0 THEN
6498: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA::exp error::'
6499: ||to_char(l_stmt_num)
6500: ||'::'||sqlerrm,1);
6501: END IF;
6502: g_pg_level := g_pg_level - 3;
6506: p_msg_data => x_msg_data
6507: );
6508: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6509: IF PG_DEBUG <> 0 THEN
6510: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA::exp error::'
6511: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
6512: END IF;
6513: g_pg_level := g_pg_level - 3;
6514: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6517: p_msg_data => x_msg_data
6518: );
6519: WHEN OTHERS THEN
6520: IF PG_DEBUG <> 0 THEN
6521: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_ORDER_SOURCING_DATA::exp error::'
6522: ||to_char(l_stmt_num)||'::'||sqlerrm,1);
6523: END IF;
6524: g_pg_level := g_pg_level - 3;
6525: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6548: g_pg_level := nvl(g_pg_level,0) + 3;
6549: x_return_status := FND_API.G_RET_STS_SUCCESS;
6550: l_stmt_num := 10;
6551:
6552: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_BOM_ORGS: Begin ',1);
6553:
6554: Select org_id
6555: bulk collect into x_orgs_list
6556: from
6572: from bom_cto_oss_source_gt oss_src
6573: where line_id = p_line_id
6574: and valid_flag in( 'P','Y')));
6575: If PG_DEBUG <> 0 Then
6576: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_BOM_ORGS: Number of orgs where bom should be created = '
6577: ||x_orgs_list.count,5);
6578: End if;
6579:
6580: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_BOM_ORGS: End ',1);
6576: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_BOM_ORGS: Number of orgs where bom should be created = '
6577: ||x_orgs_list.count,5);
6578: End if;
6579:
6580: oe_debug_pub.add(lpad(' ',g_pg_level)||'GET_OSS_BOM_ORGS: End ',1);
6581:
6582: End GET_OSS_BOM_ORGS;
6583:
6584:
6603: from bom_cto_oss_source_gt oss_src;
6604: --where line_id = p_line_id;
6605:
6606: Begin
6607: oe_debug_pub.add('================PRINTING BOM_CTO_OSS_SOURCE_GT==================',5);
6608: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6609: oe_debug_pub.add('Line_id --- Item id --- Rcv org --- src org --- customer --- vendor --- vend site --- rank --- alloc% --- src type --- reuse -- valid --- leaf --- sr_receipt_id --- ',5);
6610: for source_rec in source_cur
6611: loop
6604: --where line_id = p_line_id;
6605:
6606: Begin
6607: oe_debug_pub.add('================PRINTING BOM_CTO_OSS_SOURCE_GT==================',5);
6608: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6609: oe_debug_pub.add('Line_id --- Item id --- Rcv org --- src org --- customer --- vendor --- vend site --- rank --- alloc% --- src type --- reuse -- valid --- leaf --- sr_receipt_id --- ',5);
6610: for source_rec in source_cur
6611: loop
6612: oe_debug_pub.add(source_rec.line_id|| ' --- '
6605:
6606: Begin
6607: oe_debug_pub.add('================PRINTING BOM_CTO_OSS_SOURCE_GT==================',5);
6608: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6609: oe_debug_pub.add('Line_id --- Item id --- Rcv org --- src org --- customer --- vendor --- vend site --- rank --- alloc% --- src type --- reuse -- valid --- leaf --- sr_receipt_id --- ',5);
6610: for source_rec in source_cur
6611: loop
6612: oe_debug_pub.add(source_rec.line_id|| ' --- '
6613: ||source_rec.inventory_item_id||' --- '
6608: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6609: oe_debug_pub.add('Line_id --- Item id --- Rcv org --- src org --- customer --- vendor --- vend site --- rank --- alloc% --- src type --- reuse -- valid --- leaf --- sr_receipt_id --- ',5);
6610: for source_rec in source_cur
6611: loop
6612: oe_debug_pub.add(source_rec.line_id|| ' --- '
6613: ||source_rec.inventory_item_id||' --- '
6614: ||source_rec.rcv_org_id||' --- '||source_rec.source_org_id
6615: ||' --- '||source_rec.customer_id||' --- '||source_rec.vendor_id
6616: ||' --- '||source_rec.vendor_site_code||' --- '||source_rec.rank
6618: ||' --- '||source_rec.reuse_flag||' --- '||source_rec.valid_flag
6619: ||' --- '||source_rec.leaf_node ||' --- '||source_rec.SR_RECEIPT_ID,5);
6620: End Loop;
6621:
6622: oe_debug_pub.add('============== End printing ===============',5);
6623: End;
6624:
6625: --Bugfix 13362916
6626: Procedure Print_orglist_gt is
6634: make_flag
6635: from bom_cto_oss_orgslist_gt;
6636: --where line_id = p_line_id;
6637: begin
6638: oe_debug_pub.add('================PRINTING BOM_CTO_ORGSLIST_GT==================',5);
6639: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6640: oe_debug_pub.add('Line id --- Ato Line Id --- Item Id --- Org id --- vendor --- vend site ---Make Flag',5);
6641: for org_list_rec in org_list_cur
6642: Loop
6635: from bom_cto_oss_orgslist_gt;
6636: --where line_id = p_line_id;
6637: begin
6638: oe_debug_pub.add('================PRINTING BOM_CTO_ORGSLIST_GT==================',5);
6639: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6640: oe_debug_pub.add('Line id --- Ato Line Id --- Item Id --- Org id --- vendor --- vend site ---Make Flag',5);
6641: for org_list_rec in org_list_cur
6642: Loop
6643: oe_debug_pub.add(org_list_rec.line_id||' --- '||org_list_rec.ato_line_id||' --- '||
6636: --where line_id = p_line_id;
6637: begin
6638: oe_debug_pub.add('================PRINTING BOM_CTO_ORGSLIST_GT==================',5);
6639: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6640: oe_debug_pub.add('Line id --- Ato Line Id --- Item Id --- Org id --- vendor --- vend site ---Make Flag',5);
6641: for org_list_rec in org_list_cur
6642: Loop
6643: oe_debug_pub.add(org_list_rec.line_id||' --- '||org_list_rec.ato_line_id||' --- '||
6644: org_list_rec.inventory_item_id||' --- '||org_list_rec.organization_id||' --- '||
6639: --oe_debug_pub.add('================ Line id = '||p_line_id||'======================',5);
6640: oe_debug_pub.add('Line id --- Ato Line Id --- Item Id --- Org id --- vendor --- vend site ---Make Flag',5);
6641: for org_list_rec in org_list_cur
6642: Loop
6643: oe_debug_pub.add(org_list_rec.line_id||' --- '||org_list_rec.ato_line_id||' --- '||
6644: org_list_rec.inventory_item_id||' --- '||org_list_rec.organization_id||' --- '||
6645: org_list_rec.vendor_id||' --- '||org_list_rec.vendor_site_code||' --- '||
6646: org_list_rec.make_flag,5);
6647: End Loop;
6644: org_list_rec.inventory_item_id||' --- '||org_list_rec.organization_id||' --- '||
6645: org_list_rec.vendor_id||' --- '||org_list_rec.vendor_site_code||' --- '||
6646: org_list_rec.make_flag,5);
6647: End Loop;
6648: oe_debug_pub.add('============== End printing ===============',5);
6649: End;
6650: END CTO_OSS_SOURCE_PK;