1: PACKAGE BODY po_fed_field_functions AS
2: /* $Header: PO_FED_FIELD_FUNCTIONS.plb 120.36.12020000.11 2013/05/09 15:16:44 rparise ship $ */
3: d_pkg_name CONSTANT varchar2(50) := PO_LOG.get_package_base('PO_FED_FIELD_FUNCTIONS');
4: d_appln_short_name CONSTANT VARCHAR2(20) := 'PO';
5:
6: FUNCTION newline
7: RETURN VARCHAR2
46:
47: BEGIN
48:
49: addresstype := HiddenAddType;
50: IF (PO_LOG.d_proc) THEN
51: PO_LOG.proc_begin(d_module);
52: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
53: PO_LOG.proc_begin(d_module, 'location', location);
54: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
47: BEGIN
48:
49: addresstype := HiddenAddType;
50: IF (PO_LOG.d_proc) THEN
51: PO_LOG.proc_begin(d_module);
52: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
53: PO_LOG.proc_begin(d_module, 'location', location);
54: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
55: END IF;
48:
49: addresstype := HiddenAddType;
50: IF (PO_LOG.d_proc) THEN
51: PO_LOG.proc_begin(d_module);
52: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
53: PO_LOG.proc_begin(d_module, 'location', location);
54: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
55: END IF;
56:
49: addresstype := HiddenAddType;
50: IF (PO_LOG.d_proc) THEN
51: PO_LOG.proc_begin(d_module);
52: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
53: PO_LOG.proc_begin(d_module, 'location', location);
54: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
55: END IF;
56:
57: address_XD(
50: IF (PO_LOG.d_proc) THEN
51: PO_LOG.proc_begin(d_module);
52: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
53: PO_LOG.proc_begin(d_module, 'location', location);
54: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
55: END IF;
56:
57: address_XD(
58: addresstype
96: BEGIN
97:
98: addresstype := HiddenAddType;
99:
100: IF (PO_LOG.d_proc) THEN
101: PO_LOG.proc_begin(d_module);
102: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
103: PO_LOG.proc_begin(d_module, 'location', location);
104: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
97:
98: addresstype := HiddenAddType;
99:
100: IF (PO_LOG.d_proc) THEN
101: PO_LOG.proc_begin(d_module);
102: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
103: PO_LOG.proc_begin(d_module, 'location', location);
104: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
105: END IF;
98: addresstype := HiddenAddType;
99:
100: IF (PO_LOG.d_proc) THEN
101: PO_LOG.proc_begin(d_module);
102: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
103: PO_LOG.proc_begin(d_module, 'location', location);
104: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
105: END IF;
106:
99:
100: IF (PO_LOG.d_proc) THEN
101: PO_LOG.proc_begin(d_module);
102: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
103: PO_LOG.proc_begin(d_module, 'location', location);
104: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
105: END IF;
106:
107:
100: IF (PO_LOG.d_proc) THEN
101: PO_LOG.proc_begin(d_module);
102: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
103: PO_LOG.proc_begin(d_module, 'location', location);
104: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
105: END IF;
106:
107:
108: address_XD(
182:
183: addresstype := HiddenAddType;
184: l_addressType := HiddenAddType;
185:
186: IF (PO_LOG.d_proc) THEN
187: PO_LOG.proc_begin(d_module);
188: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
189: PO_LOG.proc_begin(d_module, 'location', location);
190: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
183: addresstype := HiddenAddType;
184: l_addressType := HiddenAddType;
185:
186: IF (PO_LOG.d_proc) THEN
187: PO_LOG.proc_begin(d_module);
188: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
189: PO_LOG.proc_begin(d_module, 'location', location);
190: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
191: END IF;
184: l_addressType := HiddenAddType;
185:
186: IF (PO_LOG.d_proc) THEN
187: PO_LOG.proc_begin(d_module);
188: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
189: PO_LOG.proc_begin(d_module, 'location', location);
190: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
191: END IF;
192:
185:
186: IF (PO_LOG.d_proc) THEN
187: PO_LOG.proc_begin(d_module);
188: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
189: PO_LOG.proc_begin(d_module, 'location', location);
190: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
191: END IF;
192:
193: --
186: IF (PO_LOG.d_proc) THEN
187: PO_LOG.proc_begin(d_module);
188: PO_LOG.proc_begin(d_module, 'HiddenAddType', HiddenAddType);
189: PO_LOG.proc_begin(d_module, 'location', location);
190: PO_LOG.proc_begin(d_module, 'addresscode', addresscode);
191: END IF;
192:
193: --
194: -- For Multi-Mod flow, default only Modification Addresses. Other addresses
440: WHEN No_Data_Found THEN
441: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': NO DATA FOUND' );
442: WHEN OTHERS THEN
443: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': '|| SQLERRM );
444: IF (PO_LOG.d_exc) THEN
445: PO_LOG.proc_end(d_module||': '|| SQLERRM );
446: PO_LOG.proc_end(d_module);
447: END IF;
448:
441: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': NO DATA FOUND' );
442: WHEN OTHERS THEN
443: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': '|| SQLERRM );
444: IF (PO_LOG.d_exc) THEN
445: PO_LOG.proc_end(d_module||': '|| SQLERRM );
446: PO_LOG.proc_end(d_module);
447: END IF;
448:
449:
442: WHEN OTHERS THEN
443: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': '|| SQLERRM );
444: IF (PO_LOG.d_exc) THEN
445: PO_LOG.proc_end(d_module||': '|| SQLERRM );
446: PO_LOG.proc_end(d_module);
447: END IF;
448:
449:
450: END address_XD;
466: l_AddTypeDispField VARCHAR2(100);
467:
468: BEGIN
469:
470: IF (PO_LOG.d_proc) THEN
471: PO_LOG.proc_begin(d_module);
472: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
473: PO_LOG.proc_begin(d_module, 'p_location', p_location);
474: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
467:
468: BEGIN
469:
470: IF (PO_LOG.d_proc) THEN
471: PO_LOG.proc_begin(d_module);
472: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
473: PO_LOG.proc_begin(d_module, 'p_location', p_location);
474: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
475: END IF;
468: BEGIN
469:
470: IF (PO_LOG.d_proc) THEN
471: PO_LOG.proc_begin(d_module);
472: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
473: PO_LOG.proc_begin(d_module, 'p_location', p_location);
474: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
475: END IF;
476:
469:
470: IF (PO_LOG.d_proc) THEN
471: PO_LOG.proc_begin(d_module);
472: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
473: PO_LOG.proc_begin(d_module, 'p_location', p_location);
474: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
475: END IF;
476:
477: IF p_location IS NULL THEN
470: IF (PO_LOG.d_proc) THEN
471: PO_LOG.proc_begin(d_module);
472: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
473: PO_LOG.proc_begin(d_module, 'p_location', p_location);
474: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
475: END IF;
476:
477: IF p_location IS NULL THEN
478: CASE p_HiddenAddType
524: fnd_msg_pub.ADD;
525: END IF;
526: END IF ;
527:
528: IF (PO_LOG.d_proc) THEN
529: PO_LOG.proc_end(d_module);
530: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
531: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
532: END IF;
525: END IF;
526: END IF ;
527:
528: IF (PO_LOG.d_proc) THEN
529: PO_LOG.proc_end(d_module);
530: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
531: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
532: END IF;
533:
526: END IF ;
527:
528: IF (PO_LOG.d_proc) THEN
529: PO_LOG.proc_end(d_module);
530: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
531: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
532: END IF;
533:
534: EXCEPTION
527:
528: IF (PO_LOG.d_proc) THEN
529: PO_LOG.proc_end(d_module);
530: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
531: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
532: END IF;
533:
534: EXCEPTION
535: WHEN OTHERS THEN
555: l_submissionValid BOOLEAN;
556: l_AddTypeDispField VARCHAR2(100);
557:
558: BEGIN
559: IF (PO_LOG.d_proc) THEN
560: PO_LOG.proc_begin(d_module);
561: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
562: PO_LOG.proc_begin(d_module, 'p_location', p_location);
563: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
556: l_AddTypeDispField VARCHAR2(100);
557:
558: BEGIN
559: IF (PO_LOG.d_proc) THEN
560: PO_LOG.proc_begin(d_module);
561: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
562: PO_LOG.proc_begin(d_module, 'p_location', p_location);
563: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
564: END IF;
557:
558: BEGIN
559: IF (PO_LOG.d_proc) THEN
560: PO_LOG.proc_begin(d_module);
561: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
562: PO_LOG.proc_begin(d_module, 'p_location', p_location);
563: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
564: END IF;
565:
558: BEGIN
559: IF (PO_LOG.d_proc) THEN
560: PO_LOG.proc_begin(d_module);
561: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
562: PO_LOG.proc_begin(d_module, 'p_location', p_location);
563: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
564: END IF;
565:
566: IF p_location IS NULL
559: IF (PO_LOG.d_proc) THEN
560: PO_LOG.proc_begin(d_module);
561: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
562: PO_LOG.proc_begin(d_module, 'p_location', p_location);
563: PO_LOG.proc_begin(d_module, 'p_contact_id', p_contact_id);
564: END IF;
565:
566: IF p_location IS NULL
567: AND (g_is_multi_mod_context = 'N'
607: fnd_message.set_token('ADDTYPE',l_AddTypeDispField);
608: fnd_msg_pub.ADD;
609: END IF ;
610:
611: IF (PO_LOG.d_proc) THEN
612: PO_LOG.proc_end(d_module);
613: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
614: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
615: END IF;
608: fnd_msg_pub.ADD;
609: END IF ;
610:
611: IF (PO_LOG.d_proc) THEN
612: PO_LOG.proc_end(d_module);
613: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
614: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
615: END IF;
616:
609: END IF ;
610:
611: IF (PO_LOG.d_proc) THEN
612: PO_LOG.proc_end(d_module);
613: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
614: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
615: END IF;
616:
617: EXCEPTION
610:
611: IF (PO_LOG.d_proc) THEN
612: PO_LOG.proc_end(d_module);
613: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
614: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
615: END IF;
616:
617: EXCEPTION
618: WHEN OTHERS THEN
644: d_proc_name CONSTANT varchar2(50) := 'addresses_XPD';
645: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
646:
647: BEGIN
648: IF (PO_LOG.d_proc) THEN
649: PO_LOG.proc_begin(d_module);
650: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
651: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
652: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
645: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
646:
647: BEGIN
648: IF (PO_LOG.d_proc) THEN
649: PO_LOG.proc_begin(d_module);
650: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
651: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
652: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
653: END IF;
646:
647: BEGIN
648: IF (PO_LOG.d_proc) THEN
649: PO_LOG.proc_begin(d_module);
650: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
651: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
652: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
653: END IF;
654:
647: BEGIN
648: IF (PO_LOG.d_proc) THEN
649: PO_LOG.proc_begin(d_module);
650: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
651: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
652: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
653: END IF;
654:
655: IF p_HiddenAddType = 'ISSUING_OFFICE' THEN
648: IF (PO_LOG.d_proc) THEN
649: PO_LOG.proc_begin(d_module);
650: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
651: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
652: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
653: END IF;
654:
655: IF p_HiddenAddType = 'ISSUING_OFFICE' THEN
656:
687: WHERE REQUISITION_HEADER_ID = p_header_id;
688:
689: END IF;
690:
691: IF (PO_LOG.d_proc) THEN
692: PO_LOG.proc_end(d_module);
693: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
694: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
695: END IF;
688:
689: END IF;
690:
691: IF (PO_LOG.d_proc) THEN
692: PO_LOG.proc_end(d_module);
693: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
694: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
695: END IF;
696:
689: END IF;
690:
691: IF (PO_LOG.d_proc) THEN
692: PO_LOG.proc_end(d_module);
693: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
694: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
695: END IF;
696:
697: EXCEPTION
690:
691: IF (PO_LOG.d_proc) THEN
692: PO_LOG.proc_end(d_module);
693: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
694: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
695: END IF;
696:
697: EXCEPTION
698: WHEN OTHERS THEN
700: x_errorcode := '-2';
701: x_msg_count := '1';
702: x_msg_data := 'Exception in addresses_XPD';
703: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
704: IF (PO_LOG.d_exc) THEN
705: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
706: PO_LOG.proc_end(d_module);
707: END IF;
708:
701: x_msg_count := '1';
702: x_msg_data := 'Exception in addresses_XPD';
703: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
704: IF (PO_LOG.d_exc) THEN
705: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
706: PO_LOG.proc_end(d_module);
707: END IF;
708:
709: END pr_addresses_XPD;
702: x_msg_data := 'Exception in addresses_XPD';
703: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
704: IF (PO_LOG.d_exc) THEN
705: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
706: PO_LOG.proc_end(d_module);
707: END IF;
708:
709: END pr_addresses_XPD;
710:
729: d_proc_name CONSTANT varchar2(50) := 'addresses_XPD';
730: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
731:
732: BEGIN
733: IF (PO_LOG.d_proc) THEN
734: PO_LOG.proc_begin(d_module);
735: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
736: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
737: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
730: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
731:
732: BEGIN
733: IF (PO_LOG.d_proc) THEN
734: PO_LOG.proc_begin(d_module);
735: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
736: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
737: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
738: END IF;
731:
732: BEGIN
733: IF (PO_LOG.d_proc) THEN
734: PO_LOG.proc_begin(d_module);
735: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
736: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
737: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
738: END IF;
739:
732: BEGIN
733: IF (PO_LOG.d_proc) THEN
734: PO_LOG.proc_begin(d_module);
735: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
736: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
737: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
738: END IF;
739:
740:
733: IF (PO_LOG.d_proc) THEN
734: PO_LOG.proc_begin(d_module);
735: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
736: PO_LOG.proc_begin(d_module, 'p_header_id', p_header_id);
737: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
738: END IF;
739:
740:
741: IF(p_draft_id = -1 ) THEN
787:
788: END IF ;
789:
790:
791: IF (PO_LOG.d_proc) THEN
792: PO_LOG.proc_end(d_module);
793: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
794: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
795: END IF;
788: END IF ;
789:
790:
791: IF (PO_LOG.d_proc) THEN
792: PO_LOG.proc_end(d_module);
793: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
794: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
795: END IF;
796:
789:
790:
791: IF (PO_LOG.d_proc) THEN
792: PO_LOG.proc_end(d_module);
793: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
794: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
795: END IF;
796:
797: EXCEPTION
790:
791: IF (PO_LOG.d_proc) THEN
792: PO_LOG.proc_end(d_module);
793: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
794: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
795: END IF;
796:
797: EXCEPTION
798: WHEN OTHERS THEN
800: x_errorcode := '-2';
801: x_msg_count := '1';
802: x_msg_data := 'Exception in addresses_XPD';
803: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
804: IF (PO_LOG.d_exc) THEN
805: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
806: PO_LOG.proc_end(d_module);
807: END IF;
808:
801: x_msg_count := '1';
802: x_msg_data := 'Exception in addresses_XPD';
803: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
804: IF (PO_LOG.d_exc) THEN
805: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
806: PO_LOG.proc_end(d_module);
807: END IF;
808:
809: END po_addresses_XPD;
802: x_msg_data := 'Exception in addresses_XPD';
803: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
804: IF (PO_LOG.d_exc) THEN
805: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
806: PO_LOG.proc_end(d_module);
807: END IF;
808:
809: END po_addresses_XPD;
810:
861:
862:
863: BEGIN
864:
865: IF (PO_LOG.d_proc) THEN
866: PO_LOG.proc_begin(d_module);
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
862:
863: BEGIN
864:
865: IF (PO_LOG.d_proc) THEN
866: PO_LOG.proc_begin(d_module);
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
863: BEGIN
864:
865: IF (PO_LOG.d_proc) THEN
866: PO_LOG.proc_begin(d_module);
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
871: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
864:
865: IF (PO_LOG.d_proc) THEN
866: PO_LOG.proc_begin(d_module);
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
871: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
872: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
865: IF (PO_LOG.d_proc) THEN
866: PO_LOG.proc_begin(d_module);
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
871: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
872: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
873: END IF;
866: PO_LOG.proc_begin(d_module);
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
871: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
872: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
873: END IF;
874:
867: PO_LOG.proc_begin(d_module, 'p_HiddenAddType', p_HiddenAddType);
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
871: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
872: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
873: END IF;
874:
875: FOR c_get_bean_name_rec IN c_get_bean_name('location') LOOP
868: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
869: PO_LOG.proc_begin(d_module, 'p_HiddenLKPType', p_HiddenLKPType);
870: PO_LOG.proc_begin(d_module, 'x_location', x_location);
871: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
872: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
873: END IF;
874:
875: FOR c_get_bean_name_rec IN c_get_bean_name('location') LOOP
876: IF p_source_item = c_get_bean_name_rec.Attr_Bean_Name THEN
999: x_msg_data := 'LOV Event is from not LOCATION/CONTACT/ADDRESS_CODE';
1000:
1001: END IF;
1002:
1003: IF (PO_LOG.d_proc) THEN
1004: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1005: PO_LOG.proc_end(d_module,'x_return_status' , x_return_status );
1006: PO_LOG.proc_end(d_module);
1007: END IF;
1000:
1001: END IF;
1002:
1003: IF (PO_LOG.d_proc) THEN
1004: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1005: PO_LOG.proc_end(d_module,'x_return_status' , x_return_status );
1006: PO_LOG.proc_end(d_module);
1007: END IF;
1008:
1001: END IF;
1002:
1003: IF (PO_LOG.d_proc) THEN
1004: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1005: PO_LOG.proc_end(d_module,'x_return_status' , x_return_status );
1006: PO_LOG.proc_end(d_module);
1007: END IF;
1008:
1009: EXCEPTION
1002:
1003: IF (PO_LOG.d_proc) THEN
1004: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1005: PO_LOG.proc_end(d_module,'x_return_status' , x_return_status );
1006: PO_LOG.proc_end(d_module);
1007: END IF;
1008:
1009: EXCEPTION
1010: WHEN OTHERS THEN
1013: x_msg_count := '1';
1014: x_msg_data := 'Exception in addresses_XLE';
1015:
1016: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
1017: IF (PO_LOG.d_exc) THEN
1018: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
1019: PO_LOG.proc_end(d_module);
1020: END IF;
1021:
1014: x_msg_data := 'Exception in addresses_XLE';
1015:
1016: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
1017: IF (PO_LOG.d_exc) THEN
1018: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
1019: PO_LOG.proc_end(d_module);
1020: END IF;
1021:
1022: END addresses_XLE;
1015:
1016: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
1017: IF (PO_LOG.d_exc) THEN
1018: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
1019: PO_LOG.proc_end(d_module);
1020: END IF;
1021:
1022: END addresses_XLE;
1023:
1035: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
1036:
1037: BEGIN
1038:
1039: IF (PO_LOG.d_proc) THEN
1040: PO_LOG.proc_begin(d_module);
1041: PO_LOG.proc_begin(d_module, 'p_cust_proj_code', p_cust_proj_code);
1042: END IF;
1043:
1036:
1037: BEGIN
1038:
1039: IF (PO_LOG.d_proc) THEN
1040: PO_LOG.proc_begin(d_module);
1041: PO_LOG.proc_begin(d_module, 'p_cust_proj_code', p_cust_proj_code);
1042: END IF;
1043:
1044:
1037: BEGIN
1038:
1039: IF (PO_LOG.d_proc) THEN
1040: PO_LOG.proc_begin(d_module);
1041: PO_LOG.proc_begin(d_module, 'p_cust_proj_code', p_cust_proj_code);
1042: END IF;
1043:
1044:
1045: SELECT DESCRIPTION
1052: x_errorcode := '0';
1053: x_msg_count := '1';
1054: x_msg_data := 'SUCCESS';
1055:
1056: IF (PO_LOG.d_proc) THEN
1057: PO_LOG.proc_end(d_module);
1058: PO_LOG.proc_end (d_module, 'x_cust_proj_text', x_cust_proj_text);
1059: END IF;
1060:
1053: x_msg_count := '1';
1054: x_msg_data := 'SUCCESS';
1055:
1056: IF (PO_LOG.d_proc) THEN
1057: PO_LOG.proc_end(d_module);
1058: PO_LOG.proc_end (d_module, 'x_cust_proj_text', x_cust_proj_text);
1059: END IF;
1060:
1061:
1054: x_msg_data := 'SUCCESS';
1055:
1056: IF (PO_LOG.d_proc) THEN
1057: PO_LOG.proc_end(d_module);
1058: PO_LOG.proc_end (d_module, 'x_cust_proj_text', x_cust_proj_text);
1059: END IF;
1060:
1061:
1062: EXCEPTION
1066: x_msg_count := '1';
1067: x_msg_data := 'Exception in bu_pri_prj_inf_XLE : '|| SQLERRM;
1068:
1069: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data );
1070: IF (PO_LOG.d_exc) THEN
1071: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1072: PO_LOG.proc_end(d_module);
1073: END IF;
1074:
1067: x_msg_data := 'Exception in bu_pri_prj_inf_XLE : '|| SQLERRM;
1068:
1069: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data );
1070: IF (PO_LOG.d_exc) THEN
1071: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1072: PO_LOG.proc_end(d_module);
1073: END IF;
1074:
1075: END bu_pri_prj_inf_XLE;
1068:
1069: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data );
1070: IF (PO_LOG.d_exc) THEN
1071: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data );
1072: PO_LOG.proc_end(d_module);
1073: END IF;
1074:
1075: END bu_pri_prj_inf_XLE;
1076:
1618: d_proc_name CONSTANT varchar2(50) := 'competitive_info_XD';
1619: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
1620:
1621: BEGIN
1622: IF (PO_LOG.d_proc) THEN
1623: PO_LOG.proc_begin(d_module);
1624: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1625: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_perc);
1626:
1619: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
1620:
1621: BEGIN
1622: IF (PO_LOG.d_proc) THEN
1623: PO_LOG.proc_begin(d_module);
1624: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1625: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_perc);
1626:
1627: END IF;
1620:
1621: BEGIN
1622: IF (PO_LOG.d_proc) THEN
1623: PO_LOG.proc_begin(d_module);
1624: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1625: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_perc);
1626:
1627: END IF;
1628:
1621: BEGIN
1622: IF (PO_LOG.d_proc) THEN
1623: PO_LOG.proc_begin(d_module);
1624: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1625: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_perc);
1626:
1627: END IF;
1628:
1629: IF p_set_aside_stat IS NULL THEN
1765: d_proc_name CONSTANT varchar2(50) := 'competitive_info_XLE';
1766: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
1767:
1768: BEGIN
1769: IF (PO_LOG.d_proc) THEN
1770: PO_LOG.proc_begin(d_module);
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1766: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
1767:
1768: BEGIN
1769: IF (PO_LOG.d_proc) THEN
1770: PO_LOG.proc_begin(d_module);
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1767:
1768: BEGIN
1769: IF (PO_LOG.d_proc) THEN
1770: PO_LOG.proc_begin(d_module);
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1775: PO_LOG.proc_begin(d_module, 'p_size_stand', p_size_stand);
1768: BEGIN
1769: IF (PO_LOG.d_proc) THEN
1770: PO_LOG.proc_begin(d_module);
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1775: PO_LOG.proc_begin(d_module, 'p_size_stand', p_size_stand);
1776: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
1769: IF (PO_LOG.d_proc) THEN
1770: PO_LOG.proc_begin(d_module);
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1775: PO_LOG.proc_begin(d_module, 'p_size_stand', p_size_stand);
1776: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
1777:
1770: PO_LOG.proc_begin(d_module);
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1775: PO_LOG.proc_begin(d_module, 'p_size_stand', p_size_stand);
1776: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
1777:
1778: END IF;
1771: PO_LOG.proc_begin(d_module, 'p_set_aside_stat', p_set_aside_stat);
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1775: PO_LOG.proc_begin(d_module, 'p_size_stand', p_size_stand);
1776: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
1777:
1778: END IF;
1779:
1772: PO_LOG.proc_begin(d_module, 'p_set_aside_perc', p_set_aside_perc);
1773: PO_LOG.proc_begin(d_module, 'p_set_aside_type', p_set_aside_type);
1774: PO_LOG.proc_begin(d_module, 'p_naics', p_naics);
1775: PO_LOG.proc_begin(d_module, 'p_size_stand', p_size_stand);
1776: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
1777:
1778: END IF;
1779:
1780: IF p_source_item = 'SET_ASIDE' THEN
2117: l_party_id NUMBER(8);
2118:
2119:
2120: BEGIN
2121: IF (PO_LOG.d_proc) THEN
2122: PO_LOG.proc_begin(d_module);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2118:
2119:
2120: BEGIN
2121: IF (PO_LOG.d_proc) THEN
2122: PO_LOG.proc_begin(d_module);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2119:
2120: BEGIN
2121: IF (PO_LOG.d_proc) THEN
2122: PO_LOG.proc_begin(d_module);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2120: BEGIN
2121: IF (PO_LOG.d_proc) THEN
2122: PO_LOG.proc_begin(d_module);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2121: IF (PO_LOG.d_proc) THEN
2122: PO_LOG.proc_begin(d_module);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2122: PO_LOG.proc_begin(d_module);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2123: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2124: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2125: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2126: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2127: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2128: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2129: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2130: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2131: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2132: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2133: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2134: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2135: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2143: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2136: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2143: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2144: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2137: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2143: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2144: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2145: END IF;
2138: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2143: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2144: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2145: END IF;
2146:
2139: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2143: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2144: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2145: END IF;
2146:
2147:
2140: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2141: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2142: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2143: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2144: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2145: END IF;
2146:
2147:
2148: IF G_XLE_SUPPLIER_EVENT_TYPE LIKE 'ALL' THEN
2422: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
2423: l_msg_count NUMBER(6) := 0;
2424:
2425: BEGIN
2426: IF (PO_LOG.d_proc) THEN
2427: PO_LOG.proc_begin(d_module);
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2423: l_msg_count NUMBER(6) := 0;
2424:
2425: BEGIN
2426: IF (PO_LOG.d_proc) THEN
2427: PO_LOG.proc_begin(d_module);
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2424:
2425: BEGIN
2426: IF (PO_LOG.d_proc) THEN
2427: PO_LOG.proc_begin(d_module);
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2425: BEGIN
2426: IF (PO_LOG.d_proc) THEN
2427: PO_LOG.proc_begin(d_module);
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2433: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2426: IF (PO_LOG.d_proc) THEN
2427: PO_LOG.proc_begin(d_module);
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2433: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2434: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2427: PO_LOG.proc_begin(d_module);
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2433: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2434: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2435:
2428: PO_LOG.proc_begin(d_module, 'p_eft_indctr', p_eft_indctr);
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2433: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2434: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2435:
2436: END IF;
2429: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2433: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2434: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2435:
2436: END IF;
2437:
2430: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2431: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2432: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2433: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2434: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2435:
2436: END IF;
2437:
2438: x_return_status := FND_API.G_RET_STS_SUCCESS;
2512: l_address_xml_sql VARCHAR2(4000);
2513: l_addresscode VARCHAR2(100);
2514:
2515: BEGIN
2516: IF (PO_LOG.d_proc) THEN
2517: PO_LOG.proc_begin(d_module);
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2513: l_addresscode VARCHAR2(100);
2514:
2515: BEGIN
2516: IF (PO_LOG.d_proc) THEN
2517: PO_LOG.proc_begin(d_module);
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2514:
2515: BEGIN
2516: IF (PO_LOG.d_proc) THEN
2517: PO_LOG.proc_begin(d_module);
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2522: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2515: BEGIN
2516: IF (PO_LOG.d_proc) THEN
2517: PO_LOG.proc_begin(d_module);
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2522: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2523: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2516: IF (PO_LOG.d_proc) THEN
2517: PO_LOG.proc_begin(d_module);
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2522: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2523: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2524: END IF;
2517: PO_LOG.proc_begin(d_module);
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2522: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2523: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2524: END IF;
2525:
2518: PO_LOG.proc_begin(d_module, 'x_supplier_id', x_supplier_id);
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2522: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2523: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2524: END IF;
2525:
2526:
2519: PO_LOG.proc_begin(d_module, 'x_supplier_site_id', x_supplier_site_id);
2520: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2521: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_remit_xml);
2522: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2523: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2524: END IF;
2525:
2526:
2527: IF p_remit_to_addrs IS NOT NULL THEN
2607: x_msg_data := 'Exception in supplier_details_XLE';
2608: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
2609:
2610:
2611: IF (PO_LOG.d_exc) THEN
2612: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
2613: PO_LOG.proc_end(d_module);
2614: END IF;
2615:
2608: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
2609:
2610:
2611: IF (PO_LOG.d_exc) THEN
2612: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
2613: PO_LOG.proc_end(d_module);
2614: END IF;
2615:
2616: END supplier_details_XLE;
2609:
2610:
2611: IF (PO_LOG.d_exc) THEN
2612: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
2613: PO_LOG.proc_end(d_module);
2614: END IF;
2615:
2616: END supplier_details_XLE;
2617:
2691: l_clm_special_cont_type VARCHAR2(100);
2692:
2693:
2694: BEGIN
2695: IF (PO_LOG.d_proc) THEN
2696: PO_LOG.proc_begin(d_module);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2692:
2693:
2694: BEGIN
2695: IF (PO_LOG.d_proc) THEN
2696: PO_LOG.proc_begin(d_module);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2693:
2694: BEGIN
2695: IF (PO_LOG.d_proc) THEN
2696: PO_LOG.proc_begin(d_module);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2694: BEGIN
2695: IF (PO_LOG.d_proc) THEN
2696: PO_LOG.proc_begin(d_module);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2695: IF (PO_LOG.d_proc) THEN
2696: PO_LOG.proc_begin(d_module);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2696: PO_LOG.proc_begin(d_module);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2697: PO_LOG.proc_begin(d_module, 'po_header_id', po_header_id);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2698: PO_LOG.proc_begin(d_module, 'draft_id', draft_id);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2699: PO_LOG.proc_begin(d_module, 'p_doing_bsns_as', p_doing_bsns_as);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2700: PO_LOG.proc_begin(d_module, 'p_suplr_size', p_suplr_size);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2701: PO_LOG.proc_begin(d_module, 'p_phy_addrs', p_phy_addrs);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2702: PO_LOG.proc_begin(d_module, 'p_remit_to_addrs', p_remit_to_addrs);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2703: PO_LOG.proc_begin(d_module, 'p_hidd_addrs_dtls_xml', p_hidd_addrs_dtls_xml);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2704: PO_LOG.proc_begin(d_module, 'p_addrs_dtls', p_addrs_dtls);
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2705: PO_LOG.proc_begin(d_module, 'p_supplr_contact', p_supplr_contact);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2706: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2707: PO_LOG.proc_begin(d_module, 'p_phone_num', p_phone_num);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2708: PO_LOG.proc_begin(d_module, 'p_ccr_reg_status', p_ccr_reg_status);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2709: PO_LOG.proc_begin(d_module, 'p_email', p_email);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2717: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2710: PO_LOG.proc_begin(d_module, 'p_ccr_exp_reason', p_ccr_exp_reason);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2717: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2718: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2711: PO_LOG.proc_begin(d_module, 'p_duns_num', p_duns_num);
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2717: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2718: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2719: END IF;
2712: PO_LOG.proc_begin(d_module, 'p_cage_code ', p_cage_code );
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2717: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2718: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2719: END IF;
2720:
2713: PO_LOG.proc_begin(d_module, 'p_duns_4_num', p_duns_4_num);
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2717: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2718: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2719: END IF;
2720:
2721: BEGIN
2714: PO_LOG.proc_begin(d_module, 'p_tin_num', p_tin_num);
2715: PO_LOG.proc_begin(d_module, 'p_ccr_reg_idictr', p_ccr_reg_idictr);
2716: PO_LOG.proc_begin(d_module, 'p_eft_exc_resn', p_eft_exc_resn);
2717: PO_LOG.proc_begin(d_module, 'p_socio_ec_info', p_socio_ec_info);
2718: PO_LOG.proc_begin(d_module, 'p_orig_splr_name', p_orig_splr_name);
2719: END IF;
2720:
2721: BEGIN
2722: IF(draft_id IS NULL OR draft_id = -1 OR draft_id = 0) THEN
2947: x_msg_count := '1';
2948: x_msg_data := 'Exception in supplier_details_XRD';
2949: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
2950:
2951: IF (PO_LOG.d_exc) THEN
2952: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
2953: PO_LOG.proc_end(d_module);
2954: END IF;
2955:
2948: x_msg_data := 'Exception in supplier_details_XRD';
2949: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
2950:
2951: IF (PO_LOG.d_exc) THEN
2952: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
2953: PO_LOG.proc_end(d_module);
2954: END IF;
2955:
2956: END supplier_details_XRD;
2949: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
2950:
2951: IF (PO_LOG.d_exc) THEN
2952: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
2953: PO_LOG.proc_end(d_module);
2954: END IF;
2955:
2956: END supplier_details_XRD;
2957:
3020: l_functional_area VARCHAR2(100);
3021:
3022:
3023: BEGIN
3024: IF (PO_LOG.d_proc) THEN
3025: PO_LOG.proc_begin(d_module);
3026: PO_LOG.proc_begin(d_module, 'x_location', x_location);
3027: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
3028: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
3021:
3022:
3023: BEGIN
3024: IF (PO_LOG.d_proc) THEN
3025: PO_LOG.proc_begin(d_module);
3026: PO_LOG.proc_begin(d_module, 'x_location', x_location);
3027: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
3028: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
3029: END IF;
3022:
3023: BEGIN
3024: IF (PO_LOG.d_proc) THEN
3025: PO_LOG.proc_begin(d_module);
3026: PO_LOG.proc_begin(d_module, 'x_location', x_location);
3027: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
3028: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
3029: END IF;
3030:
3023: BEGIN
3024: IF (PO_LOG.d_proc) THEN
3025: PO_LOG.proc_begin(d_module);
3026: PO_LOG.proc_begin(d_module, 'x_location', x_location);
3027: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
3028: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
3029: END IF;
3030:
3031: IF x_location IS NOT NULL THEN
3024: IF (PO_LOG.d_proc) THEN
3025: PO_LOG.proc_begin(d_module);
3026: PO_LOG.proc_begin(d_module, 'x_location', x_location);
3027: PO_LOG.proc_begin(d_module, 'x_addresscode', x_addresscode);
3028: PO_LOG.proc_begin(d_module, 'x_contact_id', x_contact_id);
3029: END IF;
3030:
3031: IF x_location IS NOT NULL THEN
3032: x_addresscode := x_location;
3224:
3225:
3226: BEGIN
3227:
3228: IF (PO_LOG.d_proc) THEN
3229: PO_LOG.proc_begin(d_module);
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3225:
3226: BEGIN
3227:
3228: IF (PO_LOG.d_proc) THEN
3229: PO_LOG.proc_begin(d_module);
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3226: BEGIN
3227:
3228: IF (PO_LOG.d_proc) THEN
3229: PO_LOG.proc_begin(d_module);
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3227:
3228: IF (PO_LOG.d_proc) THEN
3229: PO_LOG.proc_begin(d_module);
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3235: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3228: IF (PO_LOG.d_proc) THEN
3229: PO_LOG.proc_begin(d_module);
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3235: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3236: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3229: PO_LOG.proc_begin(d_module);
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3235: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3236: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3237: END IF;
3230: PO_LOG.proc_begin(d_module, 'p_source_item', p_source_item);
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3235: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3236: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3237: END IF;
3238:
3231: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3235: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3236: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3237: END IF;
3238:
3239: FOR c_get_bean_name_rec IN c_get_bean_name('INSP_ADD_LOC') LOOP
3232: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3233: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3234: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3235: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3236: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3237: END IF;
3238:
3239: FOR c_get_bean_name_rec IN c_get_bean_name('INSP_ADD_LOC') LOOP
3240: IF p_source_item = c_get_bean_name_rec.Attr_Bean_Name THEN
3259: l_attr_bean_name := 'ACCP_ADDRESS_CODE';
3260: END IF;
3261: END LOOP;
3262:
3263: IF (PO_LOG.d_proc) THEN
3264: PO_LOG.proc_begin(d_module, 'l_attr_bean_name', l_attr_bean_name);
3265: END IF;
3266:
3267: IF l_attr_bean_name = 'INSP_LOCATION'
3260: END IF;
3261: END LOOP;
3262:
3263: IF (PO_LOG.d_proc) THEN
3264: PO_LOG.proc_begin(d_module, 'l_attr_bean_name', l_attr_bean_name);
3265: END IF;
3266:
3267: IF l_attr_bean_name = 'INSP_LOCATION'
3268: THEN
3387: x_msg_count := '1';
3388: x_msg_data := 'Exception in addresses_XLE';
3389:
3390: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
3391: IF (PO_LOG.d_exc) THEN
3392: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
3393: PO_LOG.proc_end(d_module);
3394: END IF;
3395:
3388: x_msg_data := 'Exception in addresses_XLE';
3389:
3390: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
3391: IF (PO_LOG.d_exc) THEN
3392: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
3393: PO_LOG.proc_end(d_module);
3394: END IF;
3395:
3396: END inspection_XLE;
3389:
3390: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name, x_msg_data||': '||SQLERRM );
3391: IF (PO_LOG.d_exc) THEN
3392: PO_LOG.proc_end(d_module,'x_msg_data' , x_msg_data ||': '|| SQLERRM );
3393: PO_LOG.proc_end(d_module);
3394: END IF;
3395:
3396: END inspection_XLE;
3397:
3436: l_addressType VARCHAR2(200);
3437:
3438: BEGIN
3439:
3440: IF (PO_LOG.d_proc) THEN
3441: PO_LOG.proc_begin(d_module);
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3437:
3438: BEGIN
3439:
3440: IF (PO_LOG.d_proc) THEN
3441: PO_LOG.proc_begin(d_module);
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3438: BEGIN
3439:
3440: IF (PO_LOG.d_proc) THEN
3441: PO_LOG.proc_begin(d_module);
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3439:
3440: IF (PO_LOG.d_proc) THEN
3441: PO_LOG.proc_begin(d_module);
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3447: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3440: IF (PO_LOG.d_proc) THEN
3441: PO_LOG.proc_begin(d_module);
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3447: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3448: PO_LOG.proc_begin(d_module, 'p_source', p_source);
3441: PO_LOG.proc_begin(d_module);
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3447: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3448: PO_LOG.proc_begin(d_module, 'p_source', p_source);
3449: END IF;
3442: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3447: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3448: PO_LOG.proc_begin(d_module, 'p_source', p_source);
3449: END IF;
3450:
3443: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3447: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3448: PO_LOG.proc_begin(d_module, 'p_source', p_source);
3449: END IF;
3450:
3451: IF p_insp_location is not null AND p_source = 'INSPECTION'
3444: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3445: PO_LOG.proc_begin(d_module, 'p_accp_location', p_accp_location);
3446: PO_LOG.proc_begin(d_module, 'p_accp_addresscode', p_accp_addresscode);
3447: PO_LOG.proc_begin(d_module, 'p_accp_addressdetails', p_accp_addressdetails);
3448: PO_LOG.proc_begin(d_module, 'p_source', p_source);
3449: END IF;
3450:
3451: IF p_insp_location is not null AND p_source = 'INSPECTION'
3452: THEN
3528: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': NO DATA FOUND' );
3529:
3530: WHEN OTHERS THEN
3531: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': '|| SQLERRM );
3532: IF (PO_LOG.d_exc) THEN
3533: PO_LOG.proc_end(d_module||': '|| SQLERRM );
3534: PO_LOG.proc_end(d_module);
3535: END IF;
3536:
3529:
3530: WHEN OTHERS THEN
3531: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': '|| SQLERRM );
3532: IF (PO_LOG.d_exc) THEN
3533: PO_LOG.proc_end(d_module||': '|| SQLERRM );
3534: PO_LOG.proc_end(d_module);
3535: END IF;
3536:
3537: END derive_insp_accp_adrs_dtls;
3530: WHEN OTHERS THEN
3531: fnd_msg_pub.Add_Exc_Msg ( d_pkg_name, d_proc_name ||': '|| SQLERRM );
3532: IF (PO_LOG.d_exc) THEN
3533: PO_LOG.proc_end(d_module||': '|| SQLERRM );
3534: PO_LOG.proc_end(d_module);
3535: END IF;
3536:
3537: END derive_insp_accp_adrs_dtls;
3538:
3556: d_module CONSTANT varchar2(100):= d_pkg_name ||'.'||d_proc_name;
3557:
3558: BEGIN
3559:
3560: IF (PO_LOG.d_proc) THEN
3561: PO_LOG.proc_begin(d_module);
3562: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3563: PO_LOG.proc_begin(d_module, 'p_insp_add_location', p_insp_add_location);
3564: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3557:
3558: BEGIN
3559:
3560: IF (PO_LOG.d_proc) THEN
3561: PO_LOG.proc_begin(d_module);
3562: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3563: PO_LOG.proc_begin(d_module, 'p_insp_add_location', p_insp_add_location);
3564: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3565: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3558: BEGIN
3559:
3560: IF (PO_LOG.d_proc) THEN
3561: PO_LOG.proc_begin(d_module);
3562: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3563: PO_LOG.proc_begin(d_module, 'p_insp_add_location', p_insp_add_location);
3564: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3565: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3566: END IF;
3559:
3560: IF (PO_LOG.d_proc) THEN
3561: PO_LOG.proc_begin(d_module);
3562: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3563: PO_LOG.proc_begin(d_module, 'p_insp_add_location', p_insp_add_location);
3564: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3565: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3566: END IF;
3567:
3560: IF (PO_LOG.d_proc) THEN
3561: PO_LOG.proc_begin(d_module);
3562: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3563: PO_LOG.proc_begin(d_module, 'p_insp_add_location', p_insp_add_location);
3564: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3565: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3566: END IF;
3567:
3568: p_accp_add_location := p_insp_add_location;
3561: PO_LOG.proc_begin(d_module);
3562: PO_LOG.proc_begin(d_module, 'p_insp_location', p_insp_location);
3563: PO_LOG.proc_begin(d_module, 'p_insp_add_location', p_insp_add_location);
3564: PO_LOG.proc_begin(d_module, 'p_insp_addresscode', p_insp_addresscode);
3565: PO_LOG.proc_begin(d_module, 'p_insp_addressdetails', p_insp_addressdetails);
3566: END IF;
3567:
3568: p_accp_add_location := p_insp_add_location;
3569: p_accp_addresscode := p_insp_addresscode;
3596: x_errorcode := '0';
3597: x_msg_count := '1';
3598: x_msg_data := 'SUCCESS';
3599:
3600: IF (PO_LOG.d_proc) THEN
3601: PO_LOG.proc_begin(d_module);
3602: PO_LOG.proc_begin(d_module, 'p_funds_info', p_funds_info);
3603: PO_LOG.proc_begin(d_module, 'p_amount', p_amount);
3604: PO_LOG.proc_begin(d_module, 'p_acceptance_status', p_acceptance_status);
3597: x_msg_count := '1';
3598: x_msg_data := 'SUCCESS';
3599:
3600: IF (PO_LOG.d_proc) THEN
3601: PO_LOG.proc_begin(d_module);
3602: PO_LOG.proc_begin(d_module, 'p_funds_info', p_funds_info);
3603: PO_LOG.proc_begin(d_module, 'p_amount', p_amount);
3604: PO_LOG.proc_begin(d_module, 'p_acceptance_status', p_acceptance_status);
3605: PO_LOG.proc_begin(d_module, 'p_remarks', p_remarks);
3598: x_msg_data := 'SUCCESS';
3599:
3600: IF (PO_LOG.d_proc) THEN
3601: PO_LOG.proc_begin(d_module);
3602: PO_LOG.proc_begin(d_module, 'p_funds_info', p_funds_info);
3603: PO_LOG.proc_begin(d_module, 'p_amount', p_amount);
3604: PO_LOG.proc_begin(d_module, 'p_acceptance_status', p_acceptance_status);
3605: PO_LOG.proc_begin(d_module, 'p_remarks', p_remarks);
3606: END IF;
3599:
3600: IF (PO_LOG.d_proc) THEN
3601: PO_LOG.proc_begin(d_module);
3602: PO_LOG.proc_begin(d_module, 'p_funds_info', p_funds_info);
3603: PO_LOG.proc_begin(d_module, 'p_amount', p_amount);
3604: PO_LOG.proc_begin(d_module, 'p_acceptance_status', p_acceptance_status);
3605: PO_LOG.proc_begin(d_module, 'p_remarks', p_remarks);
3606: END IF;
3607:
3600: IF (PO_LOG.d_proc) THEN
3601: PO_LOG.proc_begin(d_module);
3602: PO_LOG.proc_begin(d_module, 'p_funds_info', p_funds_info);
3603: PO_LOG.proc_begin(d_module, 'p_amount', p_amount);
3604: PO_LOG.proc_begin(d_module, 'p_acceptance_status', p_acceptance_status);
3605: PO_LOG.proc_begin(d_module, 'p_remarks', p_remarks);
3606: END IF;
3607:
3608: IF p_funds_info IS NOT NULL AND p_amount IS NULL THEN
3601: PO_LOG.proc_begin(d_module);
3602: PO_LOG.proc_begin(d_module, 'p_funds_info', p_funds_info);
3603: PO_LOG.proc_begin(d_module, 'p_amount', p_amount);
3604: PO_LOG.proc_begin(d_module, 'p_acceptance_status', p_acceptance_status);
3605: PO_LOG.proc_begin(d_module, 'p_remarks', p_remarks);
3606: END IF;
3607:
3608: IF p_funds_info IS NOT NULL AND p_amount IS NULL THEN
3609: x_return_status := FND_API.G_RET_STS_ERROR;
3681:
3682: END IF;
3683: END IF;
3684:
3685: IF (PO_LOG.d_proc) THEN
3686: PO_LOG.proc_end(d_module);
3687: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
3688: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
3689: END IF;
3682: END IF;
3683: END IF;
3684:
3685: IF (PO_LOG.d_proc) THEN
3686: PO_LOG.proc_end(d_module);
3687: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
3688: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
3689: END IF;
3690:
3683: END IF;
3684:
3685: IF (PO_LOG.d_proc) THEN
3686: PO_LOG.proc_end(d_module);
3687: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
3688: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
3689: END IF;
3690:
3691: EXCEPTION
3684:
3685: IF (PO_LOG.d_proc) THEN
3686: PO_LOG.proc_end(d_module);
3687: PO_LOG.proc_end(d_module, 'x_errorcode', x_errorcode);
3688: PO_LOG.proc_end(d_module, 'x_msg_data', x_msg_data);
3689: END IF;
3690:
3691: EXCEPTION
3692: WHEN OTHERS THEN