152: cur_job job_cur%ROWTYPE ;
153:
154: l_dummy2 VARCHAR2(1);
155: l_logLevel number;
156: l_params wip_logger.param_tbl_t;
157:
158: BEGIN
159: l_params(1).paramName := 'p_groupID';
160: l_params(1).paramValue := p_group_id;
162: l_params(2).paramValue := p_parent_header_id;
163: l_params(3).paramName := 'p_std_alone';
164: l_params(3).paramValue := p_std_alone;
165:
166: wip_logger.entryPoint(p_procName => 'WIP_JOB_DETAILS.Load_All_Details',
167: p_params => l_params,
168: x_returnStatus => l_dummy2);
169:
170: begin
278: x_err_msg ,
279: x_return_status );
280: exception
281: when others then
282: wip_logger.log('Error in WIP_OPERATION_DEFAULT.Default_Operations,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
283: wip_logger.log(SQLERRM,l_dummy2);
284: raise;
285: end;
286:
279: x_return_status );
280: exception
281: when others then
282: wip_logger.log('Error in WIP_OPERATION_DEFAULT.Default_Operations,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
283: wip_logger.log(SQLERRM,l_dummy2);
284: raise;
285: end;
286:
287:
299: x_err_code, x_err_msg,
300: x_return_status);
301: exception
302: when others then
303: wip_logger.log('Error in WIP_OPERATION_VALIDATE.Add_Operation,l_cur.wip_entity_id='||l_cur.wip_entity_id||' , substitution_type= '||WIP_JOB_DETAILS.WIP_ADD,l_dummy2);
304: wip_logger.log(SQLERRM,l_dummy2);
305: raise;
306: end;
307: /* validate operation records */
300: x_return_status);
301: exception
302: when others then
303: wip_logger.log('Error in WIP_OPERATION_VALIDATE.Add_Operation,l_cur.wip_entity_id='||l_cur.wip_entity_id||' , substitution_type= '||WIP_JOB_DETAILS.WIP_ADD,l_dummy2);
304: wip_logger.log(SQLERRM,l_dummy2);
305: raise;
306: end;
307: /* validate operation records */
308:
317: x_return_status);
318:
319: EXCEPTION
320: when others then
321: wip_logger.log('Error in WIP_OPERATION_VALIDATE.Change_Operation,l_cur.wip_entity_id='||l_cur.wip_entity_id||' , substitution_type= '||WIP_JOB_DETAILS.WIP_CHANGE,l_dummy2);
322: wip_logger.log(SQLERRM,l_dummy2);
323: raise;
324: end;
325:
318:
319: EXCEPTION
320: when others then
321: wip_logger.log('Error in WIP_OPERATION_VALIDATE.Change_Operation,l_cur.wip_entity_id='||l_cur.wip_entity_id||' , substitution_type= '||WIP_JOB_DETAILS.WIP_CHANGE,l_dummy2);
322: wip_logger.log(SQLERRM,l_dummy2);
323: raise;
324: end;
325:
326: END IF; /* end of operation validation */
333: cur_job.wip_entity_id,
334: cur_job.organization_id);
335: EXCEPTION
336: when others then
337: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
338: wip_logger.log(SQLERRM,l_dummy2);
339: raise;
340: end;
341:
334: cur_job.organization_id);
335: EXCEPTION
336: when others then
337: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
338: wip_logger.log(SQLERRM,l_dummy2);
339: raise;
340: end;
341:
342:
349: x_err_msg,
350: x_return_status);
351: EXCEPTION
352: when others then
353: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_OPERATION,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
354: wip_logger.log(SQLERRM,l_dummy2);
355: raise;
356: end;
357:
350: x_return_status);
351: EXCEPTION
352: when others then
353: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_OPERATION,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
354: wip_logger.log(SQLERRM,l_dummy2);
355: raise;
356: end;
357:
358: begin
364: x_err_msg,
365: x_return_status);
366: EXCEPTION
367: when others then
368: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_OPERATION,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
369: wip_logger.log(SQLERRM,l_dummy2);
370: raise;
371: end;
372:
365: x_return_status);
366: EXCEPTION
367: when others then
368: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_OPERATION,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
369: wip_logger.log(SQLERRM,l_dummy2);
370: raise;
371: end;
372:
373: /*************END PROCESSING OPERATIONS********************/
377: cur_job.wip_entity_id,
378: cur_job.organization_id);
379: EXCEPTION
380: when others then
381: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.OP_Seq_Num,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
382: wip_logger.log(SQLERRM,l_dummy2);
383: raise;
384: end;
385:
378: cur_job.organization_id);
379: EXCEPTION
380: when others then
381: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.OP_Seq_Num,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
382: wip_logger.log(SQLERRM,l_dummy2);
383: raise;
384: end;
385:
386: FOR l_cur IN RES_CUR (cur_job.wip_entity_id,
395: l_cur.substitution_type);
396:
397: EXCEPTION
398: when others then
399: wip_logger.log('Error in WIP_RESOURCE_VALIDATIONS.Delete_Resource,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
400: wip_logger.log(SQLERRM,l_dummy2);
401: raise;
402: end;
403:
396:
397: EXCEPTION
398: when others then
399: wip_logger.log('Error in WIP_RESOURCE_VALIDATIONS.Delete_Resource,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
400: wip_logger.log(SQLERRM,l_dummy2);
401: raise;
402: end;
403:
404: ELSIF l_cur.substitution_type = WIP_ADD THEN
410: l_cur.substitution_type);
411:
412: EXCEPTION
413: when others then
414: wip_logger.log('Error in WIP_RESOURCE_VALIDATIONS.Add_Resource,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
415: wip_logger.log(SQLERRM,l_dummy2);
416: raise;
417: end;
418:
411:
412: EXCEPTION
413: when others then
414: wip_logger.log('Error in WIP_RESOURCE_VALIDATIONS.Add_Resource,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
415: wip_logger.log(SQLERRM,l_dummy2);
416: raise;
417: end;
418:
419: ELSIF l_cur.substitution_type = WIP_CHANGE THEN
424: l_cur.organization_id,
425: l_cur.substitution_type);
426: EXCEPTION
427: when others then
428: wip_logger.log('Error in WIP_RESOURCE_VALIDATIONS.Change_Resource,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
429: wip_logger.log(SQLERRM,l_dummy2);
430: raise;
431: end;
432:
425: l_cur.substitution_type);
426: EXCEPTION
427: when others then
428: wip_logger.log('Error in WIP_RESOURCE_VALIDATIONS.Change_Resource,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
429: wip_logger.log(SQLERRM,l_dummy2);
430: raise;
431: end;
432:
433: END IF;
442: cur_job.organization_id);
443:
444: EXCEPTION
445: when others then
446: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
447: wip_logger.log(SQLERRM,l_dummy2);
448: raise;
449: end;
450:
443:
444: EXCEPTION
445: when others then
446: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
447: wip_logger.log(SQLERRM,l_dummy2);
448: raise;
449: end;
450:
451:
458: x_err_msg);
459:
460: EXCEPTION
461: when others then
462: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.DELETE_RESOURCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
463: wip_logger.log(SQLERRM,l_dummy2);
464: raise;
465: end;
466:
459:
460: EXCEPTION
461: when others then
462: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.DELETE_RESOURCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
463: wip_logger.log(SQLERRM,l_dummy2);
464: raise;
465: end;
466:
467: BEGIN
473: x_err_msg);
474:
475: EXCEPTION
476: when others then
477: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_RESOURCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
478: wip_logger.log(SQLERRM,l_dummy2);
479: raise;
480: end;
481:
474:
475: EXCEPTION
476: when others then
477: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_RESOURCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
478: wip_logger.log(SQLERRM,l_dummy2);
479: raise;
480: end;
481:
482: BEGIN
487: x_err_code,
488: x_err_msg);
489: EXCEPTION
490: when others then
491: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_RESOURCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
492: wip_logger.log(SQLERRM,l_dummy2);
493: raise;
494: end;
495:
488: x_err_msg);
489: EXCEPTION
490: when others then
491: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_RESOURCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
492: wip_logger.log(SQLERRM,l_dummy2);
493: raise;
494: end;
495:
496: FOR l_cur IN RESINST_CUR (cur_job.wip_entity_id,
507: x_err_msg);
508:
509: EXCEPTION
510: when others then
511: wip_logger.log('Error in WIP_RES_INST_VALIDATIONS.Delete_Resource_Instance,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
512: wip_logger.log(SQLERRM,l_dummy2);
513: raise;
514: end;
515: if (l_logLevel <= wip_constants.trace_logging) then
508:
509: EXCEPTION
510: when others then
511: wip_logger.log('Error in WIP_RES_INST_VALIDATIONS.Delete_Resource_Instance,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
512: wip_logger.log(SQLERRM,l_dummy2);
513: raise;
514: end;
515: if (l_logLevel <= wip_constants.trace_logging) then
516: IF x_err_code IS NOT NULL THEN
513: raise;
514: end;
515: if (l_logLevel <= wip_constants.trace_logging) then
516: IF x_err_code IS NOT NULL THEN
517: wip_logger.log(x_err_code, l_dummy2);
518: wip_logger.log(x_err_msg, l_dummy2);
519: end if;
520: end if;
521:
514: end;
515: if (l_logLevel <= wip_constants.trace_logging) then
516: IF x_err_code IS NOT NULL THEN
517: wip_logger.log(x_err_code, l_dummy2);
518: wip_logger.log(x_err_msg, l_dummy2);
519: end if;
520: end if;
521:
522: ELSIF l_cur.substitution_type = WIP_ADD THEN
528: x_err_code,
529: x_err_msg);
530: if (l_logLevel <= wip_constants.trace_logging) then
531: IF x_err_code IS NOT NULL THEN
532: wip_logger.log(x_err_code, l_dummy2);
533: wip_logger.log(x_err_msg, l_dummy2);
534: end if;
535: end if;
536:
529: x_err_msg);
530: if (l_logLevel <= wip_constants.trace_logging) then
531: IF x_err_code IS NOT NULL THEN
532: wip_logger.log(x_err_code, l_dummy2);
533: wip_logger.log(x_err_msg, l_dummy2);
534: end if;
535: end if;
536:
537: ELSIF l_cur.substitution_type = WIP_CHANGE THEN
543: x_err_code,
544: x_err_msg);
545: if (l_logLevel <= wip_constants.trace_logging) then
546: IF x_err_code IS NOT NULL THEN
547: wip_logger.log(x_err_code, l_dummy2);
548: wip_logger.log(x_err_msg, l_dummy2);
549: end if;
550: end if;
551: END IF;
544: x_err_msg);
545: if (l_logLevel <= wip_constants.trace_logging) then
546: IF x_err_code IS NOT NULL THEN
547: wip_logger.log(x_err_code, l_dummy2);
548: wip_logger.log(x_err_msg, l_dummy2);
549: end if;
550: end if;
551: END IF;
552: END LOOP;
560: cur_job.organization_id);
561:
562: EXCEPTION
563: when others then
564: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
565: wip_logger.log(SQLERRM,l_dummy2);
566: raise;
567: end;
568:
561:
562: EXCEPTION
563: when others then
564: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
565: wip_logger.log(SQLERRM,l_dummy2);
566: raise;
567: end;
568:
569:
576: x_err_code,
577: x_err_msg);
578: EXCEPTION
579: when others then
580: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.DELETE_RESOURCE_INSTANCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
581: wip_logger.log(SQLERRM,l_dummy2);
582: raise;
583: end;
584:
577: x_err_msg);
578: EXCEPTION
579: when others then
580: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.DELETE_RESOURCE_INSTANCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
581: wip_logger.log(SQLERRM,l_dummy2);
582: raise;
583: end;
584:
585: BEGIN
590: x_err_code,
591: x_err_msg);
592: EXCEPTION
593: when others then
594: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_RESOURCE_INSTANCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
595: wip_logger.log(SQLERRM,l_dummy2);
596: raise;
597: end;
598:
591: x_err_msg);
592: EXCEPTION
593: when others then
594: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_RESOURCE_INSTANCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
595: wip_logger.log(SQLERRM,l_dummy2);
596: raise;
597: end;
598:
599: BEGIN
604: x_err_code,
605: x_err_msg);
606: EXCEPTION
607: when others then
608: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_RESOURCE_INSTANCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
609: wip_logger.log(SQLERRM,l_dummy2);
610: raise;
611: end;
612:
605: x_err_msg);
606: EXCEPTION
607: when others then
608: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_RESOURCE_INSTANCE,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
609: wip_logger.log(SQLERRM,l_dummy2);
610: raise;
611: end;
612:
613: BEGIN
617: cur_job.wip_entity_id,
618: cur_job.organization_id);
619: EXCEPTION
620: when others then
621: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
622: wip_logger.log(SQLERRM,l_dummy2);
623: raise;
624: end;
625:
618: cur_job.organization_id);
619: EXCEPTION
620: when others then
621: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
622: wip_logger.log(SQLERRM,l_dummy2);
623: raise;
624: end;
625:
626: /****** MATERAIL REQUIREMENTS processing ******************/
638: l_cur.substitution_type);
639:
640: EXCEPTION
641: when others then
642: wip_logger.log('Error in WIP_REQUIREMENT_VALIDATIONS.Delete_Req,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
643: wip_logger.log(SQLERRM,l_dummy2);
644: raise;
645: end;
646: ELSIF l_cur.substitution_type = WIP_ADD THEN
639:
640: EXCEPTION
641: when others then
642: wip_logger.log('Error in WIP_REQUIREMENT_VALIDATIONS.Delete_Req,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
643: wip_logger.log(SQLERRM,l_dummy2);
644: raise;
645: end;
646: ELSIF l_cur.substitution_type = WIP_ADD THEN
647:
653: l_cur.substitution_type);
654:
655: EXCEPTION
656: when others then
657: wip_logger.log('Error in WIP_REQUIREMENT_VALIDATIONS.Add_Req,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
658: wip_logger.log(SQLERRM,l_dummy2);
659: raise;
660: end;
661: ELSIF l_cur.substitution_type = WIP_CHANGE THEN
654:
655: EXCEPTION
656: when others then
657: wip_logger.log('Error in WIP_REQUIREMENT_VALIDATIONS.Add_Req,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
658: wip_logger.log(SQLERRM,l_dummy2);
659: raise;
660: end;
661: ELSIF l_cur.substitution_type = WIP_CHANGE THEN
662:
668: l_cur.substitution_type);
669:
670: EXCEPTION
671: when others then
672: wip_logger.log('Error in WIP_REQUIREMENT_VALIDATIONS.Change_Req,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
673: wip_logger.log(SQLERRM,l_dummy2);
674: raise;
675: end;
676:
669:
670: EXCEPTION
671: when others then
672: wip_logger.log('Error in WIP_REQUIREMENT_VALIDATIONS.Change_Req,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
673: wip_logger.log(SQLERRM,l_dummy2);
674: raise;
675: end;
676:
677: END IF; /* End requirement processing */
684: cur_job.wip_entity_id,
685: cur_job.organization_id);
686: EXCEPTION
687: when others then
688: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
689: wip_logger.log(SQLERRM,l_dummy2);
690: raise;
691: end;
692:
685: cur_job.organization_id);
686: EXCEPTION
687: when others then
688: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
689: wip_logger.log(SQLERRM,l_dummy2);
690: raise;
691: end;
692:
693:
699: x_err_code,
700: x_err_msg);
701: EXCEPTION
702: when others then
703: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.DELETE_REQUIREMENT,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
704: wip_logger.log(SQLERRM,l_dummy2);
705: raise;
706: end;
707:
700: x_err_msg);
701: EXCEPTION
702: when others then
703: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.DELETE_REQUIREMENT,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
704: wip_logger.log(SQLERRM,l_dummy2);
705: raise;
706: end;
707:
708:
715: x_err_msg);
716:
717: EXCEPTION
718: when others then
719: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_REQUIREMENT,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
720: wip_logger.log(SQLERRM,l_dummy2);
721: raise;
722: end;
723:
716:
717: EXCEPTION
718: when others then
719: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.ADD_REQUIREMENT,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
720: wip_logger.log(SQLERRM,l_dummy2);
721: raise;
722: end;
723:
724: BEGIN
729: x_err_code,
730: x_err_msg);
731: EXCEPTION
732: when others then
733: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_REQUIREMENT,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
734: wip_logger.log(SQLERRM,l_dummy2);
735: raise;
736: end;
737:
730: x_err_msg);
731: EXCEPTION
732: when others then
733: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.CHANGE_REQUIREMENT,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
734: wip_logger.log(SQLERRM,l_dummy2);
735: raise;
736: end;
737:
738:
751: x_return_status);
752:
753: EXCEPTION
754: when others then
755: wip_logger.log('Error in WIP_RES_USAGE_DEFAULT.Default_Resource_Usages,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
756: wip_logger.log(SQLERRM,l_dummy2);
757: raise;
758: end;
759: BEGIN
752:
753: EXCEPTION
754: when others then
755: wip_logger.log('Error in WIP_RES_USAGE_DEFAULT.Default_Resource_Usages,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
756: wip_logger.log(SQLERRM,l_dummy2);
757: raise;
758: end;
759: BEGIN
760:
766: x_return_status);
767:
768: EXCEPTION
769: when others then
770: wip_logger.log('Error in WIP_RES_USAGE_VALIDATE.Validate_Usage,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
771: wip_logger.log(SQLERRM,l_dummy2);
772: raise;
773: end;
774: END LOOP; /* End req_cur loop for validation */
767:
768: EXCEPTION
769: when others then
770: wip_logger.log('Error in WIP_RES_USAGE_VALIDATE.Validate_Usage,l_cur.wip_entity_id='||l_cur.wip_entity_id,l_dummy2);
771: wip_logger.log(SQLERRM,l_dummy2);
772: raise;
773: end;
774: END LOOP; /* End req_cur loop for validation */
775:
782: cur_job.organization_id);
783:
784: EXCEPTION
785: when others then
786: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
787: wip_logger.log(SQLERRM,l_dummy2);
788: raise;
789: end;
790:
783:
784: EXCEPTION
785: when others then
786: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.Error_All_If_Any,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
787: wip_logger.log(SQLERRM,l_dummy2);
788: raise;
789: end;
790:
791: BEGIN
799: x_return_status);
800:
801: EXCEPTION
802: when others then
803: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.Substitution_Res_Usages,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
804: wip_logger.log(SQLERRM,l_dummy2);
805: raise;
806: end;
807:
800:
801: EXCEPTION
802: when others then
803: wip_logger.log('Error in WIP_JOB_DTLS_SUBSTITUTIONS.Substitution_Res_Usages,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
804: wip_logger.log(SQLERRM,l_dummy2);
805: raise;
806: end;
807:
808:
816: cur_job.organization_id);
817:
818: EXCEPTION
819: when others then
820: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.OP_Seq_Num,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
821: wip_logger.log(SQLERRM,l_dummy2);
822: raise;
823: end;
824:
817:
818: EXCEPTION
819: when others then
820: wip_logger.log('Error in WIP_JOB_DTLS_VALIDATIONS.OP_Seq_Num,l_cur.wip_entity_id='||cur_job.wip_entity_id,l_dummy2);
821: wip_logger.log(SQLERRM,l_dummy2);
822: raise;
823: end;
824:
825: FOR l_cur IN SUBRES_CUR (cur_job.wip_entity_id,
1008: x_err_msg,
1009: x_return_status);
1010:
1011: if (l_logLevel <= wip_constants.trace_logging) then
1012: wip_logger.log('wip_operations',l_dummy2);
1013: for wo_rec in (select * from wip_operations where wip_entity_id = cur_job.wip_entity_id and organization_id = cur_job.organization_id order by operation_seq_num) loop
1014: wip_logger.log('Op Seq '||wo_rec.operation_seq_num||' FUSD '||to_date(wo_rec.first_unit_start_date,WIP_CONSTANTS.DATETIME_FMT)||
1015: ' FUCD '||to_date(wo_rec.first_unit_completion_date,WIP_CONSTANTS.DATETIME_FMT) ||
1016: ' LUSD '||to_date(wo_rec.last_unit_start_date,WIP_CONSTANTS.DATETIME_FMT) ||
1010:
1011: if (l_logLevel <= wip_constants.trace_logging) then
1012: wip_logger.log('wip_operations',l_dummy2);
1013: for wo_rec in (select * from wip_operations where wip_entity_id = cur_job.wip_entity_id and organization_id = cur_job.organization_id order by operation_seq_num) loop
1014: wip_logger.log('Op Seq '||wo_rec.operation_seq_num||' FUSD '||to_date(wo_rec.first_unit_start_date,WIP_CONSTANTS.DATETIME_FMT)||
1015: ' FUCD '||to_date(wo_rec.first_unit_completion_date,WIP_CONSTANTS.DATETIME_FMT) ||
1016: ' LUSD '||to_date(wo_rec.last_unit_start_date,WIP_CONSTANTS.DATETIME_FMT) ||
1017: ' LUCD '||to_date(wo_rec.last_unit_completion_date,WIP_CONSTANTS.DATETIME_FMT) ,l_dummy2);
1018: end loop;
1015: ' FUCD '||to_date(wo_rec.first_unit_completion_date,WIP_CONSTANTS.DATETIME_FMT) ||
1016: ' LUSD '||to_date(wo_rec.last_unit_start_date,WIP_CONSTANTS.DATETIME_FMT) ||
1017: ' LUCD '||to_date(wo_rec.last_unit_completion_date,WIP_CONSTANTS.DATETIME_FMT) ,l_dummy2);
1018: end loop;
1019: wip_logger.log('wip_operation_resources',l_dummy2);
1020: for wor_rec in (select * from wip_operation_resources where wip_entity_id = cur_job.wip_entity_id and organization_id = cur_job.organization_id order by operation_seq_num) loop
1021: wip_logger.log('Op Seq '||wor_rec.operation_seq_num||' Res Seq '||wor_rec.resource_seq_num||
1022: ' St Dt '||to_date(wor_rec.start_date,WIP_CONSTANTS.DATETIME_FMT) ||
1023: ' Cm Dt '||to_date(wor_rec.completion_date,WIP_CONSTANTS.DATETIME_FMT) ,l_dummy2);
1017: ' LUCD '||to_date(wo_rec.last_unit_completion_date,WIP_CONSTANTS.DATETIME_FMT) ,l_dummy2);
1018: end loop;
1019: wip_logger.log('wip_operation_resources',l_dummy2);
1020: for wor_rec in (select * from wip_operation_resources where wip_entity_id = cur_job.wip_entity_id and organization_id = cur_job.organization_id order by operation_seq_num) loop
1021: wip_logger.log('Op Seq '||wor_rec.operation_seq_num||' Res Seq '||wor_rec.resource_seq_num||
1022: ' St Dt '||to_date(wor_rec.start_date,WIP_CONSTANTS.DATETIME_FMT) ||
1023: ' Cm Dt '||to_date(wor_rec.completion_date,WIP_CONSTANTS.DATETIME_FMT) ,l_dummy2);
1024: end loop;
1025: end if;