DBA Data[Home] [Help]

APPS.CSI_SYSTEMS_PVT dependencies on FND_API

Line 15: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

11: g_pkg_name CONSTANT VARCHAR2(30) := 'CSI_SYSTEMS_PVT';
12: g_file_name CONSTANT VARCHAR2(12) := 'csivsysb.pls';
13:
14: PROCEDURE validate_system_id (
15: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
16: p_validation_mode IN VARCHAR2 ,
17: p_system_id IN NUMBER ,
18: x_return_status OUT NOCOPY VARCHAR2 ,
19: x_msg_count OUT NOCOPY NUMBER ,

Line 25: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

21: );
22:
23:
24: PROCEDURE validate_customer_id (
25: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
26: p_validation_mode IN VARCHAR2 ,
27: p_customer_id IN NUMBER ,
28: x_return_status OUT NOCOPY VARCHAR2 ,
29: x_msg_count OUT NOCOPY NUMBER ,

Line 35: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

31: );
32:
33:
34: PROCEDURE validate_system_type_code (
35: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
36: p_validation_mode IN VARCHAR2 ,
37: p_system_type_code IN VARCHAR2 ,
38: x_return_status OUT NOCOPY VARCHAR2 ,
39: x_msg_count OUT NOCOPY NUMBER ,

Line 46: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

42:
43:
44:
45: PROCEDURE validate_parent_system_id (
46: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
47: p_validation_mode IN VARCHAR2 ,
48: p_parent_system_id IN NUMBER ,
49: x_return_status OUT NOCOPY VARCHAR2 ,
50: x_msg_count OUT NOCOPY NUMBER ,

Line 56: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

52: );
53:
54:
55: PROCEDURE validate_ship_to_contact_id (
56: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
57: p_validation_mode IN VARCHAR2 ,
58: p_ship_to_contact_id IN NUMBER ,
59: x_return_status OUT NOCOPY VARCHAR2 ,
60: x_msg_count OUT NOCOPY NUMBER ,

Line 66: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

62: );
63:
64:
65: PROCEDURE validate_bill_to_contact_id (
66: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
67: p_validation_mode IN VARCHAR2 ,
68: p_bill_to_contact_id IN NUMBER ,
69: x_return_status OUT NOCOPY VARCHAR2 ,
70: x_msg_count OUT NOCOPY NUMBER ,

Line 75: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

71: x_msg_data OUT NOCOPY VARCHAR2
72: );
73:
74: PROCEDURE validate_technical_contact_id (
75: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
76: p_validation_mode IN VARCHAR2 ,
77: p_technical_contact_id IN NUMBER ,
78: x_return_status OUT NOCOPY VARCHAR2 ,
79: x_msg_count OUT NOCOPY NUMBER ,

Line 85: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

81: );
82:
83:
84: PROCEDURE validate_srv_admin_cont_id (
85: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
86: p_validation_mode IN VARCHAR2 ,
87: p_service_admin_contact_id IN NUMBER ,
88: x_return_status OUT NOCOPY VARCHAR2 ,
89: x_msg_count OUT NOCOPY NUMBER ,

Line 95: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

91: );
92:
93:
94: PROCEDURE validate_ship_to_site_use_id (
95: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
96: p_validation_mode IN VARCHAR2 ,
97: p_ship_to_site_use_id IN NUMBER ,
98: x_return_status OUT NOCOPY VARCHAR2 ,
99: x_msg_count OUT NOCOPY NUMBER ,

Line 105: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

101: );
102:
103:
104: PROCEDURE validate_bill_to_site_use_id (
105: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
106: p_validation_mode IN VARCHAR2 ,
107: p_bill_to_site_use_id IN NUMBER ,
108: x_return_status OUT NOCOPY VARCHAR2 ,
109: x_msg_count OUT NOCOPY NUMBER ,

Line 115: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

111: );
112:
113:
114: PROCEDURE validate_install_site_use_id (
115: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
116: p_validation_mode IN VARCHAR2 ,
117: p_install_site_use_id IN NUMBER ,
118: x_return_status OUT NOCOPY VARCHAR2 ,
119: x_msg_count OUT NOCOPY NUMBER ,

Line 124: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

120: x_msg_data OUT NOCOPY VARCHAR2
121: );
122:
123: PROCEDURE validate_start_end_date (
124: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
125: p_validation_mode IN VARCHAR2 ,
126: p_system_id IN NUMBER ,
127: p_start_date IN DATE ,
128: p_end_date IN DATE ,

Line 135: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

131: x_msg_data OUT NOCOPY VARCHAR2
132: );
133:
134: PROCEDURE validate_object_version_num (
135: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
136: p_validation_mode IN VARCHAR2 ,
137: p_object_version_number IN NUMBER ,
138: x_return_status OUT NOCOPY VARCHAR2 ,
139: x_msg_count OUT NOCOPY NUMBER ,

Line 144: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

140: x_msg_data OUT NOCOPY VARCHAR2
141: );
142:
143: PROCEDURE validate_name (
144: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
145: p_validation_mode IN VARCHAR2 ,
146: p_name IN VARCHAR2 ,
147: x_return_status OUT NOCOPY VARCHAR2 ,
148: x_msg_count OUT NOCOPY NUMBER ,

Line 153: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

149: x_msg_data OUT NOCOPY VARCHAR2
150: );
151:
152: PROCEDURE validate_auto_sys_id (
153: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
154: p_validation_mode IN VARCHAR2 ,
155: p_auto_sys_id IN NUMBER ,
156: x_return_status OUT NOCOPY VARCHAR2 ,
157: x_msg_count OUT NOCOPY NUMBER ,

Line 258: IF( (p_system_query_rec.system_id IS NOT NULL) AND (p_system_query_rec.system_id <> fnd_api.g_miss_num) )

254: BEGIN
255:
256:
257:
258: IF( (p_system_query_rec.system_id IS NOT NULL) AND (p_system_query_rec.system_id <> fnd_api.g_miss_num) )
259: THEN
260: dbms_sql.bind_variable(p_cur_get_systems, 'system_id', p_system_query_rec.system_id);
261: END IF;
262:

Line 263: IF( (p_system_query_rec.system_type_code IS NOT NULL) AND (p_system_query_rec.system_type_code <> fnd_api.g_miss_char) )

259: THEN
260: dbms_sql.bind_variable(p_cur_get_systems, 'system_id', p_system_query_rec.system_id);
261: END IF;
262:
263: IF( (p_system_query_rec.system_type_code IS NOT NULL) AND (p_system_query_rec.system_type_code <> fnd_api.g_miss_char) )
264: THEN
265: dbms_sql.bind_variable(p_cur_get_systems, 'system_type_code', p_system_query_rec.system_type_code);
266: END IF;
267:

Line 268: IF( (p_system_query_rec.system_number IS NOT NULL) AND (p_system_query_rec.system_number <> fnd_api.g_miss_char) )

264: THEN
265: dbms_sql.bind_variable(p_cur_get_systems, 'system_type_code', p_system_query_rec.system_type_code);
266: END IF;
267:
268: IF( (p_system_query_rec.system_number IS NOT NULL) AND (p_system_query_rec.system_number <> fnd_api.g_miss_char) )
269: THEN
270: dbms_sql.bind_variable(p_cur_get_systems, 'system_number', p_system_query_rec.system_number);
271: END IF;
272:

Line 318: IF( (p_system_query_rec.system_id IS NOT NULL) AND (p_system_query_rec.system_id <> fnd_api.g_miss_num) )

314:
315: BEGIN
316:
317:
318: IF( (p_system_query_rec.system_id IS NOT NULL) AND (p_system_query_rec.system_id <> fnd_api.g_miss_num) )
319: THEN
320: IF(x_systems_where IS NULL) THEN
321: x_systems_where := ' WHERE ';
322: ELSE

Line 329: IF( (p_system_query_rec.system_type_code IS NOT NULL) AND (p_system_query_rec.system_type_code <> fnd_api.g_miss_char) )

325: x_systems_where := x_systems_where || 'system_id = :system_id';
326: END IF;
327:
328:
329: IF( (p_system_query_rec.system_type_code IS NOT NULL) AND (p_system_query_rec.system_type_code <> fnd_api.g_miss_char) )
330: THEN
331:
332: i:=0;
333: -- check IF item value contains '%' wildcard

Line 362: IF( (p_system_query_rec.system_number IS NOT NULL) AND (p_system_query_rec.system_number <> fnd_api.g_miss_char) )

358: END IF;
359: x_systems_where := x_systems_where || 'system_type_code ' || l_operator || ' :system_type_code';
360: END IF;
361:
362: IF( (p_system_query_rec.system_number IS NOT NULL) AND (p_system_query_rec.system_number <> fnd_api.g_miss_char) )
363: THEN
364:
365: i:=0;
366:

Line 412: l_f_date VARCHAR2(25) := fnd_api.g_miss_char;

408: p_time_stamp IN DATE,
409: from_time_stamp OUT NOCOPY VARCHAR2,
410: to_time_stamp OUT NOCOPY VARCHAR2)
411: IS
412: l_f_date VARCHAR2(25) := fnd_api.g_miss_char;
413: l_t_date VARCHAR2(25) := fnd_api.g_miss_char;
414: BEGIN
415: SELECT max(min(to_char(a.transaction_date,'dd-mon-rr hh24:mi:ss')))
416: INTO l_f_date

Line 413: l_t_date VARCHAR2(25) := fnd_api.g_miss_char;

409: from_time_stamp OUT NOCOPY VARCHAR2,
410: to_time_stamp OUT NOCOPY VARCHAR2)
411: IS
412: l_f_date VARCHAR2(25) := fnd_api.g_miss_char;
413: l_t_date VARCHAR2(25) := fnd_api.g_miss_char;
414: BEGIN
415: SELECT max(min(to_char(a.transaction_date,'dd-mon-rr hh24:mi:ss')))
416: INTO l_f_date
417: FROM csi_transactions a, csi_systems_b b,csi_systems_h c

Line 535: l_f_time_stamp VARCHAR2(25) :=fnd_api.g_miss_char;

531: AND a.transaction_date BETWEEN to_date(p_f_time_stamp,'dd/mm/yyyy hh24:mi:ss')
532: AND to_date(p_t_time_stamp,'dd/mm/yyyy hh24:mi:ss')
533: ORDER BY to_char(a.transaction_date,'dd/mm/yyyy hh24:mi:ss') ;
534:
535: l_f_time_stamp VARCHAR2(25) :=fnd_api.g_miss_char;
536: l_t_time_stamp VARCHAR2(25) :=fnd_api.g_miss_char;
537: l_to_date VARCHAR2(25);
538: BEGIN
539: from_to_tran(p_system_id => p_sys_rec.system_id,

Line 536: l_t_time_stamp VARCHAR2(25) :=fnd_api.g_miss_char;

532: AND to_date(p_t_time_stamp,'dd/mm/yyyy hh24:mi:ss')
533: ORDER BY to_char(a.transaction_date,'dd/mm/yyyy hh24:mi:ss') ;
534:
535: l_f_time_stamp VARCHAR2(25) :=fnd_api.g_miss_char;
536: l_t_time_stamp VARCHAR2(25) :=fnd_api.g_miss_char;
537: l_to_date VARCHAR2(25);
538: BEGIN
539: from_to_tran(p_system_id => p_sys_rec.system_id,
540: p_time_stamp => p_time_stamp,

Line 762: IF p_new_rec.customer_id = fnd_api.g_miss_num THEN

758: p_new_rec.operating_unit_id := get_csr.old_operating_unit_id;
759: END IF;
760:
761: END LOOP;
762: IF p_new_rec.customer_id = fnd_api.g_miss_num THEN
763: p_new_rec.customer_id := NULL;
764: END IF;
765:
766: IF p_new_rec.system_type_code = fnd_api.g_miss_char THEN

Line 766: IF p_new_rec.system_type_code = fnd_api.g_miss_char THEN

762: IF p_new_rec.customer_id = fnd_api.g_miss_num THEN
763: p_new_rec.customer_id := NULL;
764: END IF;
765:
766: IF p_new_rec.system_type_code = fnd_api.g_miss_char THEN
767: p_new_rec.system_type_code := NULL;
768: END IF;
769:
770: IF p_new_rec.system_number = fnd_api.g_miss_char THEN

Line 770: IF p_new_rec.system_number = fnd_api.g_miss_char THEN

766: IF p_new_rec.system_type_code = fnd_api.g_miss_char THEN
767: p_new_rec.system_type_code := NULL;
768: END IF;
769:
770: IF p_new_rec.system_number = fnd_api.g_miss_char THEN
771: p_new_rec.system_number := NULL;
772: END IF;
773:
774: IF p_new_rec.parent_system_id = fnd_api.g_miss_num THEN

Line 774: IF p_new_rec.parent_system_id = fnd_api.g_miss_num THEN

770: IF p_new_rec.system_number = fnd_api.g_miss_char THEN
771: p_new_rec.system_number := NULL;
772: END IF;
773:
774: IF p_new_rec.parent_system_id = fnd_api.g_miss_num THEN
775: p_new_rec.parent_system_id := NULL;
776: END IF;
777:
778: IF p_new_rec.ship_to_contact_id = fnd_api.g_miss_num THEN

Line 778: IF p_new_rec.ship_to_contact_id = fnd_api.g_miss_num THEN

774: IF p_new_rec.parent_system_id = fnd_api.g_miss_num THEN
775: p_new_rec.parent_system_id := NULL;
776: END IF;
777:
778: IF p_new_rec.ship_to_contact_id = fnd_api.g_miss_num THEN
779: p_new_rec.ship_to_contact_id := NULL;
780: END IF;
781:
782: IF p_new_rec.bill_to_contact_id = fnd_api.g_miss_num THEN

Line 782: IF p_new_rec.bill_to_contact_id = fnd_api.g_miss_num THEN

778: IF p_new_rec.ship_to_contact_id = fnd_api.g_miss_num THEN
779: p_new_rec.ship_to_contact_id := NULL;
780: END IF;
781:
782: IF p_new_rec.bill_to_contact_id = fnd_api.g_miss_num THEN
783: p_new_rec.bill_to_contact_id := NULL;
784: END IF;
785:
786: IF p_new_rec.technical_contact_id = fnd_api.g_miss_num THEN

Line 786: IF p_new_rec.technical_contact_id = fnd_api.g_miss_num THEN

782: IF p_new_rec.bill_to_contact_id = fnd_api.g_miss_num THEN
783: p_new_rec.bill_to_contact_id := NULL;
784: END IF;
785:
786: IF p_new_rec.technical_contact_id = fnd_api.g_miss_num THEN
787: p_new_rec.technical_contact_id := NULL;
788: END IF;
789:
790: IF p_new_rec.service_admin_contact_id = fnd_api.g_miss_num THEN

Line 790: IF p_new_rec.service_admin_contact_id = fnd_api.g_miss_num THEN

786: IF p_new_rec.technical_contact_id = fnd_api.g_miss_num THEN
787: p_new_rec.technical_contact_id := NULL;
788: END IF;
789:
790: IF p_new_rec.service_admin_contact_id = fnd_api.g_miss_num THEN
791: p_new_rec.service_admin_contact_id := NULL;
792: END IF;
793:
794: IF p_new_rec.ship_to_site_use_id = fnd_api.g_miss_num THEN

Line 794: IF p_new_rec.ship_to_site_use_id = fnd_api.g_miss_num THEN

790: IF p_new_rec.service_admin_contact_id = fnd_api.g_miss_num THEN
791: p_new_rec.service_admin_contact_id := NULL;
792: END IF;
793:
794: IF p_new_rec.ship_to_site_use_id = fnd_api.g_miss_num THEN
795: p_new_rec.ship_to_site_use_id := NULL;
796: END IF;
797:
798: IF p_new_rec.bill_to_site_use_id = fnd_api.g_miss_num THEN

Line 798: IF p_new_rec.bill_to_site_use_id = fnd_api.g_miss_num THEN

794: IF p_new_rec.ship_to_site_use_id = fnd_api.g_miss_num THEN
795: p_new_rec.ship_to_site_use_id := NULL;
796: END IF;
797:
798: IF p_new_rec.bill_to_site_use_id = fnd_api.g_miss_num THEN
799: p_new_rec.bill_to_site_use_id := NULL;
800: END IF;
801:
802: IF p_new_rec.install_site_use_id = fnd_api.g_miss_num THEN

Line 802: IF p_new_rec.install_site_use_id = fnd_api.g_miss_num THEN

798: IF p_new_rec.bill_to_site_use_id = fnd_api.g_miss_num THEN
799: p_new_rec.bill_to_site_use_id := NULL;
800: END IF;
801:
802: IF p_new_rec.install_site_use_id = fnd_api.g_miss_num THEN
803: p_new_rec.install_site_use_id := NULL;
804: END IF;
805:
806: IF p_new_rec.coterminate_day_month = fnd_api.g_miss_char THEN

Line 806: IF p_new_rec.coterminate_day_month = fnd_api.g_miss_char THEN

802: IF p_new_rec.install_site_use_id = fnd_api.g_miss_num THEN
803: p_new_rec.install_site_use_id := NULL;
804: END IF;
805:
806: IF p_new_rec.coterminate_day_month = fnd_api.g_miss_char THEN
807: p_new_rec.coterminate_day_month := NULL;
808: END IF;
809:
810: IF p_new_rec.autocreated_from_system_id = fnd_api.g_miss_num THEN

Line 810: IF p_new_rec.autocreated_from_system_id = fnd_api.g_miss_num THEN

806: IF p_new_rec.coterminate_day_month = fnd_api.g_miss_char THEN
807: p_new_rec.coterminate_day_month := NULL;
808: END IF;
809:
810: IF p_new_rec.autocreated_from_system_id = fnd_api.g_miss_num THEN
811: p_new_rec.autocreated_from_system_id := NULL;
812: END IF;
813:
814: IF p_new_rec.config_system_type = fnd_api.g_miss_char THEN

Line 814: IF p_new_rec.config_system_type = fnd_api.g_miss_char THEN

810: IF p_new_rec.autocreated_from_system_id = fnd_api.g_miss_num THEN
811: p_new_rec.autocreated_from_system_id := NULL;
812: END IF;
813:
814: IF p_new_rec.config_system_type = fnd_api.g_miss_char THEN
815: p_new_rec.config_system_type := NULL;
816: END IF;
817:
818: IF p_new_rec.start_date_active = fnd_api.g_miss_date THEN

Line 818: IF p_new_rec.start_date_active = fnd_api.g_miss_date THEN

814: IF p_new_rec.config_system_type = fnd_api.g_miss_char THEN
815: p_new_rec.config_system_type := NULL;
816: END IF;
817:
818: IF p_new_rec.start_date_active = fnd_api.g_miss_date THEN
819: p_new_rec.start_date_active := NULL;
820: END IF;
821:
822: IF p_new_rec.end_date_active = fnd_api.g_miss_date THEN

Line 822: IF p_new_rec.end_date_active = fnd_api.g_miss_date THEN

818: IF p_new_rec.start_date_active = fnd_api.g_miss_date THEN
819: p_new_rec.start_date_active := NULL;
820: END IF;
821:
822: IF p_new_rec.end_date_active = fnd_api.g_miss_date THEN
823: p_new_rec.end_date_active := NULL;
824: END IF;
825:
826: IF p_new_rec.context = fnd_api.g_miss_char THEN

Line 826: IF p_new_rec.context = fnd_api.g_miss_char THEN

822: IF p_new_rec.end_date_active = fnd_api.g_miss_date THEN
823: p_new_rec.end_date_active := NULL;
824: END IF;
825:
826: IF p_new_rec.context = fnd_api.g_miss_char THEN
827: p_new_rec.context := NULL;
828: END IF;
829:
830: IF p_new_rec.attribute1 = fnd_api.g_miss_char THEN

Line 830: IF p_new_rec.attribute1 = fnd_api.g_miss_char THEN

826: IF p_new_rec.context = fnd_api.g_miss_char THEN
827: p_new_rec.context := NULL;
828: END IF;
829:
830: IF p_new_rec.attribute1 = fnd_api.g_miss_char THEN
831: p_new_rec.attribute1 := NULL;
832: END IF;
833:
834: IF p_new_rec.attribute2 = fnd_api.g_miss_char THEN

Line 834: IF p_new_rec.attribute2 = fnd_api.g_miss_char THEN

830: IF p_new_rec.attribute1 = fnd_api.g_miss_char THEN
831: p_new_rec.attribute1 := NULL;
832: END IF;
833:
834: IF p_new_rec.attribute2 = fnd_api.g_miss_char THEN
835: p_new_rec.attribute2 := NULL;
836: END IF;
837:
838: IF p_new_rec.attribute3 = fnd_api.g_miss_char THEN

Line 838: IF p_new_rec.attribute3 = fnd_api.g_miss_char THEN

834: IF p_new_rec.attribute2 = fnd_api.g_miss_char THEN
835: p_new_rec.attribute2 := NULL;
836: END IF;
837:
838: IF p_new_rec.attribute3 = fnd_api.g_miss_char THEN
839: p_new_rec.attribute3 := NULL;
840: END IF;
841:
842: IF p_new_rec.attribute4 = fnd_api.g_miss_char THEN

Line 842: IF p_new_rec.attribute4 = fnd_api.g_miss_char THEN

838: IF p_new_rec.attribute3 = fnd_api.g_miss_char THEN
839: p_new_rec.attribute3 := NULL;
840: END IF;
841:
842: IF p_new_rec.attribute4 = fnd_api.g_miss_char THEN
843: p_new_rec.attribute4 := NULL;
844: END IF;
845:
846: IF p_new_rec.attribute5 = fnd_api.g_miss_char THEN

Line 846: IF p_new_rec.attribute5 = fnd_api.g_miss_char THEN

842: IF p_new_rec.attribute4 = fnd_api.g_miss_char THEN
843: p_new_rec.attribute4 := NULL;
844: END IF;
845:
846: IF p_new_rec.attribute5 = fnd_api.g_miss_char THEN
847: p_new_rec.attribute5 := NULL;
848: END IF;
849:
850: IF p_new_rec.attribute6 = fnd_api.g_miss_char THEN

Line 850: IF p_new_rec.attribute6 = fnd_api.g_miss_char THEN

846: IF p_new_rec.attribute5 = fnd_api.g_miss_char THEN
847: p_new_rec.attribute5 := NULL;
848: END IF;
849:
850: IF p_new_rec.attribute6 = fnd_api.g_miss_char THEN
851: p_new_rec.attribute6 := NULL;
852: END IF;
853:
854: IF p_new_rec.attribute7 =fnd_api.g_miss_char THEN

Line 854: IF p_new_rec.attribute7 =fnd_api.g_miss_char THEN

850: IF p_new_rec.attribute6 = fnd_api.g_miss_char THEN
851: p_new_rec.attribute6 := NULL;
852: END IF;
853:
854: IF p_new_rec.attribute7 =fnd_api.g_miss_char THEN
855: p_new_rec.attribute7 := NULL;
856: END IF;
857:
858: IF p_new_rec.attribute8 = fnd_api.g_miss_char THEN

Line 858: IF p_new_rec.attribute8 = fnd_api.g_miss_char THEN

854: IF p_new_rec.attribute7 =fnd_api.g_miss_char THEN
855: p_new_rec.attribute7 := NULL;
856: END IF;
857:
858: IF p_new_rec.attribute8 = fnd_api.g_miss_char THEN
859: p_new_rec.attribute8 := NULL;
860: END IF;
861:
862: IF p_new_rec.attribute9 = fnd_api.g_miss_char THEN

Line 862: IF p_new_rec.attribute9 = fnd_api.g_miss_char THEN

858: IF p_new_rec.attribute8 = fnd_api.g_miss_char THEN
859: p_new_rec.attribute8 := NULL;
860: END IF;
861:
862: IF p_new_rec.attribute9 = fnd_api.g_miss_char THEN
863: p_new_rec.attribute9 := NULL;
864: END IF;
865:
866: IF p_new_rec.attribute10 = fnd_api.g_miss_char THEN

Line 866: IF p_new_rec.attribute10 = fnd_api.g_miss_char THEN

862: IF p_new_rec.attribute9 = fnd_api.g_miss_char THEN
863: p_new_rec.attribute9 := NULL;
864: END IF;
865:
866: IF p_new_rec.attribute10 = fnd_api.g_miss_char THEN
867: p_new_rec.attribute10 := NULL;
868: END IF;
869:
870: IF p_new_rec.attribute11 = fnd_api.g_miss_char THEN

Line 870: IF p_new_rec.attribute11 = fnd_api.g_miss_char THEN

866: IF p_new_rec.attribute10 = fnd_api.g_miss_char THEN
867: p_new_rec.attribute10 := NULL;
868: END IF;
869:
870: IF p_new_rec.attribute11 = fnd_api.g_miss_char THEN
871: p_new_rec.attribute11 := NULL;
872: END IF;
873:
874: IF p_new_rec.attribute12 = fnd_api.g_miss_char THEN

Line 874: IF p_new_rec.attribute12 = fnd_api.g_miss_char THEN

870: IF p_new_rec.attribute11 = fnd_api.g_miss_char THEN
871: p_new_rec.attribute11 := NULL;
872: END IF;
873:
874: IF p_new_rec.attribute12 = fnd_api.g_miss_char THEN
875: p_new_rec.attribute12 := NULL;
876: END IF;
877:
878: IF p_new_rec.attribute13 = fnd_api.g_miss_char THEN

Line 878: IF p_new_rec.attribute13 = fnd_api.g_miss_char THEN

874: IF p_new_rec.attribute12 = fnd_api.g_miss_char THEN
875: p_new_rec.attribute12 := NULL;
876: END IF;
877:
878: IF p_new_rec.attribute13 = fnd_api.g_miss_char THEN
879: p_new_rec.attribute13 := NULL;
880: END IF;
881:
882: IF p_new_rec.attribute14 =fnd_api.g_miss_char THEN

Line 882: IF p_new_rec.attribute14 =fnd_api.g_miss_char THEN

878: IF p_new_rec.attribute13 = fnd_api.g_miss_char THEN
879: p_new_rec.attribute13 := NULL;
880: END IF;
881:
882: IF p_new_rec.attribute14 =fnd_api.g_miss_char THEN
883: p_new_rec.attribute14 := NULL;
884: END IF;
885:
886: IF p_new_rec.attribute15 = fnd_api.g_miss_char THEN

Line 886: IF p_new_rec.attribute15 = fnd_api.g_miss_char THEN

882: IF p_new_rec.attribute14 =fnd_api.g_miss_char THEN
883: p_new_rec.attribute14 := NULL;
884: END IF;
885:
886: IF p_new_rec.attribute15 = fnd_api.g_miss_char THEN
887: p_new_rec.attribute15 := NULL;
888: END IF;
889:
890: IF p_new_rec.operating_unit_id = fnd_api.g_miss_num THEN

Line 890: IF p_new_rec.operating_unit_id = fnd_api.g_miss_num THEN

886: IF p_new_rec.attribute15 = fnd_api.g_miss_char THEN
887: p_new_rec.attribute15 := NULL;
888: END IF;
889:
890: IF p_new_rec.operating_unit_id = fnd_api.g_miss_num THEN
891: p_new_rec.operating_unit_id := NULL;
892: END IF;
893:
894: p_flag :='ADD';

Line 926: l_return_tot_count VARCHAR2(1) := fnd_api.g_false;

922: l_cur_get_systems NUMBER;
923: l_select_cl VARCHAR2(2000) := '';
924: l_def_systems_rec csi_datastructures_pub.system_rec;
925: l_ignore NUMBER;
926: l_return_tot_count VARCHAR2(1) := fnd_api.g_false;
927: l_returned_rec_count NUMBER := 0;
928: l_sys_rec csi_datastructures_pub.system_rec;
929: l_tot_rec_count NUMBER := 0;
930: l_start_rec_prt NUMBER :=1;

Line 946: IF NOT fnd_api.compatible_api_call ( l_api_version,

942: -- standard start of api savepoint
943: -- SAVEPOINT get_systems_pvt;
944:
945: -- standard call to check for call compatibility.
946: IF NOT fnd_api.compatible_api_call ( l_api_version,
947: p_api_version,
948: l_api_name,
949: g_pkg_name)
950: THEN

Line 951: RAISE fnd_api.g_exc_unexpected_error;

947: p_api_version,
948: l_api_name,
949: g_pkg_name)
950: THEN
951: RAISE fnd_api.g_exc_unexpected_error;
952: END IF;
953:
954:
955: -- initialize message list if p_init_msg_list is set to true.

Line 956: IF fnd_api.to_boolean( p_init_msg_list )

952: END IF;
953:
954:
955: -- initialize message list if p_init_msg_list is set to true.
956: IF fnd_api.to_boolean( p_init_msg_list )
957: THEN
958: fnd_msg_pub.initialize;
959: END IF;
960:

Line 965: x_return_status := fnd_api.g_ret_sts_success;

961:
962:
963:
964: -- initialize api return status to success
965: x_return_status := fnd_api.g_ret_sts_success;
966:
967: l_debug_level:=fnd_profile.value('CSI_DEBUG_LEVEL');
968: IF (l_debug_level > 0) THEN
969: csi_gen_utility_pvt.put_line( 'get_system');

Line 985: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))

981: csi_gen_utility_pvt.dump_sys_query_rec(p_system_query_rec);
982: END IF;
983:
984: IF
985: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))
986: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))
987: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))
988: )
989: THEN

Line 986: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))

982: END IF;
983:
984: IF
985: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))
986: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))
987: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))
988: )
989: THEN
990: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');

Line 987: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))

983:
984: IF
985: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))
986: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))
987: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))
988: )
989: THEN
990: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');
991: fnd_msg_pub.add;

Line 992: x_return_status := fnd_api.g_ret_sts_error;

988: )
989: THEN
990: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');
991: fnd_msg_pub.add;
992: x_return_status := fnd_api.g_ret_sts_error;
993: RAISE fnd_api.g_exc_error;
994: END IF;
995:
996: gen_select(l_crit_systems_rec,l_select_cl);

Line 993: RAISE fnd_api.g_exc_error;

989: THEN
990: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');
991: fnd_msg_pub.add;
992: x_return_status := fnd_api.g_ret_sts_error;
993: RAISE fnd_api.g_exc_error;
994: END IF;
995:
996: gen_select(l_crit_systems_rec,l_select_cl);
997:

Line 1029: IF((dbms_sql.fetch_rows(l_cur_get_systems)>0) AND ( (l_returned_rec_count

1025: NULL;
1026: END;
1027: --
1028: LOOP
1029: IF((dbms_sql.fetch_rows(l_cur_get_systems)>0) AND ( (l_returned_rec_count 1030: THEN
1031:
1032: get_column_values(l_cur_get_systems, l_sys_rec);
1033:

Line 1039: IF ((p_time_stamp IS NOT NULL) AND (p_time_stamp <> FND_API.G_MISS_DATE))

1035:
1036: IF (l_returned_rec_count < l_rec_requested) THEN
1037: l_returned_rec_count := l_returned_rec_count + 1;
1038:
1039: IF ((p_time_stamp IS NOT NULL) AND (p_time_stamp <> FND_API.G_MISS_DATE))
1040: THEN
1041: IF ((l_last_purge_date IS NOT NULL) AND (p_time_stamp <= l_last_purge_date))
1042: THEN
1043: csi_gen_utility_pvt.put_line('Warning! History for this entity has already been purged for the datetime stamp passed. ' ||

Line 1091: WHEN fnd_api.g_exc_error THEN

1087: ( p_count => x_msg_count,
1088: p_data => x_msg_data
1089: );
1090: EXCEPTION
1091: WHEN fnd_api.g_exc_error THEN
1092: -- ROLLBACK TO get_systems_pvt;
1093: x_return_status := fnd_api.g_ret_sts_error ;
1094: fnd_msg_pub.count_and_get
1095: (p_count => x_msg_count ,

Line 1093: x_return_status := fnd_api.g_ret_sts_error ;

1089: );
1090: EXCEPTION
1091: WHEN fnd_api.g_exc_error THEN
1092: -- ROLLBACK TO get_systems_pvt;
1093: x_return_status := fnd_api.g_ret_sts_error ;
1094: fnd_msg_pub.count_and_get
1095: (p_count => x_msg_count ,
1096: p_data => x_msg_data
1097: );

Line 1099: WHEN fnd_api.g_exc_unexpected_error THEN

1095: (p_count => x_msg_count ,
1096: p_data => x_msg_data
1097: );
1098:
1099: WHEN fnd_api.g_exc_unexpected_error THEN
1100: -- ROLLBACK TO get_systems_pvt;
1101: x_return_status := fnd_api.g_ret_sts_unexp_error ;
1102: fnd_msg_pub.count_and_get
1103: (p_count => x_msg_count ,

Line 1101: x_return_status := fnd_api.g_ret_sts_unexp_error ;

1097: );
1098:
1099: WHEN fnd_api.g_exc_unexpected_error THEN
1100: -- ROLLBACK TO get_systems_pvt;
1101: x_return_status := fnd_api.g_ret_sts_unexp_error ;
1102: fnd_msg_pub.count_and_get
1103: (p_count => x_msg_count ,
1104: p_data => x_msg_data
1105: );

Line 1109: x_return_status := fnd_api.g_ret_sts_unexp_error ;

1105: );
1106:
1107: WHEN OTHERS THEN
1108: -- ROLLBACK TO get_systems_pvt;
1109: x_return_status := fnd_api.g_ret_sts_unexp_error ;
1110: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1111: fnd_msg_pub.add_exc_msg(g_pkg_name ,l_api_name);
1112: END IF;
1113: fnd_msg_pub.count_and_get

Line 1145: x_return_status := fnd_api.g_ret_sts_success;

1141: AND (p_System_id IS NULL OR
1142: System_id <> p_System_id);
1143: l_dummy VARCHAR2(1);
1144: BEGIN
1145: x_return_status := fnd_api.g_ret_sts_success;
1146: OPEN dup_cur;
1147: FETCH dup_cur INTO l_dummy;
1148: IF (dup_cur%FOUND) THEN
1149: FND_MESSAGE.SET_NAME('CSI', 'CSI_SYSTEM_DUP_NAME');

Line 1151: x_return_status := fnd_api.g_ret_sts_error;

1147: FETCH dup_cur INTO l_dummy;
1148: IF (dup_cur%FOUND) THEN
1149: FND_MESSAGE.SET_NAME('CSI', 'CSI_SYSTEM_DUP_NAME');
1150: fnd_msg_pub.add;
1151: x_return_status := fnd_api.g_ret_sts_error;
1152: END IF;
1153:
1154: CLOSE dup_cur;
1155:

Line 1192: x_return_status := fnd_api.g_ret_sts_success;

1188: --
1189: -- check to make sure that parent system exists and it doesn't have
1190: -- a parent of its own
1191: --
1192: x_return_status := fnd_api.g_ret_sts_success;
1193:
1194: IF x_system_id <> x_parent_system_id THEN
1195: OPEN par_chld_csr;
1196: FETCH par_chld_csr INTO l_dummy;

Line 1201: x_return_status := fnd_api.g_ret_sts_error;

1197: IF (par_chld_csr%found) THEN
1198: --CLOSE par_chld_csr;
1199: fnd_message.set_name('CSI','CSI_CHILD_PARENT_REL_LOOP');
1200: fnd_msg_pub.add;
1201: x_return_status := fnd_api.g_ret_sts_error;
1202: END IF;
1203: CLOSE par_chld_csr;
1204:
1205: ELSE

Line 1208: x_return_status := fnd_api.g_ret_sts_error;

1204:
1205: ELSE
1206: fnd_message.set_name('CSI', 'CSI_PARENT_CHILD_INVALID');
1207: fnd_msg_pub.add;
1208: x_return_status := fnd_api.g_ret_sts_error;
1209: END IF;
1210:
1211: END check_parent_child_constraint;
1212:

Line 1238: x_return_status := fnd_api.g_ret_sts_success;

1234: l_sys_hist_csr sys_hist_csr%ROWTYPE;
1235: l_sys_hist_id NUMBER;
1236:
1237: BEGIN
1238: x_return_status := fnd_api.g_ret_sts_success;
1239:
1240: IF csi_datastructures_pub.g_install_param_rec.fetch_flag IS NULL THEN
1241: csi_gen_utility_pvt.populate_install_param_rec;
1242: END IF;

Line 1249: RAISE FND_API.G_EXC_ERROR;

1245: --
1246: IF l_full_dump IS NULL THEN
1247: FND_MESSAGE.SET_NAME('CSI','CSI_API_GET_FULL_DUMP_FAILED');
1248: FND_MSG_PUB.ADD;
1249: RAISE FND_API.G_EXC_ERROR;
1250: END IF;
1251:
1252: IF p_flag = 'EXPIRE' THEN
1253: l_new_systems_rec.end_date_active := p_sysdate;

Line 1272: p_system_id => fnd_api.g_miss_num,

1268: IF l_sys_hist_csr.full_dump_flag = 'Y'
1269: THEN
1270: csi_systems_h_pkg.update_row(
1271: p_system_history_id => l_sys_hist_id,
1272: p_system_id => fnd_api.g_miss_num,
1273: p_transaction_id => fnd_api.g_miss_num,
1274: p_old_customer_id => fnd_api.g_miss_num,
1275: p_new_customer_id => l_new_systems_rec.customer_id,
1276: p_old_system_type_code => fnd_api.g_miss_char,

Line 1273: p_transaction_id => fnd_api.g_miss_num,

1269: THEN
1270: csi_systems_h_pkg.update_row(
1271: p_system_history_id => l_sys_hist_id,
1272: p_system_id => fnd_api.g_miss_num,
1273: p_transaction_id => fnd_api.g_miss_num,
1274: p_old_customer_id => fnd_api.g_miss_num,
1275: p_new_customer_id => l_new_systems_rec.customer_id,
1276: p_old_system_type_code => fnd_api.g_miss_char,
1277: p_new_system_type_code => l_new_systems_rec.system_type_code,

Line 1274: p_old_customer_id => fnd_api.g_miss_num,

1270: csi_systems_h_pkg.update_row(
1271: p_system_history_id => l_sys_hist_id,
1272: p_system_id => fnd_api.g_miss_num,
1273: p_transaction_id => fnd_api.g_miss_num,
1274: p_old_customer_id => fnd_api.g_miss_num,
1275: p_new_customer_id => l_new_systems_rec.customer_id,
1276: p_old_system_type_code => fnd_api.g_miss_char,
1277: p_new_system_type_code => l_new_systems_rec.system_type_code,
1278: p_old_system_number => fnd_api.g_miss_char,

Line 1276: p_old_system_type_code => fnd_api.g_miss_char,

1272: p_system_id => fnd_api.g_miss_num,
1273: p_transaction_id => fnd_api.g_miss_num,
1274: p_old_customer_id => fnd_api.g_miss_num,
1275: p_new_customer_id => l_new_systems_rec.customer_id,
1276: p_old_system_type_code => fnd_api.g_miss_char,
1277: p_new_system_type_code => l_new_systems_rec.system_type_code,
1278: p_old_system_number => fnd_api.g_miss_char,
1279: p_new_system_number => l_new_systems_rec.system_number,
1280: p_old_parent_system_id => fnd_api.g_miss_num,

Line 1278: p_old_system_number => fnd_api.g_miss_char,

1274: p_old_customer_id => fnd_api.g_miss_num,
1275: p_new_customer_id => l_new_systems_rec.customer_id,
1276: p_old_system_type_code => fnd_api.g_miss_char,
1277: p_new_system_type_code => l_new_systems_rec.system_type_code,
1278: p_old_system_number => fnd_api.g_miss_char,
1279: p_new_system_number => l_new_systems_rec.system_number,
1280: p_old_parent_system_id => fnd_api.g_miss_num,
1281: p_new_parent_system_id => l_new_systems_rec.parent_system_id,
1282: p_old_ship_to_contact_id => fnd_api.g_miss_num,

Line 1280: p_old_parent_system_id => fnd_api.g_miss_num,

1276: p_old_system_type_code => fnd_api.g_miss_char,
1277: p_new_system_type_code => l_new_systems_rec.system_type_code,
1278: p_old_system_number => fnd_api.g_miss_char,
1279: p_new_system_number => l_new_systems_rec.system_number,
1280: p_old_parent_system_id => fnd_api.g_miss_num,
1281: p_new_parent_system_id => l_new_systems_rec.parent_system_id,
1282: p_old_ship_to_contact_id => fnd_api.g_miss_num,
1283: p_new_ship_to_contact_id => l_new_systems_rec.ship_to_contact_id,
1284: p_old_bill_to_contact_id => fnd_api.g_miss_num,

Line 1282: p_old_ship_to_contact_id => fnd_api.g_miss_num,

1278: p_old_system_number => fnd_api.g_miss_char,
1279: p_new_system_number => l_new_systems_rec.system_number,
1280: p_old_parent_system_id => fnd_api.g_miss_num,
1281: p_new_parent_system_id => l_new_systems_rec.parent_system_id,
1282: p_old_ship_to_contact_id => fnd_api.g_miss_num,
1283: p_new_ship_to_contact_id => l_new_systems_rec.ship_to_contact_id,
1284: p_old_bill_to_contact_id => fnd_api.g_miss_num,
1285: p_new_bill_to_contact_id => l_new_systems_rec.bill_to_contact_id,
1286: p_old_technical_contact_id => fnd_api.g_miss_num,

Line 1284: p_old_bill_to_contact_id => fnd_api.g_miss_num,

1280: p_old_parent_system_id => fnd_api.g_miss_num,
1281: p_new_parent_system_id => l_new_systems_rec.parent_system_id,
1282: p_old_ship_to_contact_id => fnd_api.g_miss_num,
1283: p_new_ship_to_contact_id => l_new_systems_rec.ship_to_contact_id,
1284: p_old_bill_to_contact_id => fnd_api.g_miss_num,
1285: p_new_bill_to_contact_id => l_new_systems_rec.bill_to_contact_id,
1286: p_old_technical_contact_id => fnd_api.g_miss_num,
1287: p_new_technical_contact_id => l_new_systems_rec.technical_contact_id,
1288: p_old_service_admin_contact_id => fnd_api.g_miss_num,

Line 1286: p_old_technical_contact_id => fnd_api.g_miss_num,

1282: p_old_ship_to_contact_id => fnd_api.g_miss_num,
1283: p_new_ship_to_contact_id => l_new_systems_rec.ship_to_contact_id,
1284: p_old_bill_to_contact_id => fnd_api.g_miss_num,
1285: p_new_bill_to_contact_id => l_new_systems_rec.bill_to_contact_id,
1286: p_old_technical_contact_id => fnd_api.g_miss_num,
1287: p_new_technical_contact_id => l_new_systems_rec.technical_contact_id,
1288: p_old_service_admin_contact_id => fnd_api.g_miss_num,
1289: p_new_service_admin_contact_id => l_new_systems_rec.service_admin_contact_id,
1290: p_old_ship_to_site_use_id => fnd_api.g_miss_num,

Line 1288: p_old_service_admin_contact_id => fnd_api.g_miss_num,

1284: p_old_bill_to_contact_id => fnd_api.g_miss_num,
1285: p_new_bill_to_contact_id => l_new_systems_rec.bill_to_contact_id,
1286: p_old_technical_contact_id => fnd_api.g_miss_num,
1287: p_new_technical_contact_id => l_new_systems_rec.technical_contact_id,
1288: p_old_service_admin_contact_id => fnd_api.g_miss_num,
1289: p_new_service_admin_contact_id => l_new_systems_rec.service_admin_contact_id,
1290: p_old_ship_to_site_use_id => fnd_api.g_miss_num,
1291: p_new_ship_to_site_use_id => l_new_systems_rec.ship_to_site_use_id,
1292: p_old_install_site_use_id => fnd_api.g_miss_num,

Line 1290: p_old_ship_to_site_use_id => fnd_api.g_miss_num,

1286: p_old_technical_contact_id => fnd_api.g_miss_num,
1287: p_new_technical_contact_id => l_new_systems_rec.technical_contact_id,
1288: p_old_service_admin_contact_id => fnd_api.g_miss_num,
1289: p_new_service_admin_contact_id => l_new_systems_rec.service_admin_contact_id,
1290: p_old_ship_to_site_use_id => fnd_api.g_miss_num,
1291: p_new_ship_to_site_use_id => l_new_systems_rec.ship_to_site_use_id,
1292: p_old_install_site_use_id => fnd_api.g_miss_num,
1293: p_new_install_site_use_id => l_new_systems_rec.install_site_use_id,
1294: p_old_bill_to_site_use_id => fnd_api.g_miss_num,

Line 1292: p_old_install_site_use_id => fnd_api.g_miss_num,

1288: p_old_service_admin_contact_id => fnd_api.g_miss_num,
1289: p_new_service_admin_contact_id => l_new_systems_rec.service_admin_contact_id,
1290: p_old_ship_to_site_use_id => fnd_api.g_miss_num,
1291: p_new_ship_to_site_use_id => l_new_systems_rec.ship_to_site_use_id,
1292: p_old_install_site_use_id => fnd_api.g_miss_num,
1293: p_new_install_site_use_id => l_new_systems_rec.install_site_use_id,
1294: p_old_bill_to_site_use_id => fnd_api.g_miss_num,
1295: p_new_bill_to_site_use_id => l_new_systems_rec.bill_to_site_use_id,
1296: p_old_coterminate_day_month => fnd_api.g_miss_char,

Line 1294: p_old_bill_to_site_use_id => fnd_api.g_miss_num,

1290: p_old_ship_to_site_use_id => fnd_api.g_miss_num,
1291: p_new_ship_to_site_use_id => l_new_systems_rec.ship_to_site_use_id,
1292: p_old_install_site_use_id => fnd_api.g_miss_num,
1293: p_new_install_site_use_id => l_new_systems_rec.install_site_use_id,
1294: p_old_bill_to_site_use_id => fnd_api.g_miss_num,
1295: p_new_bill_to_site_use_id => l_new_systems_rec.bill_to_site_use_id,
1296: p_old_coterminate_day_month => fnd_api.g_miss_char,
1297: p_new_coterminate_day_month => l_new_systems_rec.coterminate_day_month,
1298: p_old_start_date_active => fnd_api.g_miss_date,

Line 1296: p_old_coterminate_day_month => fnd_api.g_miss_char,

1292: p_old_install_site_use_id => fnd_api.g_miss_num,
1293: p_new_install_site_use_id => l_new_systems_rec.install_site_use_id,
1294: p_old_bill_to_site_use_id => fnd_api.g_miss_num,
1295: p_new_bill_to_site_use_id => l_new_systems_rec.bill_to_site_use_id,
1296: p_old_coterminate_day_month => fnd_api.g_miss_char,
1297: p_new_coterminate_day_month => l_new_systems_rec.coterminate_day_month,
1298: p_old_start_date_active => fnd_api.g_miss_date,
1299: p_new_start_date_active => l_new_systems_rec.start_date_active,
1300: p_old_end_date_active => fnd_api.g_miss_date,

Line 1298: p_old_start_date_active => fnd_api.g_miss_date,

1294: p_old_bill_to_site_use_id => fnd_api.g_miss_num,
1295: p_new_bill_to_site_use_id => l_new_systems_rec.bill_to_site_use_id,
1296: p_old_coterminate_day_month => fnd_api.g_miss_char,
1297: p_new_coterminate_day_month => l_new_systems_rec.coterminate_day_month,
1298: p_old_start_date_active => fnd_api.g_miss_date,
1299: p_new_start_date_active => l_new_systems_rec.start_date_active,
1300: p_old_end_date_active => fnd_api.g_miss_date,
1301: p_new_end_date_active => l_new_systems_rec.end_date_active,
1302: p_old_autocreated_from_system => fnd_api.g_miss_num,

Line 1300: p_old_end_date_active => fnd_api.g_miss_date,

1296: p_old_coterminate_day_month => fnd_api.g_miss_char,
1297: p_new_coterminate_day_month => l_new_systems_rec.coterminate_day_month,
1298: p_old_start_date_active => fnd_api.g_miss_date,
1299: p_new_start_date_active => l_new_systems_rec.start_date_active,
1300: p_old_end_date_active => fnd_api.g_miss_date,
1301: p_new_end_date_active => l_new_systems_rec.end_date_active,
1302: p_old_autocreated_from_system => fnd_api.g_miss_num,
1303: p_new_autocreated_from_system => l_new_systems_rec.autocreated_from_system_id,
1304: p_old_config_system_type => fnd_api.g_miss_char,

Line 1302: p_old_autocreated_from_system => fnd_api.g_miss_num,

1298: p_old_start_date_active => fnd_api.g_miss_date,
1299: p_new_start_date_active => l_new_systems_rec.start_date_active,
1300: p_old_end_date_active => fnd_api.g_miss_date,
1301: p_new_end_date_active => l_new_systems_rec.end_date_active,
1302: p_old_autocreated_from_system => fnd_api.g_miss_num,
1303: p_new_autocreated_from_system => l_new_systems_rec.autocreated_from_system_id,
1304: p_old_config_system_type => fnd_api.g_miss_char,
1305: p_new_config_system_type => l_new_systems_rec.config_system_type,
1306: p_old_context => fnd_api.g_miss_char,

Line 1304: p_old_config_system_type => fnd_api.g_miss_char,

1300: p_old_end_date_active => fnd_api.g_miss_date,
1301: p_new_end_date_active => l_new_systems_rec.end_date_active,
1302: p_old_autocreated_from_system => fnd_api.g_miss_num,
1303: p_new_autocreated_from_system => l_new_systems_rec.autocreated_from_system_id,
1304: p_old_config_system_type => fnd_api.g_miss_char,
1305: p_new_config_system_type => l_new_systems_rec.config_system_type,
1306: p_old_context => fnd_api.g_miss_char,
1307: p_new_context => l_new_systems_rec.context,
1308: p_old_attribute1 => fnd_api.g_miss_char,

Line 1306: p_old_context => fnd_api.g_miss_char,

1302: p_old_autocreated_from_system => fnd_api.g_miss_num,
1303: p_new_autocreated_from_system => l_new_systems_rec.autocreated_from_system_id,
1304: p_old_config_system_type => fnd_api.g_miss_char,
1305: p_new_config_system_type => l_new_systems_rec.config_system_type,
1306: p_old_context => fnd_api.g_miss_char,
1307: p_new_context => l_new_systems_rec.context,
1308: p_old_attribute1 => fnd_api.g_miss_char,
1309: p_new_attribute1 => l_new_systems_rec.attribute1,
1310: p_old_attribute2 => fnd_api.g_miss_char,

Line 1308: p_old_attribute1 => fnd_api.g_miss_char,

1304: p_old_config_system_type => fnd_api.g_miss_char,
1305: p_new_config_system_type => l_new_systems_rec.config_system_type,
1306: p_old_context => fnd_api.g_miss_char,
1307: p_new_context => l_new_systems_rec.context,
1308: p_old_attribute1 => fnd_api.g_miss_char,
1309: p_new_attribute1 => l_new_systems_rec.attribute1,
1310: p_old_attribute2 => fnd_api.g_miss_char,
1311: p_new_attribute2 => l_new_systems_rec.attribute2,
1312: p_old_attribute3 => fnd_api.g_miss_char,

Line 1310: p_old_attribute2 => fnd_api.g_miss_char,

1306: p_old_context => fnd_api.g_miss_char,
1307: p_new_context => l_new_systems_rec.context,
1308: p_old_attribute1 => fnd_api.g_miss_char,
1309: p_new_attribute1 => l_new_systems_rec.attribute1,
1310: p_old_attribute2 => fnd_api.g_miss_char,
1311: p_new_attribute2 => l_new_systems_rec.attribute2,
1312: p_old_attribute3 => fnd_api.g_miss_char,
1313: p_new_attribute3 => l_new_systems_rec.attribute3,
1314: p_old_attribute4 => fnd_api.g_miss_char,

Line 1312: p_old_attribute3 => fnd_api.g_miss_char,

1308: p_old_attribute1 => fnd_api.g_miss_char,
1309: p_new_attribute1 => l_new_systems_rec.attribute1,
1310: p_old_attribute2 => fnd_api.g_miss_char,
1311: p_new_attribute2 => l_new_systems_rec.attribute2,
1312: p_old_attribute3 => fnd_api.g_miss_char,
1313: p_new_attribute3 => l_new_systems_rec.attribute3,
1314: p_old_attribute4 => fnd_api.g_miss_char,
1315: p_new_attribute4 => l_new_systems_rec.attribute4,
1316: p_old_attribute5 => fnd_api.g_miss_char,

Line 1314: p_old_attribute4 => fnd_api.g_miss_char,

1310: p_old_attribute2 => fnd_api.g_miss_char,
1311: p_new_attribute2 => l_new_systems_rec.attribute2,
1312: p_old_attribute3 => fnd_api.g_miss_char,
1313: p_new_attribute3 => l_new_systems_rec.attribute3,
1314: p_old_attribute4 => fnd_api.g_miss_char,
1315: p_new_attribute4 => l_new_systems_rec.attribute4,
1316: p_old_attribute5 => fnd_api.g_miss_char,
1317: p_new_attribute5 => l_new_systems_rec.attribute5,
1318: p_old_attribute6 => fnd_api.g_miss_char,

Line 1316: p_old_attribute5 => fnd_api.g_miss_char,

1312: p_old_attribute3 => fnd_api.g_miss_char,
1313: p_new_attribute3 => l_new_systems_rec.attribute3,
1314: p_old_attribute4 => fnd_api.g_miss_char,
1315: p_new_attribute4 => l_new_systems_rec.attribute4,
1316: p_old_attribute5 => fnd_api.g_miss_char,
1317: p_new_attribute5 => l_new_systems_rec.attribute5,
1318: p_old_attribute6 => fnd_api.g_miss_char,
1319: p_new_attribute6 => l_new_systems_rec.attribute6,
1320: p_old_attribute7 => fnd_api.g_miss_char,

Line 1318: p_old_attribute6 => fnd_api.g_miss_char,

1314: p_old_attribute4 => fnd_api.g_miss_char,
1315: p_new_attribute4 => l_new_systems_rec.attribute4,
1316: p_old_attribute5 => fnd_api.g_miss_char,
1317: p_new_attribute5 => l_new_systems_rec.attribute5,
1318: p_old_attribute6 => fnd_api.g_miss_char,
1319: p_new_attribute6 => l_new_systems_rec.attribute6,
1320: p_old_attribute7 => fnd_api.g_miss_char,
1321: p_new_attribute7 => l_new_systems_rec.attribute7,
1322: p_old_attribute8 => fnd_api.g_miss_char,

Line 1320: p_old_attribute7 => fnd_api.g_miss_char,

1316: p_old_attribute5 => fnd_api.g_miss_char,
1317: p_new_attribute5 => l_new_systems_rec.attribute5,
1318: p_old_attribute6 => fnd_api.g_miss_char,
1319: p_new_attribute6 => l_new_systems_rec.attribute6,
1320: p_old_attribute7 => fnd_api.g_miss_char,
1321: p_new_attribute7 => l_new_systems_rec.attribute7,
1322: p_old_attribute8 => fnd_api.g_miss_char,
1323: p_new_attribute8 => l_new_systems_rec.attribute8,
1324: p_old_attribute9 => fnd_api.g_miss_char,

Line 1322: p_old_attribute8 => fnd_api.g_miss_char,

1318: p_old_attribute6 => fnd_api.g_miss_char,
1319: p_new_attribute6 => l_new_systems_rec.attribute6,
1320: p_old_attribute7 => fnd_api.g_miss_char,
1321: p_new_attribute7 => l_new_systems_rec.attribute7,
1322: p_old_attribute8 => fnd_api.g_miss_char,
1323: p_new_attribute8 => l_new_systems_rec.attribute8,
1324: p_old_attribute9 => fnd_api.g_miss_char,
1325: p_new_attribute9 => l_new_systems_rec.attribute9,
1326: p_old_attribute10 => fnd_api.g_miss_char,

Line 1324: p_old_attribute9 => fnd_api.g_miss_char,

1320: p_old_attribute7 => fnd_api.g_miss_char,
1321: p_new_attribute7 => l_new_systems_rec.attribute7,
1322: p_old_attribute8 => fnd_api.g_miss_char,
1323: p_new_attribute8 => l_new_systems_rec.attribute8,
1324: p_old_attribute9 => fnd_api.g_miss_char,
1325: p_new_attribute9 => l_new_systems_rec.attribute9,
1326: p_old_attribute10 => fnd_api.g_miss_char,
1327: p_new_attribute10 => l_new_systems_rec.attribute10,
1328: p_old_attribute11 => fnd_api.g_miss_char,

Line 1326: p_old_attribute10 => fnd_api.g_miss_char,

1322: p_old_attribute8 => fnd_api.g_miss_char,
1323: p_new_attribute8 => l_new_systems_rec.attribute8,
1324: p_old_attribute9 => fnd_api.g_miss_char,
1325: p_new_attribute9 => l_new_systems_rec.attribute9,
1326: p_old_attribute10 => fnd_api.g_miss_char,
1327: p_new_attribute10 => l_new_systems_rec.attribute10,
1328: p_old_attribute11 => fnd_api.g_miss_char,
1329: p_new_attribute11 => l_new_systems_rec.attribute11,
1330: p_old_attribute12 => fnd_api.g_miss_char,

Line 1328: p_old_attribute11 => fnd_api.g_miss_char,

1324: p_old_attribute9 => fnd_api.g_miss_char,
1325: p_new_attribute9 => l_new_systems_rec.attribute9,
1326: p_old_attribute10 => fnd_api.g_miss_char,
1327: p_new_attribute10 => l_new_systems_rec.attribute10,
1328: p_old_attribute11 => fnd_api.g_miss_char,
1329: p_new_attribute11 => l_new_systems_rec.attribute11,
1330: p_old_attribute12 => fnd_api.g_miss_char,
1331: p_new_attribute12 => l_new_systems_rec.attribute12,
1332: p_old_attribute13 => fnd_api.g_miss_char,

Line 1330: p_old_attribute12 => fnd_api.g_miss_char,

1326: p_old_attribute10 => fnd_api.g_miss_char,
1327: p_new_attribute10 => l_new_systems_rec.attribute10,
1328: p_old_attribute11 => fnd_api.g_miss_char,
1329: p_new_attribute11 => l_new_systems_rec.attribute11,
1330: p_old_attribute12 => fnd_api.g_miss_char,
1331: p_new_attribute12 => l_new_systems_rec.attribute12,
1332: p_old_attribute13 => fnd_api.g_miss_char,
1333: p_new_attribute13 => l_new_systems_rec.attribute13,
1334: p_old_attribute14 => fnd_api.g_miss_char,

Line 1332: p_old_attribute13 => fnd_api.g_miss_char,

1328: p_old_attribute11 => fnd_api.g_miss_char,
1329: p_new_attribute11 => l_new_systems_rec.attribute11,
1330: p_old_attribute12 => fnd_api.g_miss_char,
1331: p_new_attribute12 => l_new_systems_rec.attribute12,
1332: p_old_attribute13 => fnd_api.g_miss_char,
1333: p_new_attribute13 => l_new_systems_rec.attribute13,
1334: p_old_attribute14 => fnd_api.g_miss_char,
1335: p_new_attribute14 => l_new_systems_rec.attribute14,
1336: p_old_attribute15 => fnd_api.g_miss_char,

Line 1334: p_old_attribute14 => fnd_api.g_miss_char,

1330: p_old_attribute12 => fnd_api.g_miss_char,
1331: p_new_attribute12 => l_new_systems_rec.attribute12,
1332: p_old_attribute13 => fnd_api.g_miss_char,
1333: p_new_attribute13 => l_new_systems_rec.attribute13,
1334: p_old_attribute14 => fnd_api.g_miss_char,
1335: p_new_attribute14 => l_new_systems_rec.attribute14,
1336: p_old_attribute15 => fnd_api.g_miss_char,
1337: p_new_attribute15 => l_new_systems_rec.attribute15,
1338: p_full_dump_flag => fnd_api.g_miss_char,

Line 1336: p_old_attribute15 => fnd_api.g_miss_char,

1332: p_old_attribute13 => fnd_api.g_miss_char,
1333: p_new_attribute13 => l_new_systems_rec.attribute13,
1334: p_old_attribute14 => fnd_api.g_miss_char,
1335: p_new_attribute14 => l_new_systems_rec.attribute14,
1336: p_old_attribute15 => fnd_api.g_miss_char,
1337: p_new_attribute15 => l_new_systems_rec.attribute15,
1338: p_full_dump_flag => fnd_api.g_miss_char,
1339: p_created_by => fnd_api.g_miss_num, -- fnd_global.user_id,
1340: p_creation_date => fnd_api.g_miss_date,

Line 1338: p_full_dump_flag => fnd_api.g_miss_char,

1334: p_old_attribute14 => fnd_api.g_miss_char,
1335: p_new_attribute14 => l_new_systems_rec.attribute14,
1336: p_old_attribute15 => fnd_api.g_miss_char,
1337: p_new_attribute15 => l_new_systems_rec.attribute15,
1338: p_full_dump_flag => fnd_api.g_miss_char,
1339: p_created_by => fnd_api.g_miss_num, -- fnd_global.user_id,
1340: p_creation_date => fnd_api.g_miss_date,
1341: p_last_updated_by => fnd_global.user_id,
1342: p_last_update_date => SYSDATE,

Line 1339: p_created_by => fnd_api.g_miss_num, -- fnd_global.user_id,

1335: p_new_attribute14 => l_new_systems_rec.attribute14,
1336: p_old_attribute15 => fnd_api.g_miss_char,
1337: p_new_attribute15 => l_new_systems_rec.attribute15,
1338: p_full_dump_flag => fnd_api.g_miss_char,
1339: p_created_by => fnd_api.g_miss_num, -- fnd_global.user_id,
1340: p_creation_date => fnd_api.g_miss_date,
1341: p_last_updated_by => fnd_global.user_id,
1342: p_last_update_date => SYSDATE,
1343: p_last_update_login => fnd_global.conc_login_id,

Line 1340: p_creation_date => fnd_api.g_miss_date,

1336: p_old_attribute15 => fnd_api.g_miss_char,
1337: p_new_attribute15 => l_new_systems_rec.attribute15,
1338: p_full_dump_flag => fnd_api.g_miss_char,
1339: p_created_by => fnd_api.g_miss_num, -- fnd_global.user_id,
1340: p_creation_date => fnd_api.g_miss_date,
1341: p_last_updated_by => fnd_global.user_id,
1342: p_last_update_date => SYSDATE,
1343: p_last_update_login => fnd_global.conc_login_id,
1344: p_object_version_number => fnd_api.g_miss_num,

Line 1344: p_object_version_number => fnd_api.g_miss_num,

1340: p_creation_date => fnd_api.g_miss_date,
1341: p_last_updated_by => fnd_global.user_id,
1342: p_last_update_date => SYSDATE,
1343: p_last_update_login => fnd_global.conc_login_id,
1344: p_object_version_number => fnd_api.g_miss_num,
1345: p_old_name => fnd_api.g_miss_char,
1346: p_new_name => l_new_systems_rec.name,
1347: p_old_description => fnd_api.g_miss_char,
1348: p_new_description => l_new_systems_rec.description,

Line 1345: p_old_name => fnd_api.g_miss_char,

1341: p_last_updated_by => fnd_global.user_id,
1342: p_last_update_date => SYSDATE,
1343: p_last_update_login => fnd_global.conc_login_id,
1344: p_object_version_number => fnd_api.g_miss_num,
1345: p_old_name => fnd_api.g_miss_char,
1346: p_new_name => l_new_systems_rec.name,
1347: p_old_description => fnd_api.g_miss_char,
1348: p_new_description => l_new_systems_rec.description,
1349: p_old_operating_unit_id => fnd_api.g_miss_num,

Line 1347: p_old_description => fnd_api.g_miss_char,

1343: p_last_update_login => fnd_global.conc_login_id,
1344: p_object_version_number => fnd_api.g_miss_num,
1345: p_old_name => fnd_api.g_miss_char,
1346: p_new_name => l_new_systems_rec.name,
1347: p_old_description => fnd_api.g_miss_char,
1348: p_new_description => l_new_systems_rec.description,
1349: p_old_operating_unit_id => fnd_api.g_miss_num,
1350: p_new_operating_unit_id => l_new_systems_rec.operating_unit_id
1351: );

Line 1349: p_old_operating_unit_id => fnd_api.g_miss_num,

1345: p_old_name => fnd_api.g_miss_char,
1346: p_new_name => l_new_systems_rec.name,
1347: p_old_description => fnd_api.g_miss_char,
1348: p_new_description => l_new_systems_rec.description,
1349: p_old_operating_unit_id => fnd_api.g_miss_num,
1350: p_new_operating_unit_id => l_new_systems_rec.operating_unit_id
1351: );
1352:
1353: ELSE

Line 1358: OR ( l_new_systems_rec.customer_id = fnd_api.g_miss_num ) THEN

1354:
1355: IF ( l_sys_hist_csr.old_customer_id IS NULL
1356: AND l_sys_hist_csr.new_customer_id IS NULL ) THEN
1357: IF ( l_new_systems_rec.customer_id = l_old_systems_rec.customer_id )
1358: OR ( l_new_systems_rec.customer_id = fnd_api.g_miss_num ) THEN
1359: l_sys_hist_csr.old_customer_id := NULL;
1360: l_sys_hist_csr.new_customer_id := NULL;
1361: ELSE
1362: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;

Line 1362: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;

1358: OR ( l_new_systems_rec.customer_id = fnd_api.g_miss_num ) THEN
1359: l_sys_hist_csr.old_customer_id := NULL;
1360: l_sys_hist_csr.new_customer_id := NULL;
1361: ELSE
1362: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;
1363: l_sys_hist_csr.new_customer_id := l_new_systems_rec.customer_id;
1364: END IF;
1365: ELSE
1366: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;

Line 1366: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;

1362: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;
1363: l_sys_hist_csr.new_customer_id := l_new_systems_rec.customer_id;
1364: END IF;
1365: ELSE
1366: l_sys_hist_csr.old_customer_id := fnd_api.g_miss_num;
1367: l_sys_hist_csr.new_customer_id := l_new_systems_rec.customer_id;
1368: END IF;
1369: --
1370: IF ( l_sys_hist_csr.old_system_type_code IS NULL

Line 1373: OR ( l_new_systems_rec.system_type_code = fnd_api.g_miss_char ) THEN

1369: --
1370: IF ( l_sys_hist_csr.old_system_type_code IS NULL
1371: AND l_sys_hist_csr.new_system_type_code IS NULL ) THEN
1372: IF ( l_new_systems_rec.system_type_code = l_old_systems_rec.system_type_code )
1373: OR ( l_new_systems_rec.system_type_code = fnd_api.g_miss_char ) THEN
1374: l_sys_hist_csr.old_system_type_code := NULL;
1375: l_sys_hist_csr.new_system_type_code := NULL;
1376: ELSE
1377: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;

Line 1377: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;

1373: OR ( l_new_systems_rec.system_type_code = fnd_api.g_miss_char ) THEN
1374: l_sys_hist_csr.old_system_type_code := NULL;
1375: l_sys_hist_csr.new_system_type_code := NULL;
1376: ELSE
1377: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;
1378: l_sys_hist_csr.new_system_type_code := l_new_systems_rec.system_type_code;
1379: END IF;
1380: ELSE
1381: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;

Line 1381: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;

1377: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;
1378: l_sys_hist_csr.new_system_type_code := l_new_systems_rec.system_type_code;
1379: END IF;
1380: ELSE
1381: l_sys_hist_csr.old_system_type_code := fnd_api.g_miss_char;
1382: l_sys_hist_csr.new_system_type_code := l_new_systems_rec.system_type_code;
1383: END IF;
1384: --
1385: IF ( l_sys_hist_csr.old_system_number IS NULL

Line 1388: OR ( l_new_systems_rec.system_number = fnd_api.g_miss_char ) THEN

1384: --
1385: IF ( l_sys_hist_csr.old_system_number IS NULL
1386: AND l_sys_hist_csr.new_system_number IS NULL ) THEN
1387: IF ( l_new_systems_rec.system_number = l_old_systems_rec.system_number )
1388: OR ( l_new_systems_rec.system_number = fnd_api.g_miss_char ) THEN
1389: l_sys_hist_csr.old_system_number := NULL;
1390: l_sys_hist_csr.new_system_number := NULL;
1391: ELSE
1392: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;

Line 1392: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;

1388: OR ( l_new_systems_rec.system_number = fnd_api.g_miss_char ) THEN
1389: l_sys_hist_csr.old_system_number := NULL;
1390: l_sys_hist_csr.new_system_number := NULL;
1391: ELSE
1392: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;
1393: l_sys_hist_csr.new_system_number := l_new_systems_rec.system_number;
1394: END IF;
1395: ELSE
1396: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;

Line 1396: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;

1392: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;
1393: l_sys_hist_csr.new_system_number := l_new_systems_rec.system_number;
1394: END IF;
1395: ELSE
1396: l_sys_hist_csr.old_system_number := fnd_api.g_miss_char;
1397: l_sys_hist_csr.new_system_number := l_new_systems_rec.system_number;
1398: END IF;
1399: --
1400: IF ( l_sys_hist_csr.old_parent_system_id IS NULL

Line 1403: OR ( l_new_systems_rec.parent_system_id = fnd_api.g_miss_num ) THEN

1399: --
1400: IF ( l_sys_hist_csr.old_parent_system_id IS NULL
1401: AND l_sys_hist_csr.new_parent_system_id IS NULL ) THEN
1402: IF ( l_new_systems_rec.parent_system_id = l_old_systems_rec.parent_system_id )
1403: OR ( l_new_systems_rec.parent_system_id = fnd_api.g_miss_num ) THEN
1404: l_sys_hist_csr.old_parent_system_id := NULL;
1405: l_sys_hist_csr.new_parent_system_id := NULL;
1406: ELSE
1407: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;

Line 1407: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;

1403: OR ( l_new_systems_rec.parent_system_id = fnd_api.g_miss_num ) THEN
1404: l_sys_hist_csr.old_parent_system_id := NULL;
1405: l_sys_hist_csr.new_parent_system_id := NULL;
1406: ELSE
1407: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;
1408: l_sys_hist_csr.new_parent_system_id := l_new_systems_rec.parent_system_id;
1409: END IF;
1410: ELSE
1411: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;

Line 1411: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;

1407: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;
1408: l_sys_hist_csr.new_parent_system_id := l_new_systems_rec.parent_system_id;
1409: END IF;
1410: ELSE
1411: l_sys_hist_csr.old_parent_system_id := fnd_api.g_miss_num;
1412: l_sys_hist_csr.new_parent_system_id := l_new_systems_rec.parent_system_id;
1413: END IF;
1414: --
1415: IF ( l_sys_hist_csr.old_ship_to_contact_id IS NULL

Line 1418: OR ( l_new_systems_rec.ship_to_contact_id = fnd_api.g_miss_num ) THEN

1414: --
1415: IF ( l_sys_hist_csr.old_ship_to_contact_id IS NULL
1416: AND l_sys_hist_csr.new_ship_to_contact_id IS NULL ) THEN
1417: IF ( l_new_systems_rec.ship_to_contact_id = l_old_systems_rec.ship_to_contact_id )
1418: OR ( l_new_systems_rec.ship_to_contact_id = fnd_api.g_miss_num ) THEN
1419: l_sys_hist_csr.old_ship_to_contact_id := NULL;
1420: l_sys_hist_csr.new_ship_to_contact_id := NULL;
1421: ELSE
1422: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;

Line 1422: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;

1418: OR ( l_new_systems_rec.ship_to_contact_id = fnd_api.g_miss_num ) THEN
1419: l_sys_hist_csr.old_ship_to_contact_id := NULL;
1420: l_sys_hist_csr.new_ship_to_contact_id := NULL;
1421: ELSE
1422: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;
1423: l_sys_hist_csr.new_ship_to_contact_id := l_new_systems_rec.ship_to_contact_id;
1424: END IF;
1425: ELSE
1426: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;

Line 1426: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;

1422: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;
1423: l_sys_hist_csr.new_ship_to_contact_id := l_new_systems_rec.ship_to_contact_id;
1424: END IF;
1425: ELSE
1426: l_sys_hist_csr.old_ship_to_contact_id := fnd_api.g_miss_num;
1427: l_sys_hist_csr.new_ship_to_contact_id := l_new_systems_rec.ship_to_contact_id;
1428: END IF;
1429: --
1430: IF ( l_sys_hist_csr.old_bill_to_contact_id IS NULL

Line 1433: OR ( l_new_systems_rec.bill_to_contact_id = fnd_api.g_miss_num ) THEN

1429: --
1430: IF ( l_sys_hist_csr.old_bill_to_contact_id IS NULL
1431: AND l_sys_hist_csr.new_bill_to_contact_id IS NULL ) THEN
1432: IF ( l_new_systems_rec.bill_to_contact_id = l_old_systems_rec.bill_to_contact_id )
1433: OR ( l_new_systems_rec.bill_to_contact_id = fnd_api.g_miss_num ) THEN
1434: l_sys_hist_csr.old_bill_to_contact_id := NULL;
1435: l_sys_hist_csr.new_bill_to_contact_id := NULL;
1436: ELSE
1437: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;

Line 1437: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;

1433: OR ( l_new_systems_rec.bill_to_contact_id = fnd_api.g_miss_num ) THEN
1434: l_sys_hist_csr.old_bill_to_contact_id := NULL;
1435: l_sys_hist_csr.new_bill_to_contact_id := NULL;
1436: ELSE
1437: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;
1438: l_sys_hist_csr.new_bill_to_contact_id := l_new_systems_rec.bill_to_contact_id;
1439: END IF;
1440: ELSE
1441: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;

Line 1441: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;

1437: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;
1438: l_sys_hist_csr.new_bill_to_contact_id := l_new_systems_rec.bill_to_contact_id;
1439: END IF;
1440: ELSE
1441: l_sys_hist_csr.old_bill_to_contact_id := fnd_api.g_miss_num;
1442: l_sys_hist_csr.new_bill_to_contact_id := l_new_systems_rec.bill_to_contact_id;
1443: END IF;
1444: --
1445: IF ( l_sys_hist_csr.old_technical_contact_id IS NULL

Line 1448: OR ( l_new_systems_rec.technical_contact_id = fnd_api.g_miss_num ) THEN

1444: --
1445: IF ( l_sys_hist_csr.old_technical_contact_id IS NULL
1446: AND l_sys_hist_csr.new_technical_contact_id IS NULL ) THEN
1447: IF ( l_new_systems_rec.technical_contact_id = l_old_systems_rec.technical_contact_id )
1448: OR ( l_new_systems_rec.technical_contact_id = fnd_api.g_miss_num ) THEN
1449: l_sys_hist_csr.old_technical_contact_id := NULL;
1450: l_sys_hist_csr.new_technical_contact_id := NULL;
1451: ELSE
1452: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;

Line 1452: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;

1448: OR ( l_new_systems_rec.technical_contact_id = fnd_api.g_miss_num ) THEN
1449: l_sys_hist_csr.old_technical_contact_id := NULL;
1450: l_sys_hist_csr.new_technical_contact_id := NULL;
1451: ELSE
1452: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;
1453: l_sys_hist_csr.new_technical_contact_id := l_new_systems_rec.technical_contact_id;
1454: END IF;
1455: ELSE
1456: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;

Line 1456: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;

1452: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;
1453: l_sys_hist_csr.new_technical_contact_id := l_new_systems_rec.technical_contact_id;
1454: END IF;
1455: ELSE
1456: l_sys_hist_csr.old_technical_contact_id := fnd_api.g_miss_num;
1457: l_sys_hist_csr.new_technical_contact_id := l_new_systems_rec.technical_contact_id;
1458: END IF;
1459: --
1460: IF ( l_sys_hist_csr.old_service_admin_contact_id IS NULL

Line 1463: OR ( l_new_systems_rec.service_admin_contact_id = fnd_api.g_miss_num ) THEN

1459: --
1460: IF ( l_sys_hist_csr.old_service_admin_contact_id IS NULL
1461: AND l_sys_hist_csr.new_service_admin_contact_id IS NULL ) THEN
1462: IF ( l_new_systems_rec.service_admin_contact_id = l_old_systems_rec.service_admin_contact_id )
1463: OR ( l_new_systems_rec.service_admin_contact_id = fnd_api.g_miss_num ) THEN
1464: l_sys_hist_csr.old_service_admin_contact_id := NULL;
1465: l_sys_hist_csr.new_service_admin_contact_id := NULL;
1466: ELSE
1467: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;

Line 1467: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;

1463: OR ( l_new_systems_rec.service_admin_contact_id = fnd_api.g_miss_num ) THEN
1464: l_sys_hist_csr.old_service_admin_contact_id := NULL;
1465: l_sys_hist_csr.new_service_admin_contact_id := NULL;
1466: ELSE
1467: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;
1468: l_sys_hist_csr.new_service_admin_contact_id := l_new_systems_rec.service_admin_contact_id;
1469: END IF;
1470: ELSE
1471: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;

Line 1471: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;

1467: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;
1468: l_sys_hist_csr.new_service_admin_contact_id := l_new_systems_rec.service_admin_contact_id;
1469: END IF;
1470: ELSE
1471: l_sys_hist_csr.old_service_admin_contact_id := fnd_api.g_miss_num;
1472: l_sys_hist_csr.new_service_admin_contact_id := l_new_systems_rec.service_admin_contact_id;
1473: END IF;
1474: --
1475: IF ( l_sys_hist_csr.old_ship_to_site_use_id IS NULL

Line 1478: OR ( l_new_systems_rec.ship_to_site_use_id = fnd_api.g_miss_num ) THEN

1474: --
1475: IF ( l_sys_hist_csr.old_ship_to_site_use_id IS NULL
1476: AND l_sys_hist_csr.new_ship_to_site_use_id IS NULL ) THEN
1477: IF ( l_new_systems_rec.ship_to_site_use_id = l_old_systems_rec.ship_to_site_use_id )
1478: OR ( l_new_systems_rec.ship_to_site_use_id = fnd_api.g_miss_num ) THEN
1479: l_sys_hist_csr.old_ship_to_site_use_id := NULL;
1480: l_sys_hist_csr.new_ship_to_site_use_id := NULL;
1481: ELSE
1482: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;

Line 1482: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;

1478: OR ( l_new_systems_rec.ship_to_site_use_id = fnd_api.g_miss_num ) THEN
1479: l_sys_hist_csr.old_ship_to_site_use_id := NULL;
1480: l_sys_hist_csr.new_ship_to_site_use_id := NULL;
1481: ELSE
1482: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;
1483: l_sys_hist_csr.new_ship_to_site_use_id := l_new_systems_rec.ship_to_site_use_id;
1484: END IF;
1485: ELSE
1486: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;

Line 1486: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;

1482: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;
1483: l_sys_hist_csr.new_ship_to_site_use_id := l_new_systems_rec.ship_to_site_use_id;
1484: END IF;
1485: ELSE
1486: l_sys_hist_csr.old_ship_to_site_use_id := fnd_api.g_miss_num;
1487: l_sys_hist_csr.new_ship_to_site_use_id := l_new_systems_rec.ship_to_site_use_id;
1488: END IF;
1489: --
1490: IF ( l_sys_hist_csr.old_bill_to_site_use_id IS NULL

Line 1493: OR ( l_new_systems_rec.bill_to_site_use_id = fnd_api.g_miss_num ) THEN

1489: --
1490: IF ( l_sys_hist_csr.old_bill_to_site_use_id IS NULL
1491: AND l_sys_hist_csr.new_bill_to_site_use_id IS NULL ) THEN
1492: IF ( l_new_systems_rec.bill_to_site_use_id = l_old_systems_rec.bill_to_site_use_id )
1493: OR ( l_new_systems_rec.bill_to_site_use_id = fnd_api.g_miss_num ) THEN
1494: l_sys_hist_csr.old_bill_to_site_use_id := NULL;
1495: l_sys_hist_csr.new_bill_to_site_use_id := NULL;
1496: ELSE
1497: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;

Line 1497: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;

1493: OR ( l_new_systems_rec.bill_to_site_use_id = fnd_api.g_miss_num ) THEN
1494: l_sys_hist_csr.old_bill_to_site_use_id := NULL;
1495: l_sys_hist_csr.new_bill_to_site_use_id := NULL;
1496: ELSE
1497: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;
1498: l_sys_hist_csr.new_bill_to_site_use_id := l_new_systems_rec.bill_to_site_use_id;
1499: END IF;
1500: ELSE
1501: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;

Line 1501: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;

1497: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;
1498: l_sys_hist_csr.new_bill_to_site_use_id := l_new_systems_rec.bill_to_site_use_id;
1499: END IF;
1500: ELSE
1501: l_sys_hist_csr.old_bill_to_site_use_id := fnd_api.g_miss_num;
1502: l_sys_hist_csr.new_bill_to_site_use_id := l_new_systems_rec.bill_to_site_use_id;
1503: END IF;
1504: --
1505: IF ( l_sys_hist_csr.old_install_site_use_id IS NULL

Line 1508: OR ( l_new_systems_rec.install_site_use_id = fnd_api.g_miss_num ) THEN

1504: --
1505: IF ( l_sys_hist_csr.old_install_site_use_id IS NULL
1506: AND l_sys_hist_csr.new_install_site_use_id IS NULL ) THEN
1507: IF ( l_new_systems_rec.install_site_use_id = l_old_systems_rec.install_site_use_id )
1508: OR ( l_new_systems_rec.install_site_use_id = fnd_api.g_miss_num ) THEN
1509: l_sys_hist_csr.old_install_site_use_id := NULL;
1510: l_sys_hist_csr.new_install_site_use_id := NULL;
1511: ELSE
1512: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;

Line 1512: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;

1508: OR ( l_new_systems_rec.install_site_use_id = fnd_api.g_miss_num ) THEN
1509: l_sys_hist_csr.old_install_site_use_id := NULL;
1510: l_sys_hist_csr.new_install_site_use_id := NULL;
1511: ELSE
1512: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;
1513: l_sys_hist_csr.new_install_site_use_id := l_new_systems_rec.install_site_use_id;
1514: END IF;
1515: ELSE
1516: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;

Line 1516: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;

1512: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;
1513: l_sys_hist_csr.new_install_site_use_id := l_new_systems_rec.install_site_use_id;
1514: END IF;
1515: ELSE
1516: l_sys_hist_csr.old_install_site_use_id := fnd_api.g_miss_num;
1517: l_sys_hist_csr.new_install_site_use_id := l_new_systems_rec.install_site_use_id;
1518: END IF;
1519: --
1520: IF ( l_sys_hist_csr.old_coterminate_day_month IS NULL

Line 1523: OR ( l_new_systems_rec.coterminate_day_month = fnd_api.g_miss_char ) THEN

1519: --
1520: IF ( l_sys_hist_csr.old_coterminate_day_month IS NULL
1521: AND l_sys_hist_csr.new_coterminate_day_month IS NULL ) THEN
1522: IF ( l_new_systems_rec.coterminate_day_month = l_old_systems_rec.coterminate_day_month )
1523: OR ( l_new_systems_rec.coterminate_day_month = fnd_api.g_miss_char ) THEN
1524: l_sys_hist_csr.old_coterminate_day_month := NULL;
1525: l_sys_hist_csr.new_coterminate_day_month := NULL;
1526: ELSE
1527: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;

Line 1527: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;

1523: OR ( l_new_systems_rec.coterminate_day_month = fnd_api.g_miss_char ) THEN
1524: l_sys_hist_csr.old_coterminate_day_month := NULL;
1525: l_sys_hist_csr.new_coterminate_day_month := NULL;
1526: ELSE
1527: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;
1528: l_sys_hist_csr.new_coterminate_day_month := l_new_systems_rec.coterminate_day_month;
1529: END IF;
1530: ELSE
1531: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;

Line 1531: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;

1527: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;
1528: l_sys_hist_csr.new_coterminate_day_month := l_new_systems_rec.coterminate_day_month;
1529: END IF;
1530: ELSE
1531: l_sys_hist_csr.old_coterminate_day_month := fnd_api.g_miss_char;
1532: l_sys_hist_csr.new_coterminate_day_month := l_new_systems_rec.coterminate_day_month;
1533: END IF;
1534: --
1535: IF ( l_sys_hist_csr.old_autocreated_from_system IS NULL

Line 1538: OR ( l_new_systems_rec.autocreated_from_system_id = fnd_api.g_miss_num ) THEN

1534: --
1535: IF ( l_sys_hist_csr.old_autocreated_from_system IS NULL
1536: AND l_sys_hist_csr.new_autocreated_from_system IS NULL ) THEN
1537: IF ( l_new_systems_rec.autocreated_from_system_id = l_old_systems_rec.autocreated_from_system_id )
1538: OR ( l_new_systems_rec.autocreated_from_system_id = fnd_api.g_miss_num ) THEN
1539: l_sys_hist_csr.old_autocreated_from_system := NULL;
1540: l_sys_hist_csr.new_autocreated_from_system := NULL;
1541: ELSE
1542: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;

Line 1542: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;

1538: OR ( l_new_systems_rec.autocreated_from_system_id = fnd_api.g_miss_num ) THEN
1539: l_sys_hist_csr.old_autocreated_from_system := NULL;
1540: l_sys_hist_csr.new_autocreated_from_system := NULL;
1541: ELSE
1542: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;
1543: l_sys_hist_csr.new_autocreated_from_system := l_new_systems_rec.autocreated_from_system_id;
1544: END IF;
1545: ELSE
1546: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;

Line 1546: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;

1542: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;
1543: l_sys_hist_csr.new_autocreated_from_system := l_new_systems_rec.autocreated_from_system_id;
1544: END IF;
1545: ELSE
1546: l_sys_hist_csr.old_autocreated_from_system := fnd_api.g_miss_num;
1547: l_sys_hist_csr.new_autocreated_from_system := l_new_systems_rec.autocreated_from_system_id;
1548: END IF;
1549: --
1550: IF ( l_sys_hist_csr.old_config_system_type IS NULL

Line 1553: OR ( l_new_systems_rec.config_system_type = fnd_api.g_miss_char ) THEN

1549: --
1550: IF ( l_sys_hist_csr.old_config_system_type IS NULL
1551: AND l_sys_hist_csr.new_config_system_type IS NULL ) THEN
1552: IF ( l_new_systems_rec.config_system_type = l_old_systems_rec.config_system_type )
1553: OR ( l_new_systems_rec.config_system_type = fnd_api.g_miss_char ) THEN
1554: l_sys_hist_csr.old_config_system_type := NULL;
1555: l_sys_hist_csr.new_config_system_type := NULL;
1556: ELSE
1557: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;

Line 1557: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;

1553: OR ( l_new_systems_rec.config_system_type = fnd_api.g_miss_char ) THEN
1554: l_sys_hist_csr.old_config_system_type := NULL;
1555: l_sys_hist_csr.new_config_system_type := NULL;
1556: ELSE
1557: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;
1558: l_sys_hist_csr.new_config_system_type := l_new_systems_rec.config_system_type;
1559: END IF;
1560: ELSE
1561: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;

Line 1561: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;

1557: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;
1558: l_sys_hist_csr.new_config_system_type := l_new_systems_rec.config_system_type;
1559: END IF;
1560: ELSE
1561: l_sys_hist_csr.old_config_system_type := fnd_api.g_miss_char;
1562: l_sys_hist_csr.new_config_system_type := l_new_systems_rec.config_system_type;
1563: END IF;
1564: --
1565: IF ( l_sys_hist_csr.old_start_date_active IS NULL

Line 1568: OR ( l_new_systems_rec.start_date_active = fnd_api.g_miss_date ) THEN

1564: --
1565: IF ( l_sys_hist_csr.old_start_date_active IS NULL
1566: AND l_sys_hist_csr.new_start_date_active IS NULL ) THEN
1567: IF ( l_new_systems_rec.start_date_active = l_old_systems_rec.start_date_active )
1568: OR ( l_new_systems_rec.start_date_active = fnd_api.g_miss_date ) THEN
1569: l_sys_hist_csr.old_start_date_active := NULL;
1570: l_sys_hist_csr.new_start_date_active := NULL;
1571: ELSE
1572: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;

Line 1572: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;

1568: OR ( l_new_systems_rec.start_date_active = fnd_api.g_miss_date ) THEN
1569: l_sys_hist_csr.old_start_date_active := NULL;
1570: l_sys_hist_csr.new_start_date_active := NULL;
1571: ELSE
1572: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;
1573: l_sys_hist_csr.new_start_date_active := l_new_systems_rec.start_date_active;
1574: END IF;
1575: ELSE
1576: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;

Line 1576: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;

1572: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;
1573: l_sys_hist_csr.new_start_date_active := l_new_systems_rec.start_date_active;
1574: END IF;
1575: ELSE
1576: l_sys_hist_csr.old_start_date_active := fnd_api.g_miss_date;
1577: l_sys_hist_csr.new_start_date_active := l_new_systems_rec.start_date_active;
1578: END IF;
1579: --
1580: IF ( l_sys_hist_csr.old_end_date_active IS NULL

Line 1583: OR ( l_new_systems_rec.end_date_active = fnd_api.g_miss_date ) THEN

1579: --
1580: IF ( l_sys_hist_csr.old_end_date_active IS NULL
1581: AND l_sys_hist_csr.new_end_date_active IS NULL ) THEN
1582: IF ( l_new_systems_rec.end_date_active = l_old_systems_rec.end_date_active )
1583: OR ( l_new_systems_rec.end_date_active = fnd_api.g_miss_date ) THEN
1584: l_sys_hist_csr.old_end_date_active := NULL;
1585: l_sys_hist_csr.new_end_date_active := NULL;
1586: ELSE
1587: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;

Line 1587: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;

1583: OR ( l_new_systems_rec.end_date_active = fnd_api.g_miss_date ) THEN
1584: l_sys_hist_csr.old_end_date_active := NULL;
1585: l_sys_hist_csr.new_end_date_active := NULL;
1586: ELSE
1587: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;
1588: l_sys_hist_csr.new_end_date_active := l_new_systems_rec.end_date_active;
1589: END IF;
1590: ELSE
1591: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;

Line 1591: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;

1587: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;
1588: l_sys_hist_csr.new_end_date_active := l_new_systems_rec.end_date_active;
1589: END IF;
1590: ELSE
1591: l_sys_hist_csr.old_end_date_active := fnd_api.g_miss_date;
1592: l_sys_hist_csr.new_end_date_active := l_new_systems_rec.end_date_active;
1593: END IF;
1594: --
1595: IF ( l_sys_hist_csr.old_context IS NULL

Line 1598: OR ( l_new_systems_rec.context = fnd_api.g_miss_char ) THEN

1594: --
1595: IF ( l_sys_hist_csr.old_context IS NULL
1596: AND l_sys_hist_csr.new_context IS NULL ) THEN
1597: IF ( l_new_systems_rec.context = l_old_systems_rec.context )
1598: OR ( l_new_systems_rec.context = fnd_api.g_miss_char ) THEN
1599: l_sys_hist_csr.old_context := NULL;
1600: l_sys_hist_csr.new_context := NULL;
1601: ELSE
1602: l_sys_hist_csr.old_context := fnd_api.g_miss_char;

Line 1602: l_sys_hist_csr.old_context := fnd_api.g_miss_char;

1598: OR ( l_new_systems_rec.context = fnd_api.g_miss_char ) THEN
1599: l_sys_hist_csr.old_context := NULL;
1600: l_sys_hist_csr.new_context := NULL;
1601: ELSE
1602: l_sys_hist_csr.old_context := fnd_api.g_miss_char;
1603: l_sys_hist_csr.new_context := l_new_systems_rec.context;
1604: END IF;
1605: ELSE
1606: l_sys_hist_csr.old_context := fnd_api.g_miss_char;

Line 1606: l_sys_hist_csr.old_context := fnd_api.g_miss_char;

1602: l_sys_hist_csr.old_context := fnd_api.g_miss_char;
1603: l_sys_hist_csr.new_context := l_new_systems_rec.context;
1604: END IF;
1605: ELSE
1606: l_sys_hist_csr.old_context := fnd_api.g_miss_char;
1607: l_sys_hist_csr.new_context := l_new_systems_rec.context;
1608: END IF;
1609: --
1610: IF ( l_sys_hist_csr.old_attribute1 IS NULL

Line 1613: OR ( l_new_systems_rec.attribute1 = fnd_api.g_miss_char ) THEN

1609: --
1610: IF ( l_sys_hist_csr.old_attribute1 IS NULL
1611: AND l_sys_hist_csr.new_attribute1 IS NULL ) THEN
1612: IF ( l_new_systems_rec.attribute1 = l_old_systems_rec.attribute1 )
1613: OR ( l_new_systems_rec.attribute1 = fnd_api.g_miss_char ) THEN
1614: l_sys_hist_csr.old_attribute1 := NULL;
1615: l_sys_hist_csr.new_attribute1 := NULL;
1616: ELSE
1617: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;

Line 1617: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;

1613: OR ( l_new_systems_rec.attribute1 = fnd_api.g_miss_char ) THEN
1614: l_sys_hist_csr.old_attribute1 := NULL;
1615: l_sys_hist_csr.new_attribute1 := NULL;
1616: ELSE
1617: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;
1618: l_sys_hist_csr.new_attribute1 := l_new_systems_rec.attribute1;
1619: END IF;
1620: ELSE
1621: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;

Line 1621: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;

1617: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;
1618: l_sys_hist_csr.new_attribute1 := l_new_systems_rec.attribute1;
1619: END IF;
1620: ELSE
1621: l_sys_hist_csr.old_attribute1 := fnd_api.g_miss_char;
1622: l_sys_hist_csr.new_attribute1 := l_new_systems_rec.attribute1;
1623: END IF;
1624: --
1625: IF ( l_sys_hist_csr.old_attribute2 IS NULL

Line 1628: OR ( l_new_systems_rec.attribute2 = fnd_api.g_miss_char ) THEN

1624: --
1625: IF ( l_sys_hist_csr.old_attribute2 IS NULL
1626: AND l_sys_hist_csr.new_attribute2 IS NULL ) THEN
1627: IF ( l_new_systems_rec.attribute2 = l_old_systems_rec.attribute2 )
1628: OR ( l_new_systems_rec.attribute2 = fnd_api.g_miss_char ) THEN
1629: l_sys_hist_csr.old_attribute2 := NULL;
1630: l_sys_hist_csr.new_attribute2 := NULL;
1631: ELSE
1632: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;

Line 1632: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;

1628: OR ( l_new_systems_rec.attribute2 = fnd_api.g_miss_char ) THEN
1629: l_sys_hist_csr.old_attribute2 := NULL;
1630: l_sys_hist_csr.new_attribute2 := NULL;
1631: ELSE
1632: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;
1633: l_sys_hist_csr.new_attribute2 := l_new_systems_rec.attribute2;
1634: END IF;
1635: ELSE
1636: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;

Line 1636: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;

1632: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;
1633: l_sys_hist_csr.new_attribute2 := l_new_systems_rec.attribute2;
1634: END IF;
1635: ELSE
1636: l_sys_hist_csr.old_attribute2 := fnd_api.g_miss_char;
1637: l_sys_hist_csr.new_attribute2 := l_new_systems_rec.attribute2;
1638: END IF;
1639: --
1640: IF ( l_sys_hist_csr.old_attribute3 IS NULL

Line 1643: OR ( l_new_systems_rec.attribute3 = fnd_api.g_miss_char ) THEN

1639: --
1640: IF ( l_sys_hist_csr.old_attribute3 IS NULL
1641: AND l_sys_hist_csr.new_attribute3 IS NULL ) THEN
1642: IF ( l_new_systems_rec.attribute3 = l_old_systems_rec.attribute3 )
1643: OR ( l_new_systems_rec.attribute3 = fnd_api.g_miss_char ) THEN
1644: l_sys_hist_csr.old_attribute3 := NULL;
1645: l_sys_hist_csr.new_attribute3 := NULL;
1646: ELSE
1647: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;

Line 1647: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;

1643: OR ( l_new_systems_rec.attribute3 = fnd_api.g_miss_char ) THEN
1644: l_sys_hist_csr.old_attribute3 := NULL;
1645: l_sys_hist_csr.new_attribute3 := NULL;
1646: ELSE
1647: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;
1648: l_sys_hist_csr.new_attribute3 := l_new_systems_rec.attribute3;
1649: END IF;
1650: ELSE
1651: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;

Line 1651: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;

1647: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;
1648: l_sys_hist_csr.new_attribute3 := l_new_systems_rec.attribute3;
1649: END IF;
1650: ELSE
1651: l_sys_hist_csr.old_attribute3 := fnd_api.g_miss_char;
1652: l_sys_hist_csr.new_attribute3 := l_new_systems_rec.attribute3;
1653: END IF;
1654: --
1655: IF ( l_sys_hist_csr.old_attribute4 IS NULL

Line 1658: OR ( l_new_systems_rec.attribute4 = fnd_api.g_miss_char ) THEN

1654: --
1655: IF ( l_sys_hist_csr.old_attribute4 IS NULL
1656: AND l_sys_hist_csr.new_attribute4 IS NULL ) THEN
1657: IF ( l_new_systems_rec.attribute4 = l_old_systems_rec.attribute4 )
1658: OR ( l_new_systems_rec.attribute4 = fnd_api.g_miss_char ) THEN
1659: l_sys_hist_csr.old_attribute4 := NULL;
1660: l_sys_hist_csr.new_attribute4 := NULL;
1661: ELSE
1662: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;

Line 1662: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;

1658: OR ( l_new_systems_rec.attribute4 = fnd_api.g_miss_char ) THEN
1659: l_sys_hist_csr.old_attribute4 := NULL;
1660: l_sys_hist_csr.new_attribute4 := NULL;
1661: ELSE
1662: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;
1663: l_sys_hist_csr.new_attribute4 := l_new_systems_rec.attribute4;
1664: END IF;
1665: ELSE
1666: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;

Line 1666: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;

1662: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;
1663: l_sys_hist_csr.new_attribute4 := l_new_systems_rec.attribute4;
1664: END IF;
1665: ELSE
1666: l_sys_hist_csr.old_attribute4 := fnd_api.g_miss_char;
1667: l_sys_hist_csr.new_attribute4 := l_new_systems_rec.attribute4;
1668: END IF;
1669: --
1670: IF ( l_sys_hist_csr.old_attribute5 IS NULL

Line 1673: OR ( l_new_systems_rec.attribute5 = fnd_api.g_miss_char ) THEN

1669: --
1670: IF ( l_sys_hist_csr.old_attribute5 IS NULL
1671: AND l_sys_hist_csr.new_attribute5 IS NULL ) THEN
1672: IF ( l_new_systems_rec.attribute5 = l_old_systems_rec.attribute5 )
1673: OR ( l_new_systems_rec.attribute5 = fnd_api.g_miss_char ) THEN
1674: l_sys_hist_csr.old_attribute5 := NULL;
1675: l_sys_hist_csr.new_attribute5 := NULL;
1676: ELSE
1677: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;

Line 1677: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;

1673: OR ( l_new_systems_rec.attribute5 = fnd_api.g_miss_char ) THEN
1674: l_sys_hist_csr.old_attribute5 := NULL;
1675: l_sys_hist_csr.new_attribute5 := NULL;
1676: ELSE
1677: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;
1678: l_sys_hist_csr.new_attribute5 := l_new_systems_rec.attribute5;
1679: END IF;
1680: ELSE
1681: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;

Line 1681: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;

1677: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;
1678: l_sys_hist_csr.new_attribute5 := l_new_systems_rec.attribute5;
1679: END IF;
1680: ELSE
1681: l_sys_hist_csr.old_attribute5 := fnd_api.g_miss_char;
1682: l_sys_hist_csr.new_attribute5 := l_new_systems_rec.attribute5;
1683: END IF;
1684: --
1685: IF ( l_sys_hist_csr.old_attribute6 IS NULL

Line 1688: OR ( l_new_systems_rec.attribute6 = fnd_api.g_miss_char ) THEN

1684: --
1685: IF ( l_sys_hist_csr.old_attribute6 IS NULL
1686: AND l_sys_hist_csr.new_attribute6 IS NULL ) THEN
1687: IF ( l_new_systems_rec.attribute6 = l_old_systems_rec.attribute6 )
1688: OR ( l_new_systems_rec.attribute6 = fnd_api.g_miss_char ) THEN
1689: l_sys_hist_csr.old_attribute6 := NULL;
1690: l_sys_hist_csr.new_attribute6 := NULL;
1691: ELSE
1692: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;

Line 1692: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;

1688: OR ( l_new_systems_rec.attribute6 = fnd_api.g_miss_char ) THEN
1689: l_sys_hist_csr.old_attribute6 := NULL;
1690: l_sys_hist_csr.new_attribute6 := NULL;
1691: ELSE
1692: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;
1693: l_sys_hist_csr.new_attribute6 := l_new_systems_rec.attribute6;
1694: END IF;
1695: ELSE
1696: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;

Line 1696: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;

1692: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;
1693: l_sys_hist_csr.new_attribute6 := l_new_systems_rec.attribute6;
1694: END IF;
1695: ELSE
1696: l_sys_hist_csr.old_attribute6 := fnd_api.g_miss_char;
1697: l_sys_hist_csr.new_attribute6 := l_new_systems_rec.attribute6;
1698: END IF;
1699: --
1700: IF ( l_sys_hist_csr.old_attribute7 IS NULL

Line 1703: OR ( l_new_systems_rec.attribute7 = fnd_api.g_miss_char ) THEN

1699: --
1700: IF ( l_sys_hist_csr.old_attribute7 IS NULL
1701: AND l_sys_hist_csr.new_attribute7 IS NULL ) THEN
1702: IF ( l_new_systems_rec.attribute7 = l_old_systems_rec.attribute7 )
1703: OR ( l_new_systems_rec.attribute7 = fnd_api.g_miss_char ) THEN
1704: l_sys_hist_csr.old_attribute7 := NULL;
1705: l_sys_hist_csr.new_attribute7 := NULL;
1706: ELSE
1707: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;

Line 1707: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;

1703: OR ( l_new_systems_rec.attribute7 = fnd_api.g_miss_char ) THEN
1704: l_sys_hist_csr.old_attribute7 := NULL;
1705: l_sys_hist_csr.new_attribute7 := NULL;
1706: ELSE
1707: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;
1708: l_sys_hist_csr.new_attribute7 := l_new_systems_rec.attribute7;
1709: END IF;
1710: ELSE
1711: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;

Line 1711: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;

1707: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;
1708: l_sys_hist_csr.new_attribute7 := l_new_systems_rec.attribute7;
1709: END IF;
1710: ELSE
1711: l_sys_hist_csr.old_attribute7 := fnd_api.g_miss_char;
1712: l_sys_hist_csr.new_attribute7 := l_new_systems_rec.attribute7;
1713: END IF;
1714: --
1715: IF ( l_sys_hist_csr.old_attribute8 IS NULL

Line 1718: OR ( l_new_systems_rec.attribute8 = fnd_api.g_miss_char ) THEN

1714: --
1715: IF ( l_sys_hist_csr.old_attribute8 IS NULL
1716: AND l_sys_hist_csr.new_attribute8 IS NULL ) THEN
1717: IF ( l_new_systems_rec.attribute8 = l_old_systems_rec.attribute8 )
1718: OR ( l_new_systems_rec.attribute8 = fnd_api.g_miss_char ) THEN
1719: l_sys_hist_csr.old_attribute8 := NULL;
1720: l_sys_hist_csr.new_attribute8 := NULL;
1721: ELSE
1722: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;

Line 1722: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;

1718: OR ( l_new_systems_rec.attribute8 = fnd_api.g_miss_char ) THEN
1719: l_sys_hist_csr.old_attribute8 := NULL;
1720: l_sys_hist_csr.new_attribute8 := NULL;
1721: ELSE
1722: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;
1723: l_sys_hist_csr.new_attribute8 := l_new_systems_rec.attribute8;
1724: END IF;
1725: ELSE
1726: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;

Line 1726: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;

1722: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;
1723: l_sys_hist_csr.new_attribute8 := l_new_systems_rec.attribute8;
1724: END IF;
1725: ELSE
1726: l_sys_hist_csr.old_attribute8 := fnd_api.g_miss_char;
1727: l_sys_hist_csr.new_attribute8 := l_new_systems_rec.attribute8;
1728: END IF;
1729: --
1730: IF ( l_sys_hist_csr.old_attribute9 IS NULL

Line 1733: OR ( l_new_systems_rec.attribute9 = fnd_api.g_miss_char ) THEN

1729: --
1730: IF ( l_sys_hist_csr.old_attribute9 IS NULL
1731: AND l_sys_hist_csr.new_attribute9 IS NULL ) THEN
1732: IF ( l_new_systems_rec.attribute9 = l_old_systems_rec.attribute9 )
1733: OR ( l_new_systems_rec.attribute9 = fnd_api.g_miss_char ) THEN
1734: l_sys_hist_csr.old_attribute9 := NULL;
1735: l_sys_hist_csr.new_attribute9 := NULL;
1736: ELSE
1737: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;

Line 1737: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;

1733: OR ( l_new_systems_rec.attribute9 = fnd_api.g_miss_char ) THEN
1734: l_sys_hist_csr.old_attribute9 := NULL;
1735: l_sys_hist_csr.new_attribute9 := NULL;
1736: ELSE
1737: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;
1738: l_sys_hist_csr.new_attribute9 := l_new_systems_rec.attribute9;
1739: END IF;
1740: ELSE
1741: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;

Line 1741: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;

1737: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;
1738: l_sys_hist_csr.new_attribute9 := l_new_systems_rec.attribute9;
1739: END IF;
1740: ELSE
1741: l_sys_hist_csr.old_attribute9 := fnd_api.g_miss_char;
1742: l_sys_hist_csr.new_attribute9 := l_new_systems_rec.attribute9;
1743: END IF;
1744: --
1745: IF ( l_sys_hist_csr.old_attribute10 IS NULL

Line 1748: OR ( l_new_systems_rec.attribute10 = fnd_api.g_miss_char ) THEN

1744: --
1745: IF ( l_sys_hist_csr.old_attribute10 IS NULL
1746: AND l_sys_hist_csr.new_attribute10 IS NULL ) THEN
1747: IF ( l_new_systems_rec.attribute10 = l_old_systems_rec.attribute10 )
1748: OR ( l_new_systems_rec.attribute10 = fnd_api.g_miss_char ) THEN
1749: l_sys_hist_csr.old_attribute10 := NULL;
1750: l_sys_hist_csr.new_attribute10 := NULL;
1751: ELSE
1752: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;

Line 1752: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;

1748: OR ( l_new_systems_rec.attribute10 = fnd_api.g_miss_char ) THEN
1749: l_sys_hist_csr.old_attribute10 := NULL;
1750: l_sys_hist_csr.new_attribute10 := NULL;
1751: ELSE
1752: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;
1753: l_sys_hist_csr.new_attribute10 := l_new_systems_rec.attribute10;
1754: END IF;
1755: ELSE
1756: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;

Line 1756: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;

1752: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;
1753: l_sys_hist_csr.new_attribute10 := l_new_systems_rec.attribute10;
1754: END IF;
1755: ELSE
1756: l_sys_hist_csr.old_attribute10 := fnd_api.g_miss_char;
1757: l_sys_hist_csr.new_attribute10 := l_new_systems_rec.attribute10;
1758: END IF;
1759: --
1760: IF ( l_sys_hist_csr.old_attribute11 IS NULL

Line 1763: OR ( l_new_systems_rec.attribute11 = fnd_api.g_miss_char ) THEN

1759: --
1760: IF ( l_sys_hist_csr.old_attribute11 IS NULL
1761: AND l_sys_hist_csr.new_attribute11 IS NULL ) THEN
1762: IF ( l_new_systems_rec.attribute11 = l_old_systems_rec.attribute11 )
1763: OR ( l_new_systems_rec.attribute11 = fnd_api.g_miss_char ) THEN
1764: l_sys_hist_csr.old_attribute11 := NULL;
1765: l_sys_hist_csr.new_attribute11 := NULL;
1766: ELSE
1767: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;

Line 1767: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;

1763: OR ( l_new_systems_rec.attribute11 = fnd_api.g_miss_char ) THEN
1764: l_sys_hist_csr.old_attribute11 := NULL;
1765: l_sys_hist_csr.new_attribute11 := NULL;
1766: ELSE
1767: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;
1768: l_sys_hist_csr.new_attribute11 := l_new_systems_rec.attribute11;
1769: END IF;
1770: ELSE
1771: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;

Line 1771: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;

1767: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;
1768: l_sys_hist_csr.new_attribute11 := l_new_systems_rec.attribute11;
1769: END IF;
1770: ELSE
1771: l_sys_hist_csr.old_attribute11 := fnd_api.g_miss_char;
1772: l_sys_hist_csr.new_attribute11 := l_new_systems_rec.attribute11;
1773: END IF;
1774: --
1775: IF ( l_sys_hist_csr.old_attribute12 IS NULL

Line 1778: OR ( l_new_systems_rec.attribute12 = fnd_api.g_miss_char ) THEN

1774: --
1775: IF ( l_sys_hist_csr.old_attribute12 IS NULL
1776: AND l_sys_hist_csr.new_attribute12 IS NULL ) THEN
1777: IF ( l_new_systems_rec.attribute12 = l_old_systems_rec.attribute12 )
1778: OR ( l_new_systems_rec.attribute12 = fnd_api.g_miss_char ) THEN
1779: l_sys_hist_csr.old_attribute12 := NULL;
1780: l_sys_hist_csr.new_attribute12 := NULL;
1781: ELSE
1782: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;

Line 1782: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;

1778: OR ( l_new_systems_rec.attribute12 = fnd_api.g_miss_char ) THEN
1779: l_sys_hist_csr.old_attribute12 := NULL;
1780: l_sys_hist_csr.new_attribute12 := NULL;
1781: ELSE
1782: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;
1783: l_sys_hist_csr.new_attribute12 := l_new_systems_rec.attribute12;
1784: END IF;
1785: ELSE
1786: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;

Line 1786: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;

1782: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;
1783: l_sys_hist_csr.new_attribute12 := l_new_systems_rec.attribute12;
1784: END IF;
1785: ELSE
1786: l_sys_hist_csr.old_attribute12 := fnd_api.g_miss_char;
1787: l_sys_hist_csr.new_attribute12 := l_new_systems_rec.attribute12;
1788: END IF;
1789: --
1790: IF ( l_sys_hist_csr.old_attribute13 IS NULL

Line 1793: OR ( l_new_systems_rec.attribute13 = fnd_api.g_miss_char ) THEN

1789: --
1790: IF ( l_sys_hist_csr.old_attribute13 IS NULL
1791: AND l_sys_hist_csr.new_attribute13 IS NULL ) THEN
1792: IF ( l_new_systems_rec.attribute13 = l_old_systems_rec.attribute13 )
1793: OR ( l_new_systems_rec.attribute13 = fnd_api.g_miss_char ) THEN
1794: l_sys_hist_csr.old_attribute13 := NULL;
1795: l_sys_hist_csr.new_attribute13 := NULL;
1796: ELSE
1797: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;

Line 1797: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;

1793: OR ( l_new_systems_rec.attribute13 = fnd_api.g_miss_char ) THEN
1794: l_sys_hist_csr.old_attribute13 := NULL;
1795: l_sys_hist_csr.new_attribute13 := NULL;
1796: ELSE
1797: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;
1798: l_sys_hist_csr.new_attribute13 := l_new_systems_rec.attribute13;
1799: END IF;
1800: ELSE
1801: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;

Line 1801: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;

1797: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;
1798: l_sys_hist_csr.new_attribute13 := l_new_systems_rec.attribute13;
1799: END IF;
1800: ELSE
1801: l_sys_hist_csr.old_attribute13 := fnd_api.g_miss_char;
1802: l_sys_hist_csr.new_attribute13 := l_new_systems_rec.attribute13;
1803: END IF;
1804: --
1805: IF ( l_sys_hist_csr.old_attribute14 IS NULL

Line 1808: OR ( l_new_systems_rec.attribute14 = fnd_api.g_miss_char ) THEN

1804: --
1805: IF ( l_sys_hist_csr.old_attribute14 IS NULL
1806: AND l_sys_hist_csr.new_attribute14 IS NULL ) THEN
1807: IF ( l_new_systems_rec.attribute14 = l_old_systems_rec.attribute14 )
1808: OR ( l_new_systems_rec.attribute14 = fnd_api.g_miss_char ) THEN
1809: l_sys_hist_csr.old_attribute14 := NULL;
1810: l_sys_hist_csr.new_attribute14 := NULL;
1811: ELSE
1812: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;

Line 1812: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;

1808: OR ( l_new_systems_rec.attribute14 = fnd_api.g_miss_char ) THEN
1809: l_sys_hist_csr.old_attribute14 := NULL;
1810: l_sys_hist_csr.new_attribute14 := NULL;
1811: ELSE
1812: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;
1813: l_sys_hist_csr.new_attribute14 := l_new_systems_rec.attribute14;
1814: END IF;
1815: ELSE
1816: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;

Line 1816: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;

1812: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;
1813: l_sys_hist_csr.new_attribute14 := l_new_systems_rec.attribute14;
1814: END IF;
1815: ELSE
1816: l_sys_hist_csr.old_attribute14 := fnd_api.g_miss_char;
1817: l_sys_hist_csr.new_attribute14 := l_new_systems_rec.attribute14;
1818: END IF;
1819: --
1820: IF ( l_sys_hist_csr.old_attribute15 IS NULL

Line 1823: OR ( l_new_systems_rec.attribute15 = fnd_api.g_miss_char ) THEN

1819: --
1820: IF ( l_sys_hist_csr.old_attribute15 IS NULL
1821: AND l_sys_hist_csr.new_attribute15 IS NULL ) THEN
1822: IF ( l_new_systems_rec.attribute15 = l_old_systems_rec.attribute15 )
1823: OR ( l_new_systems_rec.attribute15 = fnd_api.g_miss_char ) THEN
1824: l_sys_hist_csr.old_attribute15 := NULL;
1825: l_sys_hist_csr.new_attribute15 := NULL;
1826: ELSE
1827: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;

Line 1827: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;

1823: OR ( l_new_systems_rec.attribute15 = fnd_api.g_miss_char ) THEN
1824: l_sys_hist_csr.old_attribute15 := NULL;
1825: l_sys_hist_csr.new_attribute15 := NULL;
1826: ELSE
1827: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;
1828: l_sys_hist_csr.new_attribute15 := l_new_systems_rec.attribute15;
1829: END IF;
1830: ELSE
1831: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;

Line 1831: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;

1827: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;
1828: l_sys_hist_csr.new_attribute15 := l_new_systems_rec.attribute15;
1829: END IF;
1830: ELSE
1831: l_sys_hist_csr.old_attribute15 := fnd_api.g_miss_char;
1832: l_sys_hist_csr.new_attribute15 := l_new_systems_rec.attribute15;
1833: END IF;
1834: --
1835: IF ( l_sys_hist_csr.old_name IS NULL

Line 1838: OR ( l_new_systems_rec.name = fnd_api.g_miss_char ) THEN

1834: --
1835: IF ( l_sys_hist_csr.old_name IS NULL
1836: AND l_sys_hist_csr.new_name IS NULL ) THEN
1837: IF ( l_new_systems_rec.name = l_old_systems_rec.name )
1838: OR ( l_new_systems_rec.name = fnd_api.g_miss_char ) THEN
1839: l_sys_hist_csr.old_name := NULL;
1840: l_sys_hist_csr.new_name := NULL;
1841: ELSE
1842: l_sys_hist_csr.old_name := fnd_api.g_miss_char;

Line 1842: l_sys_hist_csr.old_name := fnd_api.g_miss_char;

1838: OR ( l_new_systems_rec.name = fnd_api.g_miss_char ) THEN
1839: l_sys_hist_csr.old_name := NULL;
1840: l_sys_hist_csr.new_name := NULL;
1841: ELSE
1842: l_sys_hist_csr.old_name := fnd_api.g_miss_char;
1843: l_sys_hist_csr.new_name := l_new_systems_rec.name;
1844: END IF;
1845: ELSE
1846: l_sys_hist_csr.old_name := fnd_api.g_miss_char;

Line 1846: l_sys_hist_csr.old_name := fnd_api.g_miss_char;

1842: l_sys_hist_csr.old_name := fnd_api.g_miss_char;
1843: l_sys_hist_csr.new_name := l_new_systems_rec.name;
1844: END IF;
1845: ELSE
1846: l_sys_hist_csr.old_name := fnd_api.g_miss_char;
1847: l_sys_hist_csr.new_name := l_new_systems_rec.name;
1848: END IF;
1849: --
1850: IF ( l_sys_hist_csr.old_description IS NULL

Line 1853: OR ( l_new_systems_rec.description = fnd_api.g_miss_char ) THEN

1849: --
1850: IF ( l_sys_hist_csr.old_description IS NULL
1851: AND l_sys_hist_csr.new_description IS NULL ) THEN
1852: IF ( l_new_systems_rec.description = l_old_systems_rec.description )
1853: OR ( l_new_systems_rec.description = fnd_api.g_miss_char ) THEN
1854: l_sys_hist_csr.old_description := NULL;
1855: l_sys_hist_csr.new_description := NULL;
1856: ELSE
1857: l_sys_hist_csr.old_description := fnd_api.g_miss_char;

Line 1857: l_sys_hist_csr.old_description := fnd_api.g_miss_char;

1853: OR ( l_new_systems_rec.description = fnd_api.g_miss_char ) THEN
1854: l_sys_hist_csr.old_description := NULL;
1855: l_sys_hist_csr.new_description := NULL;
1856: ELSE
1857: l_sys_hist_csr.old_description := fnd_api.g_miss_char;
1858: l_sys_hist_csr.new_description := l_new_systems_rec.description;
1859: END IF;
1860: ELSE
1861: l_sys_hist_csr.old_description := fnd_api.g_miss_char;

Line 1861: l_sys_hist_csr.old_description := fnd_api.g_miss_char;

1857: l_sys_hist_csr.old_description := fnd_api.g_miss_char;
1858: l_sys_hist_csr.new_description := l_new_systems_rec.description;
1859: END IF;
1860: ELSE
1861: l_sys_hist_csr.old_description := fnd_api.g_miss_char;
1862: l_sys_hist_csr.new_description := l_new_systems_rec.description;
1863: END IF;
1864: --
1865: IF ( l_sys_hist_csr.old_operating_unit_id IS NULL

Line 1868: OR ( l_new_systems_rec.operating_unit_id = fnd_api.g_miss_num ) THEN

1864: --
1865: IF ( l_sys_hist_csr.old_operating_unit_id IS NULL
1866: AND l_sys_hist_csr.new_operating_unit_id IS NULL ) THEN
1867: IF ( l_new_systems_rec.operating_unit_id = l_old_systems_rec.operating_unit_id )
1868: OR ( l_new_systems_rec.operating_unit_id = fnd_api.g_miss_num ) THEN
1869: l_sys_hist_csr.old_operating_unit_id := NULL;
1870: l_sys_hist_csr.new_operating_unit_id := NULL;
1871: ELSE
1872: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;

Line 1872: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;

1868: OR ( l_new_systems_rec.operating_unit_id = fnd_api.g_miss_num ) THEN
1869: l_sys_hist_csr.old_operating_unit_id := NULL;
1870: l_sys_hist_csr.new_operating_unit_id := NULL;
1871: ELSE
1872: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;
1873: l_sys_hist_csr.new_operating_unit_id := l_new_systems_rec.operating_unit_id;
1874: END IF;
1875: ELSE
1876: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;

Line 1876: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;

1872: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;
1873: l_sys_hist_csr.new_operating_unit_id := l_new_systems_rec.operating_unit_id;
1874: END IF;
1875: ELSE
1876: l_sys_hist_csr.old_operating_unit_id := fnd_api.g_miss_num;
1877: l_sys_hist_csr.new_operating_unit_id := l_new_systems_rec.operating_unit_id;
1878: END IF;
1879: --
1880:

Line 1883: p_system_id => fnd_api.g_miss_num,

1879: --
1880:
1881: csi_systems_h_pkg.update_row(
1882: p_system_history_id => l_sys_hist_id,
1883: p_system_id => fnd_api.g_miss_num,
1884: p_transaction_id => fnd_api.g_miss_num,
1885: p_old_customer_id => l_sys_hist_csr.old_customer_id,
1886: p_new_customer_id => l_sys_hist_csr.new_customer_id,
1887: p_old_system_type_code => l_sys_hist_csr.old_system_type_code,

Line 1884: p_transaction_id => fnd_api.g_miss_num,

1880:
1881: csi_systems_h_pkg.update_row(
1882: p_system_history_id => l_sys_hist_id,
1883: p_system_id => fnd_api.g_miss_num,
1884: p_transaction_id => fnd_api.g_miss_num,
1885: p_old_customer_id => l_sys_hist_csr.old_customer_id,
1886: p_new_customer_id => l_sys_hist_csr.new_customer_id,
1887: p_old_system_type_code => l_sys_hist_csr.old_system_type_code,
1888: p_new_system_type_code => l_sys_hist_csr.new_system_type_code,

Line 1949: p_full_dump_flag => fnd_api.g_miss_char,

1945: p_old_attribute14 => l_sys_hist_csr.old_attribute14,
1946: p_new_attribute14 => l_sys_hist_csr.new_attribute14,
1947: p_old_attribute15 => l_sys_hist_csr.old_attribute15,
1948: p_new_attribute15 => l_sys_hist_csr.new_attribute15,
1949: p_full_dump_flag => fnd_api.g_miss_char,
1950: p_created_by => fnd_api.g_miss_num,
1951: p_creation_date => fnd_api.g_miss_date,
1952: p_last_updated_by => fnd_global.user_id,
1953: p_last_update_date => SYSDATE,

Line 1950: p_created_by => fnd_api.g_miss_num,

1946: p_new_attribute14 => l_sys_hist_csr.new_attribute14,
1947: p_old_attribute15 => l_sys_hist_csr.old_attribute15,
1948: p_new_attribute15 => l_sys_hist_csr.new_attribute15,
1949: p_full_dump_flag => fnd_api.g_miss_char,
1950: p_created_by => fnd_api.g_miss_num,
1951: p_creation_date => fnd_api.g_miss_date,
1952: p_last_updated_by => fnd_global.user_id,
1953: p_last_update_date => SYSDATE,
1954: p_last_update_login => fnd_global.conc_login_id,

Line 1951: p_creation_date => fnd_api.g_miss_date,

1947: p_old_attribute15 => l_sys_hist_csr.old_attribute15,
1948: p_new_attribute15 => l_sys_hist_csr.new_attribute15,
1949: p_full_dump_flag => fnd_api.g_miss_char,
1950: p_created_by => fnd_api.g_miss_num,
1951: p_creation_date => fnd_api.g_miss_date,
1952: p_last_updated_by => fnd_global.user_id,
1953: p_last_update_date => SYSDATE,
1954: p_last_update_login => fnd_global.conc_login_id,
1955: p_object_version_number => fnd_api.g_miss_num,

Line 1955: p_object_version_number => fnd_api.g_miss_num,

1951: p_creation_date => fnd_api.g_miss_date,
1952: p_last_updated_by => fnd_global.user_id,
1953: p_last_update_date => SYSDATE,
1954: p_last_update_login => fnd_global.conc_login_id,
1955: p_object_version_number => fnd_api.g_miss_num,
1956: p_old_name => l_sys_hist_csr.old_name,
1957: p_new_name => l_sys_hist_csr.new_name,
1958: p_old_description => l_sys_hist_csr.old_description,
1959: p_new_description => l_sys_hist_csr.new_description,

Line 2052: IF (l_new_systems_rec.customer_id = fnd_api.g_miss_num) OR

2048: p_new_operating_unit_id => l_new_systems_rec.operating_unit_id
2049: );
2050: ELSE
2051:
2052: IF (l_new_systems_rec.customer_id = fnd_api.g_miss_num) OR
2053: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN
2054: l_systems_hist_rec.old_customer_id := NULL;
2055: l_systems_hist_rec.new_customer_id := NULL;
2056: ELSIF

Line 2053: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN

2049: );
2050: ELSE
2051:
2052: IF (l_new_systems_rec.customer_id = fnd_api.g_miss_num) OR
2053: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN
2054: l_systems_hist_rec.old_customer_id := NULL;
2055: l_systems_hist_rec.new_customer_id := NULL;
2056: ELSIF
2057: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN

Line 2057: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN

2053: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN
2054: l_systems_hist_rec.old_customer_id := NULL;
2055: l_systems_hist_rec.new_customer_id := NULL;
2056: ELSIF
2057: NVL(l_old_systems_rec.customer_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.customer_id,fnd_api.g_miss_num) THEN
2058: l_systems_hist_rec.old_customer_id := l_old_systems_rec.customer_id ;
2059: l_systems_hist_rec.new_customer_id := l_new_systems_rec.customer_id ;
2060: END IF;
2061: --

Line 2062: IF (l_new_systems_rec.system_type_code = fnd_api.g_miss_char) OR

2058: l_systems_hist_rec.old_customer_id := l_old_systems_rec.customer_id ;
2059: l_systems_hist_rec.new_customer_id := l_new_systems_rec.customer_id ;
2060: END IF;
2061: --
2062: IF (l_new_systems_rec.system_type_code = fnd_api.g_miss_char) OR
2063: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN
2064: l_systems_hist_rec.old_system_type_code := NULL;
2065: l_systems_hist_rec.new_system_type_code := NULL;
2066: ELSIF

Line 2063: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN

2059: l_systems_hist_rec.new_customer_id := l_new_systems_rec.customer_id ;
2060: END IF;
2061: --
2062: IF (l_new_systems_rec.system_type_code = fnd_api.g_miss_char) OR
2063: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN
2064: l_systems_hist_rec.old_system_type_code := NULL;
2065: l_systems_hist_rec.new_system_type_code := NULL;
2066: ELSIF
2067: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN

Line 2067: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN

2063: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN
2064: l_systems_hist_rec.old_system_type_code := NULL;
2065: l_systems_hist_rec.new_system_type_code := NULL;
2066: ELSIF
2067: NVL(l_old_systems_rec.system_type_code,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.system_type_code,fnd_api.g_miss_char) THEN
2068: l_systems_hist_rec.old_system_type_code := l_old_systems_rec.system_type_code ;
2069: l_systems_hist_rec.new_system_type_code := l_new_systems_rec.system_type_code ;
2070: END IF;
2071: --

Line 2072: IF (l_new_systems_rec.system_number = fnd_api.g_miss_char) OR

2068: l_systems_hist_rec.old_system_type_code := l_old_systems_rec.system_type_code ;
2069: l_systems_hist_rec.new_system_type_code := l_new_systems_rec.system_type_code ;
2070: END IF;
2071: --
2072: IF (l_new_systems_rec.system_number = fnd_api.g_miss_char) OR
2073: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN
2074: l_systems_hist_rec.old_system_number := NULL;
2075: l_systems_hist_rec.new_system_number := NULL;
2076: ELSIF

Line 2073: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN

2069: l_systems_hist_rec.new_system_type_code := l_new_systems_rec.system_type_code ;
2070: END IF;
2071: --
2072: IF (l_new_systems_rec.system_number = fnd_api.g_miss_char) OR
2073: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN
2074: l_systems_hist_rec.old_system_number := NULL;
2075: l_systems_hist_rec.new_system_number := NULL;
2076: ELSIF
2077: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN

Line 2077: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN

2073: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) = NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN
2074: l_systems_hist_rec.old_system_number := NULL;
2075: l_systems_hist_rec.new_system_number := NULL;
2076: ELSIF
2077: NVL(l_old_systems_rec.system_number,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.system_number,fnd_api.g_miss_char) THEN
2078: l_systems_hist_rec.old_system_number := l_old_systems_rec.system_number ;
2079: l_systems_hist_rec.new_system_number := l_new_systems_rec.system_number ;
2080: END IF;
2081: --

Line 2082: IF (l_new_systems_rec.parent_system_id = fnd_api.g_miss_num) OR

2078: l_systems_hist_rec.old_system_number := l_old_systems_rec.system_number ;
2079: l_systems_hist_rec.new_system_number := l_new_systems_rec.system_number ;
2080: END IF;
2081: --
2082: IF (l_new_systems_rec.parent_system_id = fnd_api.g_miss_num) OR
2083: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN
2084: l_systems_hist_rec.old_parent_system_id := NULL;
2085: l_systems_hist_rec.new_parent_system_id := NULL;
2086: ELSIF

Line 2083: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN

2079: l_systems_hist_rec.new_system_number := l_new_systems_rec.system_number ;
2080: END IF;
2081: --
2082: IF (l_new_systems_rec.parent_system_id = fnd_api.g_miss_num) OR
2083: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN
2084: l_systems_hist_rec.old_parent_system_id := NULL;
2085: l_systems_hist_rec.new_parent_system_id := NULL;
2086: ELSIF
2087: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN

Line 2087: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN

2083: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN
2084: l_systems_hist_rec.old_parent_system_id := NULL;
2085: l_systems_hist_rec.new_parent_system_id := NULL;
2086: ELSIF
2087: NVL(l_old_systems_rec.parent_system_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.parent_system_id,fnd_api.g_miss_num) THEN
2088: l_systems_hist_rec.old_parent_system_id := l_old_systems_rec.parent_system_id ;
2089: l_systems_hist_rec.new_parent_system_id := l_new_systems_rec.parent_system_id ;
2090: END IF;
2091: --

Line 2092: IF (l_new_systems_rec.ship_to_contact_id = fnd_api.g_miss_num) OR

2088: l_systems_hist_rec.old_parent_system_id := l_old_systems_rec.parent_system_id ;
2089: l_systems_hist_rec.new_parent_system_id := l_new_systems_rec.parent_system_id ;
2090: END IF;
2091: --
2092: IF (l_new_systems_rec.ship_to_contact_id = fnd_api.g_miss_num) OR
2093: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN
2094: l_systems_hist_rec.old_ship_to_contact_id := NULL;
2095: l_systems_hist_rec.new_ship_to_contact_id := NULL;
2096: ELSIF

Line 2093: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN

2089: l_systems_hist_rec.new_parent_system_id := l_new_systems_rec.parent_system_id ;
2090: END IF;
2091: --
2092: IF (l_new_systems_rec.ship_to_contact_id = fnd_api.g_miss_num) OR
2093: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN
2094: l_systems_hist_rec.old_ship_to_contact_id := NULL;
2095: l_systems_hist_rec.new_ship_to_contact_id := NULL;
2096: ELSIF
2097: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN

Line 2097: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN

2093: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN
2094: l_systems_hist_rec.old_ship_to_contact_id := NULL;
2095: l_systems_hist_rec.new_ship_to_contact_id := NULL;
2096: ELSIF
2097: NVL(l_old_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.ship_to_contact_id,fnd_api.g_miss_num) THEN
2098: l_systems_hist_rec.old_ship_to_contact_id := l_old_systems_rec.ship_to_contact_id ;
2099: l_systems_hist_rec.new_ship_to_contact_id := l_new_systems_rec.ship_to_contact_id ;
2100: END IF;
2101: --

Line 2102: IF (l_new_systems_rec.bill_to_contact_id = fnd_api.g_miss_num) OR

2098: l_systems_hist_rec.old_ship_to_contact_id := l_old_systems_rec.ship_to_contact_id ;
2099: l_systems_hist_rec.new_ship_to_contact_id := l_new_systems_rec.ship_to_contact_id ;
2100: END IF;
2101: --
2102: IF (l_new_systems_rec.bill_to_contact_id = fnd_api.g_miss_num) OR
2103: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN
2104: l_systems_hist_rec.old_bill_to_contact_id := NULL;
2105: l_systems_hist_rec.new_bill_to_contact_id := NULL;
2106: ELSIF

Line 2103: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN

2099: l_systems_hist_rec.new_ship_to_contact_id := l_new_systems_rec.ship_to_contact_id ;
2100: END IF;
2101: --
2102: IF (l_new_systems_rec.bill_to_contact_id = fnd_api.g_miss_num) OR
2103: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN
2104: l_systems_hist_rec.old_bill_to_contact_id := NULL;
2105: l_systems_hist_rec.new_bill_to_contact_id := NULL;
2106: ELSIF
2107: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN

Line 2107: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN

2103: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN
2104: l_systems_hist_rec.old_bill_to_contact_id := NULL;
2105: l_systems_hist_rec.new_bill_to_contact_id := NULL;
2106: ELSIF
2107: NVL(l_old_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.bill_to_contact_id,fnd_api.g_miss_num) THEN
2108: l_systems_hist_rec.old_bill_to_contact_id := l_old_systems_rec.bill_to_contact_id ;
2109: l_systems_hist_rec.new_bill_to_contact_id := l_new_systems_rec.bill_to_contact_id ;
2110: END IF;
2111: --

Line 2112: IF (l_new_systems_rec.technical_contact_id = fnd_api.g_miss_num) OR

2108: l_systems_hist_rec.old_bill_to_contact_id := l_old_systems_rec.bill_to_contact_id ;
2109: l_systems_hist_rec.new_bill_to_contact_id := l_new_systems_rec.bill_to_contact_id ;
2110: END IF;
2111: --
2112: IF (l_new_systems_rec.technical_contact_id = fnd_api.g_miss_num) OR
2113: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN
2114: l_systems_hist_rec.old_technical_contact_id := NULL;
2115: l_systems_hist_rec.new_technical_contact_id := NULL;
2116: ELSIF

Line 2113: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN

2109: l_systems_hist_rec.new_bill_to_contact_id := l_new_systems_rec.bill_to_contact_id ;
2110: END IF;
2111: --
2112: IF (l_new_systems_rec.technical_contact_id = fnd_api.g_miss_num) OR
2113: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN
2114: l_systems_hist_rec.old_technical_contact_id := NULL;
2115: l_systems_hist_rec.new_technical_contact_id := NULL;
2116: ELSIF
2117: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN

Line 2117: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN

2113: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN
2114: l_systems_hist_rec.old_technical_contact_id := NULL;
2115: l_systems_hist_rec.new_technical_contact_id := NULL;
2116: ELSIF
2117: NVL(l_old_systems_rec.technical_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.technical_contact_id,fnd_api.g_miss_num) THEN
2118: l_systems_hist_rec.old_technical_contact_id := l_old_systems_rec.technical_contact_id ;
2119: l_systems_hist_rec.new_technical_contact_id := l_new_systems_rec.technical_contact_id ;
2120: END IF;
2121: --

Line 2122: IF (l_new_systems_rec.service_admin_contact_id = fnd_api.g_miss_num) OR

2118: l_systems_hist_rec.old_technical_contact_id := l_old_systems_rec.technical_contact_id ;
2119: l_systems_hist_rec.new_technical_contact_id := l_new_systems_rec.technical_contact_id ;
2120: END IF;
2121: --
2122: IF (l_new_systems_rec.service_admin_contact_id = fnd_api.g_miss_num) OR
2123: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN
2124: l_systems_hist_rec.old_service_admin_contact_id := NULL;
2125: l_systems_hist_rec.new_service_admin_contact_id := NULL;
2126: ELSIF

Line 2123: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN

2119: l_systems_hist_rec.new_technical_contact_id := l_new_systems_rec.technical_contact_id ;
2120: END IF;
2121: --
2122: IF (l_new_systems_rec.service_admin_contact_id = fnd_api.g_miss_num) OR
2123: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN
2124: l_systems_hist_rec.old_service_admin_contact_id := NULL;
2125: l_systems_hist_rec.new_service_admin_contact_id := NULL;
2126: ELSIF
2127: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN

Line 2127: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN

2123: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN
2124: l_systems_hist_rec.old_service_admin_contact_id := NULL;
2125: l_systems_hist_rec.new_service_admin_contact_id := NULL;
2126: ELSIF
2127: NVL(l_old_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.service_admin_contact_id,fnd_api.g_miss_num) THEN
2128: l_systems_hist_rec.old_service_admin_contact_id := l_old_systems_rec.service_admin_contact_id ;
2129: l_systems_hist_rec.new_service_admin_contact_id := l_new_systems_rec.service_admin_contact_id ;
2130: END IF;
2131: --

Line 2132: IF (l_new_systems_rec.ship_to_site_use_id = fnd_api.g_miss_num) OR

2128: l_systems_hist_rec.old_service_admin_contact_id := l_old_systems_rec.service_admin_contact_id ;
2129: l_systems_hist_rec.new_service_admin_contact_id := l_new_systems_rec.service_admin_contact_id ;
2130: END IF;
2131: --
2132: IF (l_new_systems_rec.ship_to_site_use_id = fnd_api.g_miss_num) OR
2133: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN
2134: l_systems_hist_rec.old_ship_to_site_use_id := NULL;
2135: l_systems_hist_rec.new_ship_to_site_use_id := NULL;
2136: ELSIF

Line 2133: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN

2129: l_systems_hist_rec.new_service_admin_contact_id := l_new_systems_rec.service_admin_contact_id ;
2130: END IF;
2131: --
2132: IF (l_new_systems_rec.ship_to_site_use_id = fnd_api.g_miss_num) OR
2133: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN
2134: l_systems_hist_rec.old_ship_to_site_use_id := NULL;
2135: l_systems_hist_rec.new_ship_to_site_use_id := NULL;
2136: ELSIF
2137: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN

Line 2137: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN

2133: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN
2134: l_systems_hist_rec.old_ship_to_site_use_id := NULL;
2135: l_systems_hist_rec.new_ship_to_site_use_id := NULL;
2136: ELSIF
2137: NVL(l_old_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.ship_to_site_use_id,fnd_api.g_miss_num) THEN
2138: l_systems_hist_rec.old_ship_to_site_use_id := l_old_systems_rec.ship_to_site_use_id ;
2139: l_systems_hist_rec.new_ship_to_site_use_id := l_new_systems_rec.ship_to_site_use_id ;
2140: END IF;
2141: --

Line 2142: IF (l_new_systems_rec.bill_to_site_use_id = fnd_api.g_miss_num) OR

2138: l_systems_hist_rec.old_ship_to_site_use_id := l_old_systems_rec.ship_to_site_use_id ;
2139: l_systems_hist_rec.new_ship_to_site_use_id := l_new_systems_rec.ship_to_site_use_id ;
2140: END IF;
2141: --
2142: IF (l_new_systems_rec.bill_to_site_use_id = fnd_api.g_miss_num) OR
2143: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN
2144: l_systems_hist_rec.old_bill_to_site_use_id := NULL;
2145: l_systems_hist_rec.new_bill_to_site_use_id := NULL;
2146: ELSIF

Line 2143: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN

2139: l_systems_hist_rec.new_ship_to_site_use_id := l_new_systems_rec.ship_to_site_use_id ;
2140: END IF;
2141: --
2142: IF (l_new_systems_rec.bill_to_site_use_id = fnd_api.g_miss_num) OR
2143: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN
2144: l_systems_hist_rec.old_bill_to_site_use_id := NULL;
2145: l_systems_hist_rec.new_bill_to_site_use_id := NULL;
2146: ELSIF
2147: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN

Line 2147: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN

2143: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN
2144: l_systems_hist_rec.old_bill_to_site_use_id := NULL;
2145: l_systems_hist_rec.new_bill_to_site_use_id := NULL;
2146: ELSIF
2147: NVL(l_old_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.bill_to_site_use_id,fnd_api.g_miss_num) THEN
2148: l_systems_hist_rec.old_bill_to_site_use_id := l_old_systems_rec.bill_to_site_use_id ;
2149: l_systems_hist_rec.new_bill_to_site_use_id := l_new_systems_rec.bill_to_site_use_id ;
2150: END IF;
2151: --

Line 2152: IF (l_new_systems_rec.install_site_use_id = fnd_api.g_miss_num) OR

2148: l_systems_hist_rec.old_bill_to_site_use_id := l_old_systems_rec.bill_to_site_use_id ;
2149: l_systems_hist_rec.new_bill_to_site_use_id := l_new_systems_rec.bill_to_site_use_id ;
2150: END IF;
2151: --
2152: IF (l_new_systems_rec.install_site_use_id = fnd_api.g_miss_num) OR
2153: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN
2154: l_systems_hist_rec.old_install_site_use_id := NULL;
2155: l_systems_hist_rec.new_install_site_use_id := NULL;
2156: ELSIF

Line 2153: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN

2149: l_systems_hist_rec.new_bill_to_site_use_id := l_new_systems_rec.bill_to_site_use_id ;
2150: END IF;
2151: --
2152: IF (l_new_systems_rec.install_site_use_id = fnd_api.g_miss_num) OR
2153: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN
2154: l_systems_hist_rec.old_install_site_use_id := NULL;
2155: l_systems_hist_rec.new_install_site_use_id := NULL;
2156: ELSIF
2157: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN

Line 2157: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN

2153: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN
2154: l_systems_hist_rec.old_install_site_use_id := NULL;
2155: l_systems_hist_rec.new_install_site_use_id := NULL;
2156: ELSIF
2157: NVL(l_old_systems_rec.install_site_use_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.install_site_use_id,fnd_api.g_miss_num) THEN
2158: l_systems_hist_rec.old_install_site_use_id := l_old_systems_rec.install_site_use_id ;
2159: l_systems_hist_rec.new_install_site_use_id := l_new_systems_rec.install_site_use_id ;
2160: END IF;
2161: --

Line 2162: IF (l_new_systems_rec.coterminate_day_month = fnd_api.g_miss_char) OR

2158: l_systems_hist_rec.old_install_site_use_id := l_old_systems_rec.install_site_use_id ;
2159: l_systems_hist_rec.new_install_site_use_id := l_new_systems_rec.install_site_use_id ;
2160: END IF;
2161: --
2162: IF (l_new_systems_rec.coterminate_day_month = fnd_api.g_miss_char) OR
2163: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) = NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN
2164: l_systems_hist_rec.old_coterminate_day_month := NULL;
2165: l_systems_hist_rec.new_coterminate_day_month := NULL;
2166: ELSIF

Line 2163: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) = NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN

2159: l_systems_hist_rec.new_install_site_use_id := l_new_systems_rec.install_site_use_id ;
2160: END IF;
2161: --
2162: IF (l_new_systems_rec.coterminate_day_month = fnd_api.g_miss_char) OR
2163: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) = NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN
2164: l_systems_hist_rec.old_coterminate_day_month := NULL;
2165: l_systems_hist_rec.new_coterminate_day_month := NULL;
2166: ELSIF
2167: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN

Line 2167: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN

2163: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) = NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN
2164: l_systems_hist_rec.old_coterminate_day_month := NULL;
2165: l_systems_hist_rec.new_coterminate_day_month := NULL;
2166: ELSIF
2167: NVL(l_old_systems_rec.coterminate_day_month,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.coterminate_day_month,fnd_api.g_miss_char) THEN
2168: l_systems_hist_rec.old_coterminate_day_month := l_old_systems_rec.coterminate_day_month ;
2169: l_systems_hist_rec.new_coterminate_day_month := l_new_systems_rec.coterminate_day_month ;
2170: END IF;
2171: --

Line 2172: IF (l_new_systems_rec.start_date_active = fnd_api.g_miss_date) OR

2168: l_systems_hist_rec.old_coterminate_day_month := l_old_systems_rec.coterminate_day_month ;
2169: l_systems_hist_rec.new_coterminate_day_month := l_new_systems_rec.coterminate_day_month ;
2170: END IF;
2171: --
2172: IF (l_new_systems_rec.start_date_active = fnd_api.g_miss_date) OR
2173: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN
2174: l_systems_hist_rec.old_start_date_active := NULL;
2175: l_systems_hist_rec.new_start_date_active := NULL;
2176: ELSIF

Line 2173: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN

2169: l_systems_hist_rec.new_coterminate_day_month := l_new_systems_rec.coterminate_day_month ;
2170: END IF;
2171: --
2172: IF (l_new_systems_rec.start_date_active = fnd_api.g_miss_date) OR
2173: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN
2174: l_systems_hist_rec.old_start_date_active := NULL;
2175: l_systems_hist_rec.new_start_date_active := NULL;
2176: ELSIF
2177: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) <> NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN

Line 2177: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) <> NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN

2173: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN
2174: l_systems_hist_rec.old_start_date_active := NULL;
2175: l_systems_hist_rec.new_start_date_active := NULL;
2176: ELSIF
2177: NVL(l_old_systems_rec.start_date_active,fnd_api.g_miss_date) <> NVL(l_new_systems_rec.start_date_active,fnd_api.g_miss_date) THEN
2178: l_systems_hist_rec.old_start_date_active := l_old_systems_rec.start_date_active ;
2179: l_systems_hist_rec.new_start_date_active := l_new_systems_rec.start_date_active ;
2180: END IF;
2181: --

Line 2182: IF (l_new_systems_rec.end_date_active = fnd_api.g_miss_date) OR

2178: l_systems_hist_rec.old_start_date_active := l_old_systems_rec.start_date_active ;
2179: l_systems_hist_rec.new_start_date_active := l_new_systems_rec.start_date_active ;
2180: END IF;
2181: --
2182: IF (l_new_systems_rec.end_date_active = fnd_api.g_miss_date) OR
2183: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN
2184: l_systems_hist_rec.old_end_date_active := NULL;
2185: l_systems_hist_rec.new_end_date_active := NULL;
2186: ELSIF

Line 2183: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN

2179: l_systems_hist_rec.new_start_date_active := l_new_systems_rec.start_date_active ;
2180: END IF;
2181: --
2182: IF (l_new_systems_rec.end_date_active = fnd_api.g_miss_date) OR
2183: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN
2184: l_systems_hist_rec.old_end_date_active := NULL;
2185: l_systems_hist_rec.new_end_date_active := NULL;
2186: ELSIF
2187: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) <> NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN

Line 2187: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) <> NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN

2183: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) = NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN
2184: l_systems_hist_rec.old_end_date_active := NULL;
2185: l_systems_hist_rec.new_end_date_active := NULL;
2186: ELSIF
2187: NVL(l_old_systems_rec.end_date_active,fnd_api.g_miss_date) <> NVL(l_new_systems_rec.end_date_active,fnd_api.g_miss_date) THEN
2188: l_systems_hist_rec.old_end_date_active := l_old_systems_rec.end_date_active ;
2189: l_systems_hist_rec.new_end_date_active := l_new_systems_rec.end_date_active ;
2190: END IF;
2191: --

Line 2192: IF (l_new_systems_rec.autocreated_from_system_id = fnd_api.g_miss_num) OR

2188: l_systems_hist_rec.old_end_date_active := l_old_systems_rec.end_date_active ;
2189: l_systems_hist_rec.new_end_date_active := l_new_systems_rec.end_date_active ;
2190: END IF;
2191: --
2192: IF (l_new_systems_rec.autocreated_from_system_id = fnd_api.g_miss_num) OR
2193: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN
2194: l_systems_hist_rec.old_autocreated_from_system := NULL;
2195: l_systems_hist_rec.new_autocreated_from_system := NULL;
2196: ELSIF

Line 2193: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN

2189: l_systems_hist_rec.new_end_date_active := l_new_systems_rec.end_date_active ;
2190: END IF;
2191: --
2192: IF (l_new_systems_rec.autocreated_from_system_id = fnd_api.g_miss_num) OR
2193: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN
2194: l_systems_hist_rec.old_autocreated_from_system := NULL;
2195: l_systems_hist_rec.new_autocreated_from_system := NULL;
2196: ELSIF
2197: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN

Line 2197: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN

2193: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN
2194: l_systems_hist_rec.old_autocreated_from_system := NULL;
2195: l_systems_hist_rec.new_autocreated_from_system := NULL;
2196: ELSIF
2197: NVL(l_old_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.autocreated_from_system_id,fnd_api.g_miss_num) THEN
2198: l_systems_hist_rec.old_autocreated_from_system := l_old_systems_rec.autocreated_from_system_id ;
2199: l_systems_hist_rec.new_autocreated_from_system := l_new_systems_rec.autocreated_from_system_id ;
2200: END IF;
2201: --

Line 2202: IF (l_new_systems_rec.config_system_type = fnd_api.g_miss_char) OR

2198: l_systems_hist_rec.old_autocreated_from_system := l_old_systems_rec.autocreated_from_system_id ;
2199: l_systems_hist_rec.new_autocreated_from_system := l_new_systems_rec.autocreated_from_system_id ;
2200: END IF;
2201: --
2202: IF (l_new_systems_rec.config_system_type = fnd_api.g_miss_char) OR
2203: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) = NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN
2204: l_systems_hist_rec.old_config_system_type := NULL;
2205: l_systems_hist_rec.new_config_system_type := NULL;
2206: ELSIF

Line 2203: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) = NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN

2199: l_systems_hist_rec.new_autocreated_from_system := l_new_systems_rec.autocreated_from_system_id ;
2200: END IF;
2201: --
2202: IF (l_new_systems_rec.config_system_type = fnd_api.g_miss_char) OR
2203: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) = NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN
2204: l_systems_hist_rec.old_config_system_type := NULL;
2205: l_systems_hist_rec.new_config_system_type := NULL;
2206: ELSIF
2207: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN

Line 2207: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN

2203: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) = NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN
2204: l_systems_hist_rec.old_config_system_type := NULL;
2205: l_systems_hist_rec.new_config_system_type := NULL;
2206: ELSIF
2207: NVL(l_old_systems_rec.config_system_type,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.config_system_type,fnd_api.g_miss_char) THEN
2208: l_systems_hist_rec.old_config_system_type := l_old_systems_rec.config_system_type ;
2209: l_systems_hist_rec.new_config_system_type := l_new_systems_rec.config_system_type ;
2210: END IF;
2211: --

Line 2212: IF (l_new_systems_rec.context = fnd_api.g_miss_char) OR

2208: l_systems_hist_rec.old_config_system_type := l_old_systems_rec.config_system_type ;
2209: l_systems_hist_rec.new_config_system_type := l_new_systems_rec.config_system_type ;
2210: END IF;
2211: --
2212: IF (l_new_systems_rec.context = fnd_api.g_miss_char) OR
2213: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) = NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN
2214: l_systems_hist_rec.old_context := NULL;
2215: l_systems_hist_rec.new_context := NULL;
2216: ELSIF

Line 2213: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) = NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN

2209: l_systems_hist_rec.new_config_system_type := l_new_systems_rec.config_system_type ;
2210: END IF;
2211: --
2212: IF (l_new_systems_rec.context = fnd_api.g_miss_char) OR
2213: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) = NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN
2214: l_systems_hist_rec.old_context := NULL;
2215: l_systems_hist_rec.new_context := NULL;
2216: ELSIF
2217: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN

Line 2217: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN

2213: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) = NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN
2214: l_systems_hist_rec.old_context := NULL;
2215: l_systems_hist_rec.new_context := NULL;
2216: ELSIF
2217: NVL(l_old_systems_rec.context,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.context,fnd_api.g_miss_char) THEN
2218: l_systems_hist_rec.old_context := l_old_systems_rec.context ;
2219: l_systems_hist_rec.new_context := l_new_systems_rec.context ;
2220: END IF;
2221: --

Line 2222: IF (l_new_systems_rec.attribute1 = fnd_api.g_miss_char) OR

2218: l_systems_hist_rec.old_context := l_old_systems_rec.context ;
2219: l_systems_hist_rec.new_context := l_new_systems_rec.context ;
2220: END IF;
2221: --
2222: IF (l_new_systems_rec.attribute1 = fnd_api.g_miss_char) OR
2223: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN
2224: l_systems_hist_rec.old_attribute1 := NULL;
2225: l_systems_hist_rec.new_attribute1 := NULL;
2226: ELSIF

Line 2223: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN

2219: l_systems_hist_rec.new_context := l_new_systems_rec.context ;
2220: END IF;
2221: --
2222: IF (l_new_systems_rec.attribute1 = fnd_api.g_miss_char) OR
2223: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN
2224: l_systems_hist_rec.old_attribute1 := NULL;
2225: l_systems_hist_rec.new_attribute1 := NULL;
2226: ELSIF
2227: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN

Line 2227: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN

2223: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN
2224: l_systems_hist_rec.old_attribute1 := NULL;
2225: l_systems_hist_rec.new_attribute1 := NULL;
2226: ELSIF
2227: NVL(l_old_systems_rec.attribute1,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute1,fnd_api.g_miss_char) THEN
2228: l_systems_hist_rec.old_attribute1 := l_old_systems_rec.attribute1 ;
2229: l_systems_hist_rec.new_attribute1 := l_new_systems_rec.attribute1 ;
2230: END IF;
2231: --

Line 2232: IF (l_new_systems_rec.attribute2 = fnd_api.g_miss_char) OR

2228: l_systems_hist_rec.old_attribute1 := l_old_systems_rec.attribute1 ;
2229: l_systems_hist_rec.new_attribute1 := l_new_systems_rec.attribute1 ;
2230: END IF;
2231: --
2232: IF (l_new_systems_rec.attribute2 = fnd_api.g_miss_char) OR
2233: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN
2234: l_systems_hist_rec.old_attribute2 := NULL;
2235: l_systems_hist_rec.new_attribute2 := NULL;
2236: ELSIF

Line 2233: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN

2229: l_systems_hist_rec.new_attribute1 := l_new_systems_rec.attribute1 ;
2230: END IF;
2231: --
2232: IF (l_new_systems_rec.attribute2 = fnd_api.g_miss_char) OR
2233: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN
2234: l_systems_hist_rec.old_attribute2 := NULL;
2235: l_systems_hist_rec.new_attribute2 := NULL;
2236: ELSIF
2237: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN

Line 2237: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN

2233: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN
2234: l_systems_hist_rec.old_attribute2 := NULL;
2235: l_systems_hist_rec.new_attribute2 := NULL;
2236: ELSIF
2237: NVL(l_old_systems_rec.attribute2,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute2,fnd_api.g_miss_char) THEN
2238: l_systems_hist_rec.old_attribute2 := l_old_systems_rec.attribute2 ;
2239: l_systems_hist_rec.new_attribute2 := l_new_systems_rec.attribute2 ;
2240: END IF;
2241: --

Line 2242: IF (l_new_systems_rec.attribute3 = fnd_api.g_miss_char) OR

2238: l_systems_hist_rec.old_attribute2 := l_old_systems_rec.attribute2 ;
2239: l_systems_hist_rec.new_attribute2 := l_new_systems_rec.attribute2 ;
2240: END IF;
2241: --
2242: IF (l_new_systems_rec.attribute3 = fnd_api.g_miss_char) OR
2243: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN
2244: l_systems_hist_rec.old_attribute3 := NULL;
2245: l_systems_hist_rec.new_attribute3 := NULL;
2246: ELSIF

Line 2243: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN

2239: l_systems_hist_rec.new_attribute2 := l_new_systems_rec.attribute2 ;
2240: END IF;
2241: --
2242: IF (l_new_systems_rec.attribute3 = fnd_api.g_miss_char) OR
2243: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN
2244: l_systems_hist_rec.old_attribute3 := NULL;
2245: l_systems_hist_rec.new_attribute3 := NULL;
2246: ELSIF
2247: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN

Line 2247: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN

2243: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN
2244: l_systems_hist_rec.old_attribute3 := NULL;
2245: l_systems_hist_rec.new_attribute3 := NULL;
2246: ELSIF
2247: NVL(l_old_systems_rec.attribute3,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute3,fnd_api.g_miss_char) THEN
2248: l_systems_hist_rec.old_attribute3 := l_old_systems_rec.attribute3 ;
2249: l_systems_hist_rec.new_attribute3 := l_new_systems_rec.attribute3 ;
2250: END IF;
2251: --

Line 2252: IF (l_new_systems_rec.attribute4 = fnd_api.g_miss_char) OR

2248: l_systems_hist_rec.old_attribute3 := l_old_systems_rec.attribute3 ;
2249: l_systems_hist_rec.new_attribute3 := l_new_systems_rec.attribute3 ;
2250: END IF;
2251: --
2252: IF (l_new_systems_rec.attribute4 = fnd_api.g_miss_char) OR
2253: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN
2254: l_systems_hist_rec.old_attribute4 := NULL;
2255: l_systems_hist_rec.new_attribute4 := NULL;
2256: ELSIF

Line 2253: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN

2249: l_systems_hist_rec.new_attribute3 := l_new_systems_rec.attribute3 ;
2250: END IF;
2251: --
2252: IF (l_new_systems_rec.attribute4 = fnd_api.g_miss_char) OR
2253: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN
2254: l_systems_hist_rec.old_attribute4 := NULL;
2255: l_systems_hist_rec.new_attribute4 := NULL;
2256: ELSIF
2257: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN

Line 2257: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN

2253: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN
2254: l_systems_hist_rec.old_attribute4 := NULL;
2255: l_systems_hist_rec.new_attribute4 := NULL;
2256: ELSIF
2257: NVL(l_old_systems_rec.attribute4,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute4,fnd_api.g_miss_char) THEN
2258: l_systems_hist_rec.old_attribute4 := l_old_systems_rec.attribute4 ;
2259: l_systems_hist_rec.new_attribute4 := l_new_systems_rec.attribute4 ;
2260: END IF;
2261: --

Line 2262: IF (l_new_systems_rec.attribute5 = fnd_api.g_miss_char) OR

2258: l_systems_hist_rec.old_attribute4 := l_old_systems_rec.attribute4 ;
2259: l_systems_hist_rec.new_attribute4 := l_new_systems_rec.attribute4 ;
2260: END IF;
2261: --
2262: IF (l_new_systems_rec.attribute5 = fnd_api.g_miss_char) OR
2263: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN
2264: l_systems_hist_rec.old_attribute5 := NULL;
2265: l_systems_hist_rec.new_attribute5 := NULL;
2266: ELSIF

Line 2263: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN

2259: l_systems_hist_rec.new_attribute4 := l_new_systems_rec.attribute4 ;
2260: END IF;
2261: --
2262: IF (l_new_systems_rec.attribute5 = fnd_api.g_miss_char) OR
2263: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN
2264: l_systems_hist_rec.old_attribute5 := NULL;
2265: l_systems_hist_rec.new_attribute5 := NULL;
2266: ELSIF
2267: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN

Line 2267: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN

2263: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN
2264: l_systems_hist_rec.old_attribute5 := NULL;
2265: l_systems_hist_rec.new_attribute5 := NULL;
2266: ELSIF
2267: NVL(l_old_systems_rec.attribute5,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute5,fnd_api.g_miss_char) THEN
2268: l_systems_hist_rec.old_attribute5 := l_old_systems_rec.attribute5 ;
2269: l_systems_hist_rec.new_attribute5 := l_new_systems_rec.attribute5 ;
2270: END IF;
2271: --

Line 2272: IF (l_new_systems_rec.attribute6 = fnd_api.g_miss_char) OR

2268: l_systems_hist_rec.old_attribute5 := l_old_systems_rec.attribute5 ;
2269: l_systems_hist_rec.new_attribute5 := l_new_systems_rec.attribute5 ;
2270: END IF;
2271: --
2272: IF (l_new_systems_rec.attribute6 = fnd_api.g_miss_char) OR
2273: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN
2274: l_systems_hist_rec.old_attribute6 := NULL;
2275: l_systems_hist_rec.new_attribute6 := NULL;
2276: ELSIF

Line 2273: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN

2269: l_systems_hist_rec.new_attribute5 := l_new_systems_rec.attribute5 ;
2270: END IF;
2271: --
2272: IF (l_new_systems_rec.attribute6 = fnd_api.g_miss_char) OR
2273: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN
2274: l_systems_hist_rec.old_attribute6 := NULL;
2275: l_systems_hist_rec.new_attribute6 := NULL;
2276: ELSIF
2277: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN

Line 2277: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN

2273: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN
2274: l_systems_hist_rec.old_attribute6 := NULL;
2275: l_systems_hist_rec.new_attribute6 := NULL;
2276: ELSIF
2277: NVL(l_old_systems_rec.attribute6,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute6,fnd_api.g_miss_char) THEN
2278: l_systems_hist_rec.old_attribute6 := l_old_systems_rec.attribute6 ;
2279: l_systems_hist_rec.new_attribute6 := l_new_systems_rec.attribute6 ;
2280: END IF;
2281: --

Line 2282: IF (l_new_systems_rec.attribute7 = fnd_api.g_miss_char) OR

2278: l_systems_hist_rec.old_attribute6 := l_old_systems_rec.attribute6 ;
2279: l_systems_hist_rec.new_attribute6 := l_new_systems_rec.attribute6 ;
2280: END IF;
2281: --
2282: IF (l_new_systems_rec.attribute7 = fnd_api.g_miss_char) OR
2283: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN
2284: l_systems_hist_rec.old_attribute7 := NULL;
2285: l_systems_hist_rec.new_attribute7 := NULL;
2286: ELSIF

Line 2283: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN

2279: l_systems_hist_rec.new_attribute6 := l_new_systems_rec.attribute6 ;
2280: END IF;
2281: --
2282: IF (l_new_systems_rec.attribute7 = fnd_api.g_miss_char) OR
2283: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN
2284: l_systems_hist_rec.old_attribute7 := NULL;
2285: l_systems_hist_rec.new_attribute7 := NULL;
2286: ELSIF
2287: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN

Line 2287: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN

2283: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN
2284: l_systems_hist_rec.old_attribute7 := NULL;
2285: l_systems_hist_rec.new_attribute7 := NULL;
2286: ELSIF
2287: NVL(l_old_systems_rec.attribute7,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute7,fnd_api.g_miss_char) THEN
2288: l_systems_hist_rec.old_attribute7 := l_old_systems_rec.attribute7 ;
2289: l_systems_hist_rec.new_attribute7 := l_new_systems_rec.attribute7 ;
2290: END IF;
2291: --

Line 2292: IF (l_new_systems_rec.attribute8 = fnd_api.g_miss_char) OR

2288: l_systems_hist_rec.old_attribute7 := l_old_systems_rec.attribute7 ;
2289: l_systems_hist_rec.new_attribute7 := l_new_systems_rec.attribute7 ;
2290: END IF;
2291: --
2292: IF (l_new_systems_rec.attribute8 = fnd_api.g_miss_char) OR
2293: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN
2294: l_systems_hist_rec.old_attribute8 := NULL;
2295: l_systems_hist_rec.new_attribute8 := NULL;
2296: ELSIF

Line 2293: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN

2289: l_systems_hist_rec.new_attribute7 := l_new_systems_rec.attribute7 ;
2290: END IF;
2291: --
2292: IF (l_new_systems_rec.attribute8 = fnd_api.g_miss_char) OR
2293: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN
2294: l_systems_hist_rec.old_attribute8 := NULL;
2295: l_systems_hist_rec.new_attribute8 := NULL;
2296: ELSIF
2297: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN

Line 2297: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN

2293: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN
2294: l_systems_hist_rec.old_attribute8 := NULL;
2295: l_systems_hist_rec.new_attribute8 := NULL;
2296: ELSIF
2297: NVL(l_old_systems_rec.attribute8,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute8,fnd_api.g_miss_char) THEN
2298: l_systems_hist_rec.old_attribute8 := l_old_systems_rec.attribute8 ;
2299: l_systems_hist_rec.new_attribute8 := l_new_systems_rec.attribute8 ;
2300: END IF;
2301: --

Line 2302: IF (l_new_systems_rec.attribute9 = fnd_api.g_miss_char) OR

2298: l_systems_hist_rec.old_attribute8 := l_old_systems_rec.attribute8 ;
2299: l_systems_hist_rec.new_attribute8 := l_new_systems_rec.attribute8 ;
2300: END IF;
2301: --
2302: IF (l_new_systems_rec.attribute9 = fnd_api.g_miss_char) OR
2303: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN
2304: l_systems_hist_rec.old_attribute9 := NULL;
2305: l_systems_hist_rec.new_attribute9 := NULL;
2306: ELSIF

Line 2303: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN

2299: l_systems_hist_rec.new_attribute8 := l_new_systems_rec.attribute8 ;
2300: END IF;
2301: --
2302: IF (l_new_systems_rec.attribute9 = fnd_api.g_miss_char) OR
2303: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN
2304: l_systems_hist_rec.old_attribute9 := NULL;
2305: l_systems_hist_rec.new_attribute9 := NULL;
2306: ELSIF
2307: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN

Line 2307: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN

2303: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN
2304: l_systems_hist_rec.old_attribute9 := NULL;
2305: l_systems_hist_rec.new_attribute9 := NULL;
2306: ELSIF
2307: NVL(l_old_systems_rec.attribute9,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute9,fnd_api.g_miss_char) THEN
2308: l_systems_hist_rec.old_attribute9 := l_old_systems_rec.attribute9 ;
2309: l_systems_hist_rec.new_attribute9 := l_new_systems_rec.attribute9 ;
2310: END IF;
2311: --

Line 2312: IF (l_new_systems_rec.attribute10 = fnd_api.g_miss_char) OR

2308: l_systems_hist_rec.old_attribute9 := l_old_systems_rec.attribute9 ;
2309: l_systems_hist_rec.new_attribute9 := l_new_systems_rec.attribute9 ;
2310: END IF;
2311: --
2312: IF (l_new_systems_rec.attribute10 = fnd_api.g_miss_char) OR
2313: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN
2314: l_systems_hist_rec.old_attribute10 := NULL;
2315: l_systems_hist_rec.new_attribute10 := NULL;
2316: ELSIF

Line 2313: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN

2309: l_systems_hist_rec.new_attribute9 := l_new_systems_rec.attribute9 ;
2310: END IF;
2311: --
2312: IF (l_new_systems_rec.attribute10 = fnd_api.g_miss_char) OR
2313: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN
2314: l_systems_hist_rec.old_attribute10 := NULL;
2315: l_systems_hist_rec.new_attribute10 := NULL;
2316: ELSIF
2317: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN

Line 2317: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN

2313: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN
2314: l_systems_hist_rec.old_attribute10 := NULL;
2315: l_systems_hist_rec.new_attribute10 := NULL;
2316: ELSIF
2317: NVL(l_old_systems_rec.attribute10,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute10,fnd_api.g_miss_char) THEN
2318: l_systems_hist_rec.old_attribute10 := l_old_systems_rec.attribute10 ;
2319: l_systems_hist_rec.new_attribute10 := l_new_systems_rec.attribute10 ;
2320: END IF;
2321: --

Line 2322: IF (l_new_systems_rec.attribute11 = fnd_api.g_miss_char) OR

2318: l_systems_hist_rec.old_attribute10 := l_old_systems_rec.attribute10 ;
2319: l_systems_hist_rec.new_attribute10 := l_new_systems_rec.attribute10 ;
2320: END IF;
2321: --
2322: IF (l_new_systems_rec.attribute11 = fnd_api.g_miss_char) OR
2323: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN
2324: l_systems_hist_rec.old_attribute11 := NULL;
2325: l_systems_hist_rec.new_attribute11 := NULL;
2326: ELSIF

Line 2323: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN

2319: l_systems_hist_rec.new_attribute10 := l_new_systems_rec.attribute10 ;
2320: END IF;
2321: --
2322: IF (l_new_systems_rec.attribute11 = fnd_api.g_miss_char) OR
2323: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN
2324: l_systems_hist_rec.old_attribute11 := NULL;
2325: l_systems_hist_rec.new_attribute11 := NULL;
2326: ELSIF
2327: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN

Line 2327: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN

2323: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN
2324: l_systems_hist_rec.old_attribute11 := NULL;
2325: l_systems_hist_rec.new_attribute11 := NULL;
2326: ELSIF
2327: NVL(l_old_systems_rec.attribute11,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute11,fnd_api.g_miss_char) THEN
2328: l_systems_hist_rec.old_attribute11 := l_old_systems_rec.attribute11 ;
2329: l_systems_hist_rec.new_attribute11 := l_new_systems_rec.attribute11 ;
2330: END IF;
2331: --

Line 2332: IF (l_new_systems_rec.attribute12 = fnd_api.g_miss_char) OR

2328: l_systems_hist_rec.old_attribute11 := l_old_systems_rec.attribute11 ;
2329: l_systems_hist_rec.new_attribute11 := l_new_systems_rec.attribute11 ;
2330: END IF;
2331: --
2332: IF (l_new_systems_rec.attribute12 = fnd_api.g_miss_char) OR
2333: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN
2334: l_systems_hist_rec.old_attribute12 := NULL;
2335: l_systems_hist_rec.new_attribute12 := NULL;
2336: ELSIF

Line 2333: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN

2329: l_systems_hist_rec.new_attribute11 := l_new_systems_rec.attribute11 ;
2330: END IF;
2331: --
2332: IF (l_new_systems_rec.attribute12 = fnd_api.g_miss_char) OR
2333: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN
2334: l_systems_hist_rec.old_attribute12 := NULL;
2335: l_systems_hist_rec.new_attribute12 := NULL;
2336: ELSIF
2337: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN

Line 2337: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN

2333: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN
2334: l_systems_hist_rec.old_attribute12 := NULL;
2335: l_systems_hist_rec.new_attribute12 := NULL;
2336: ELSIF
2337: NVL(l_old_systems_rec.attribute12,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute12,fnd_api.g_miss_char) THEN
2338: l_systems_hist_rec.old_attribute12 := l_old_systems_rec.attribute12 ;
2339: l_systems_hist_rec.new_attribute12 := l_new_systems_rec.attribute12 ;
2340: END IF;
2341: --

Line 2342: IF (l_new_systems_rec.attribute13 = fnd_api.g_miss_char) OR

2338: l_systems_hist_rec.old_attribute12 := l_old_systems_rec.attribute12 ;
2339: l_systems_hist_rec.new_attribute12 := l_new_systems_rec.attribute12 ;
2340: END IF;
2341: --
2342: IF (l_new_systems_rec.attribute13 = fnd_api.g_miss_char) OR
2343: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN
2344: l_systems_hist_rec.old_attribute13 := NULL;
2345: l_systems_hist_rec.new_attribute13 := NULL;
2346: ELSIF

Line 2343: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN

2339: l_systems_hist_rec.new_attribute12 := l_new_systems_rec.attribute12 ;
2340: END IF;
2341: --
2342: IF (l_new_systems_rec.attribute13 = fnd_api.g_miss_char) OR
2343: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN
2344: l_systems_hist_rec.old_attribute13 := NULL;
2345: l_systems_hist_rec.new_attribute13 := NULL;
2346: ELSIF
2347: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN

Line 2347: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN

2343: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN
2344: l_systems_hist_rec.old_attribute13 := NULL;
2345: l_systems_hist_rec.new_attribute13 := NULL;
2346: ELSIF
2347: NVL(l_old_systems_rec.attribute13,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute13,fnd_api.g_miss_char) THEN
2348: l_systems_hist_rec.old_attribute13 := l_old_systems_rec.attribute13 ;
2349: l_systems_hist_rec.new_attribute13 := l_new_systems_rec.attribute13 ;
2350: END IF;
2351: --

Line 2352: IF (l_new_systems_rec.attribute14 = fnd_api.g_miss_char) OR

2348: l_systems_hist_rec.old_attribute13 := l_old_systems_rec.attribute13 ;
2349: l_systems_hist_rec.new_attribute13 := l_new_systems_rec.attribute13 ;
2350: END IF;
2351: --
2352: IF (l_new_systems_rec.attribute14 = fnd_api.g_miss_char) OR
2353: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN
2354: l_systems_hist_rec.old_attribute14 := NULL;
2355: l_systems_hist_rec.new_attribute14 := NULL;
2356: ELSIF

Line 2353: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN

2349: l_systems_hist_rec.new_attribute13 := l_new_systems_rec.attribute13 ;
2350: END IF;
2351: --
2352: IF (l_new_systems_rec.attribute14 = fnd_api.g_miss_char) OR
2353: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN
2354: l_systems_hist_rec.old_attribute14 := NULL;
2355: l_systems_hist_rec.new_attribute14 := NULL;
2356: ELSIF
2357: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN

Line 2357: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN

2353: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN
2354: l_systems_hist_rec.old_attribute14 := NULL;
2355: l_systems_hist_rec.new_attribute14 := NULL;
2356: ELSIF
2357: NVL(l_old_systems_rec.attribute14,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute14,fnd_api.g_miss_char) THEN
2358: l_systems_hist_rec.old_attribute14 := l_old_systems_rec.attribute14 ;
2359: l_systems_hist_rec.new_attribute14 := l_new_systems_rec.attribute14 ;
2360: END IF;
2361: --

Line 2362: IF (l_new_systems_rec.attribute15 = fnd_api.g_miss_char) OR

2358: l_systems_hist_rec.old_attribute14 := l_old_systems_rec.attribute14 ;
2359: l_systems_hist_rec.new_attribute14 := l_new_systems_rec.attribute14 ;
2360: END IF;
2361: --
2362: IF (l_new_systems_rec.attribute15 = fnd_api.g_miss_char) OR
2363: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN
2364: l_systems_hist_rec.old_attribute15 := NULL;
2365: l_systems_hist_rec.new_attribute15 := NULL;
2366: ELSIF

Line 2363: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN

2359: l_systems_hist_rec.new_attribute14 := l_new_systems_rec.attribute14 ;
2360: END IF;
2361: --
2362: IF (l_new_systems_rec.attribute15 = fnd_api.g_miss_char) OR
2363: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN
2364: l_systems_hist_rec.old_attribute15 := NULL;
2365: l_systems_hist_rec.new_attribute15 := NULL;
2366: ELSIF
2367: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN

Line 2367: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN

2363: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) = NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN
2364: l_systems_hist_rec.old_attribute15 := NULL;
2365: l_systems_hist_rec.new_attribute15 := NULL;
2366: ELSIF
2367: NVL(l_old_systems_rec.attribute15,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.attribute15,fnd_api.g_miss_char) THEN
2368: l_systems_hist_rec.old_attribute15 := l_old_systems_rec.attribute15 ;
2369: l_systems_hist_rec.new_attribute15 := l_new_systems_rec.attribute15 ;
2370: END IF;
2371: --

Line 2372: IF (l_new_systems_rec.name = fnd_api.g_miss_char) OR

2368: l_systems_hist_rec.old_attribute15 := l_old_systems_rec.attribute15 ;
2369: l_systems_hist_rec.new_attribute15 := l_new_systems_rec.attribute15 ;
2370: END IF;
2371: --
2372: IF (l_new_systems_rec.name = fnd_api.g_miss_char) OR
2373: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) = NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN
2374: l_systems_hist_rec.old_name := NULL;
2375: l_systems_hist_rec.new_name := NULL;
2376: ELSIF

Line 2373: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) = NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN

2369: l_systems_hist_rec.new_attribute15 := l_new_systems_rec.attribute15 ;
2370: END IF;
2371: --
2372: IF (l_new_systems_rec.name = fnd_api.g_miss_char) OR
2373: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) = NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN
2374: l_systems_hist_rec.old_name := NULL;
2375: l_systems_hist_rec.new_name := NULL;
2376: ELSIF
2377: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN

Line 2377: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN

2373: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) = NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN
2374: l_systems_hist_rec.old_name := NULL;
2375: l_systems_hist_rec.new_name := NULL;
2376: ELSIF
2377: NVL(l_old_systems_rec.name,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.name,fnd_api.g_miss_char) THEN
2378: l_systems_hist_rec.old_name := l_old_systems_rec.name ;
2379: l_systems_hist_rec.new_name := l_new_systems_rec.name ;
2380: END IF;
2381: --

Line 2382: IF (l_new_systems_rec.description = fnd_api.g_miss_char) OR

2378: l_systems_hist_rec.old_name := l_old_systems_rec.name ;
2379: l_systems_hist_rec.new_name := l_new_systems_rec.name ;
2380: END IF;
2381: --
2382: IF (l_new_systems_rec.description = fnd_api.g_miss_char) OR
2383: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) = NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN
2384: l_systems_hist_rec.old_description := NULL;
2385: l_systems_hist_rec.new_description := NULL;
2386: ELSIF

Line 2383: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) = NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN

2379: l_systems_hist_rec.new_name := l_new_systems_rec.name ;
2380: END IF;
2381: --
2382: IF (l_new_systems_rec.description = fnd_api.g_miss_char) OR
2383: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) = NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN
2384: l_systems_hist_rec.old_description := NULL;
2385: l_systems_hist_rec.new_description := NULL;
2386: ELSIF
2387: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN

Line 2387: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN

2383: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) = NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN
2384: l_systems_hist_rec.old_description := NULL;
2385: l_systems_hist_rec.new_description := NULL;
2386: ELSIF
2387: NVL(l_old_systems_rec.description,fnd_api.g_miss_char) <> NVL(l_new_systems_rec.description,fnd_api.g_miss_char) THEN
2388: l_systems_hist_rec.old_description := l_old_systems_rec.description ;
2389: l_systems_hist_rec.new_description := l_new_systems_rec.description ;
2390: END IF;
2391: --

Line 2392: IF (l_new_systems_rec.operating_unit_id = fnd_api.g_miss_num) OR

2388: l_systems_hist_rec.old_description := l_old_systems_rec.description ;
2389: l_systems_hist_rec.new_description := l_new_systems_rec.description ;
2390: END IF;
2391: --
2392: IF (l_new_systems_rec.operating_unit_id = fnd_api.g_miss_num) OR
2393: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN
2394: l_systems_hist_rec.old_operating_unit_id := NULL;
2395: l_systems_hist_rec.new_operating_unit_id := NULL;
2396: ELSIF

Line 2393: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN

2389: l_systems_hist_rec.new_description := l_new_systems_rec.description ;
2390: END IF;
2391: --
2392: IF (l_new_systems_rec.operating_unit_id = fnd_api.g_miss_num) OR
2393: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN
2394: l_systems_hist_rec.old_operating_unit_id := NULL;
2395: l_systems_hist_rec.new_operating_unit_id := NULL;
2396: ELSIF
2397: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN

Line 2397: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN

2393: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) = NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN
2394: l_systems_hist_rec.old_operating_unit_id := NULL;
2395: l_systems_hist_rec.new_operating_unit_id := NULL;
2396: ELSIF
2397: NVL(l_old_systems_rec.operating_unit_id,fnd_api.g_miss_num) <> NVL(l_new_systems_rec.operating_unit_id,fnd_api.g_miss_num) THEN
2398: l_systems_hist_rec.old_operating_unit_id := l_old_systems_rec.operating_unit_id ;
2399: l_systems_hist_rec.new_operating_unit_id := l_new_systems_rec.operating_unit_id ;
2400: END IF;
2401: --

Line 2495: x_return_status := fnd_api.g_ret_sts_error;

2491: END;
2492: -- End of modifications for Bug#2547034 on 09/20/02 - rtalluri
2493: EXCEPTION
2494: WHEN OTHERS THEN
2495: x_return_status := fnd_api.g_ret_sts_error;
2496: END;
2497:
2498:
2499:

Line 2520: l_system_history_id NUMBER :=fnd_api.g_miss_num;

2516: IS
2517: l_api_name CONSTANT VARCHAR2(30) := 'create_system';
2518: l_api_version_number CONSTANT NUMBER := 1.0;
2519: l_system_id NUMBER;
2520: l_system_history_id NUMBER :=fnd_api.g_miss_num;
2521: l_debug_level NUMBER;
2522: l_name VARCHAR2(50);
2523: l_start_date DATE;
2524: l_date DATE;

Line 2531: IF NOT fnd_api.compatible_api_call ( l_api_version_number,

2527: -- standard start of api savepoint
2528: SAVEPOINT create_system_pvt;
2529:
2530: -- standard call to check for call compatibility.
2531: IF NOT fnd_api.compatible_api_call ( l_api_version_number,
2532: p_api_version,
2533: l_api_name,
2534: g_pkg_name)
2535: THEN

Line 2536: RAISE fnd_api.g_exc_unexpected_error;

2532: p_api_version,
2533: l_api_name,
2534: g_pkg_name)
2535: THEN
2536: RAISE fnd_api.g_exc_unexpected_error;
2537: END IF;
2538:
2539:
2540: -- initialize message list if p_init_msg_list is set to true.

Line 2541: IF fnd_api.to_boolean( p_init_msg_list )

2537: END IF;
2538:
2539:
2540: -- initialize message list if p_init_msg_list is set to true.
2541: IF fnd_api.to_boolean( p_init_msg_list )
2542: THEN
2543: fnd_msg_pub.initialize;
2544: END IF;
2545:

Line 2551: x_return_status := fnd_api.g_ret_sts_success;

2547: -- debug message
2548:
2549:
2550: -- initialize api return status to success
2551: x_return_status := fnd_api.g_ret_sts_success;
2552:
2553: l_debug_level:=fnd_profile.value('CSI_DEBUG_LEVEL');
2554: IF (l_debug_level > 0) THEN
2555: csi_gen_utility_pvt.put_line( 'create_system');

Line 2571: p_init_msg_list => fnd_api.g_false,

2567: END IF;
2568: -- invoke validation procedures
2569:
2570: validate_system_id(
2571: p_init_msg_list => fnd_api.g_false,
2572: p_validation_mode => 'CREATE',
2573: p_system_id => p_system_rec.system_id,
2574: x_return_status => x_return_status,
2575: x_msg_count => x_msg_count,

Line 2579: p_init_msg_list => fnd_api.g_false,

2575: x_msg_count => x_msg_count,
2576: x_msg_data => x_msg_data);
2577:
2578: validate_auto_sys_id(
2579: p_init_msg_list => fnd_api.g_false,
2580: p_validation_mode => 'CREATE',
2581: p_auto_sys_id => p_system_rec.autocreated_from_system_id,
2582: x_return_status => x_return_status,
2583: x_msg_count => x_msg_count,

Line 2586: IF x_return_status<>fnd_api.g_ret_sts_success THEN

2582: x_return_status => x_return_status,
2583: x_msg_count => x_msg_count,
2584: x_msg_data => x_msg_data);
2585:
2586: IF x_return_status<>fnd_api.g_ret_sts_success THEN
2587: RAISE fnd_api.g_exc_error;
2588: END IF;
2589:
2590: validate_systems(

Line 2587: RAISE fnd_api.g_exc_error;

2583: x_msg_count => x_msg_count,
2584: x_msg_data => x_msg_data);
2585:
2586: IF x_return_status<>fnd_api.g_ret_sts_success THEN
2587: RAISE fnd_api.g_exc_error;
2588: END IF;
2589:
2590: validate_systems(
2591: p_init_msg_list => fnd_api.g_false,

Line 2591: p_init_msg_list => fnd_api.g_false,

2587: RAISE fnd_api.g_exc_error;
2588: END IF;
2589:
2590: validate_systems(
2591: p_init_msg_list => fnd_api.g_false,
2592: p_validation_level => p_validation_level,
2593: p_validation_mode => 'CREATE',
2594: p_system_rec => p_system_rec,
2595: x_return_status => x_return_status,

Line 2599: IF x_return_status<>fnd_api.g_ret_sts_success THEN

2595: x_return_status => x_return_status,
2596: x_msg_count => x_msg_count,
2597: x_msg_data => x_msg_data);
2598:
2599: IF x_return_status<>fnd_api.g_ret_sts_success THEN
2600: RAISE fnd_api.g_exc_error;
2601: END IF;
2602:
2603: validate_start_end_date(

Line 2600: RAISE fnd_api.g_exc_error;

2596: x_msg_count => x_msg_count,
2597: x_msg_data => x_msg_data);
2598:
2599: IF x_return_status<>fnd_api.g_ret_sts_success THEN
2600: RAISE fnd_api.g_exc_error;
2601: END IF;
2602:
2603: validate_start_end_date(
2604: p_init_msg_list => fnd_api.g_false,

Line 2604: p_init_msg_list => fnd_api.g_false,

2600: RAISE fnd_api.g_exc_error;
2601: END IF;
2602:
2603: validate_start_end_date(
2604: p_init_msg_list => fnd_api.g_false,
2605: p_validation_mode => 'CREATE',
2606: p_system_id => p_system_rec.system_id,
2607: p_start_date => p_system_rec.start_date_active,
2608: p_end_date => p_system_rec.end_date_active,

Line 2612: IF x_return_status <> fnd_api.g_ret_sts_success THEN

2608: p_end_date => p_system_rec.end_date_active,
2609: x_return_status => x_return_status,
2610: x_msg_count => x_msg_count,
2611: x_msg_data => x_msg_data);
2612: IF x_return_status <> fnd_api.g_ret_sts_success THEN
2613: RAISE fnd_api.g_exc_error;
2614: END IF;
2615:
2616: -- Validate the Operating Unit

Line 2613: RAISE fnd_api.g_exc_error;

2609: x_return_status => x_return_status,
2610: x_msg_count => x_msg_count,
2611: x_msg_data => x_msg_data);
2612: IF x_return_status <> fnd_api.g_ret_sts_success THEN
2613: RAISE fnd_api.g_exc_error;
2614: END IF;
2615:
2616: -- Validate the Operating Unit
2617: IF p_system_rec.operating_unit_id is NOT NULL AND

Line 2618: p_system_rec.operating_unit_id <> FND_API.G_MISS_NUM THEN

2614: END IF;
2615:
2616: -- Validate the Operating Unit
2617: IF p_system_rec.operating_unit_id is NOT NULL AND
2618: p_system_rec.operating_unit_id <> FND_API.G_MISS_NUM THEN
2619: IF NOT csi_org_unit_vld_pvt.Is_Valid_operating_unit_id(p_system_rec.operating_unit_id) THEN
2620: RAISE fnd_api.g_exc_error;
2621: END IF;
2622: END IF;

Line 2620: RAISE fnd_api.g_exc_error;

2616: -- Validate the Operating Unit
2617: IF p_system_rec.operating_unit_id is NOT NULL AND
2618: p_system_rec.operating_unit_id <> FND_API.G_MISS_NUM THEN
2619: IF NOT csi_org_unit_vld_pvt.Is_Valid_operating_unit_id(p_system_rec.operating_unit_id) THEN
2620: RAISE fnd_api.g_exc_error;
2621: END IF;
2622: END IF;
2623: --
2624: IF ( (p_system_rec.name IS NULL) OR (p_system_rec.name=fnd_api.g_miss_char) )

Line 2624: IF ( (p_system_rec.name IS NULL) OR (p_system_rec.name=fnd_api.g_miss_char) )

2620: RAISE fnd_api.g_exc_error;
2621: END IF;
2622: END IF;
2623: --
2624: IF ( (p_system_rec.name IS NULL) OR (p_system_rec.name=fnd_api.g_miss_char) )
2625: THEN
2626: IF (fnd_profile.value('CSI_AUTO_GEN_SYS_NAME') = 'Y')
2627: THEN
2628: SELECT csi_systems_s.NEXTVAL

Line 2637: IF (x_return_status = fnd_api.g_ret_sts_success) THEN

2633: ELSE
2634: l_name := p_system_rec.name;
2635: END IF;
2636:
2637: IF (x_return_status = fnd_api.g_ret_sts_success) THEN
2638:
2639: -- check for unique system name
2640: Check_Unique(
2641: p_System_id => NULL

Line 2651: OR p_system_rec.start_date_active = fnd_api.g_miss_date

2647: ,x_msg_data => x_msg_data);
2648: END IF;
2649:
2650: IF p_system_rec.start_date_active IS NULL
2651: OR p_system_rec.start_date_active = fnd_api.g_miss_date
2652: THEN
2653: l_start_date := SYSDATE;
2654: ELSE
2655: l_start_date := p_system_rec.start_date_active;

Line 2659: (p_system_rec.coterminate_day_month <> FND_API.G_MISS_CHAR))

2655: l_start_date := p_system_rec.start_date_active;
2656: END IF;
2657:
2658: IF ((p_system_rec.coterminate_day_month IS NOT NULL) AND
2659: (p_system_rec.coterminate_day_month <> FND_API.G_MISS_CHAR))
2660: THEN
2661: BEGIN
2662: l_month := p_system_rec.coterminate_day_month||'-1996';
2663: l_date := to_date(l_month, 'DD-MM-YYYY');

Line 2669: RAISE fnd_api.g_exc_error;

2665: WHEN OTHERS THEN
2666: fnd_message.set_name('CSI','CSI_INVALID_COTERM_DATE');
2667: fnd_message.set_token('Coterminate_Day_Month',p_system_rec.coterminate_day_month);
2668: fnd_msg_pub.add;
2669: RAISE fnd_api.g_exc_error;
2670: END;
2671: END IF;
2672:
2673:

Line 2674: IF x_return_status = fnd_api.g_ret_sts_success THEN

2670: END;
2671: END IF;
2672:
2673:
2674: IF x_return_status = fnd_api.g_ret_sts_success THEN
2675: -- invoke table handler(csi_systems_b_pkg.insert_row)
2676:
2677:
2678: csi_systems_b_pkg.insert_row(

Line 2742: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN

2738: ,x_msg_count => x_msg_count
2739: ,x_msg_data => x_msg_data
2740: );
2741:
2742: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
2743:
2744:
2745: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_TXN');
2746: fnd_message.set_token('transaction_id',p_txn_rec.transaction_id );

Line 2749: RAISE fnd_api.g_exc_error;

2745: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_TXN');
2746: fnd_message.set_token('transaction_id',p_txn_rec.transaction_id );
2747: fnd_msg_pub.add;
2748:
2749: RAISE fnd_api.g_exc_error;
2750: RETURN;
2751: END IF;
2752:
2753:

Line 2843: IF x_return_status <> fnd_api.g_ret_sts_success THEN

2839:
2840:
2841:
2842:
2843: IF x_return_status <> fnd_api.g_ret_sts_success THEN
2844: RAISE fnd_api.g_exc_error;
2845: END IF;
2846:
2847: --

Line 2844: RAISE fnd_api.g_exc_error;

2840:
2841:
2842:
2843: IF x_return_status <> fnd_api.g_ret_sts_success THEN
2844: RAISE fnd_api.g_exc_error;
2845: END IF;
2846:
2847: --
2848: -- END of api body

Line 2852: IF fnd_api.to_boolean( p_commit )

2848: -- END of api body
2849: --
2850:
2851: -- standard check FOR p_commit
2852: IF fnd_api.to_boolean( p_commit )
2853: THEN
2854: COMMIT WORK;
2855: END IF;
2856:

Line 2867: WHEN fnd_api.g_exc_error THEN

2863: p_data => x_msg_data
2864: );
2865:
2866: EXCEPTION
2867: WHEN fnd_api.g_exc_error THEN
2868: ROLLBACK TO create_system_pvt;
2869: x_return_status := fnd_api.g_ret_sts_error ;
2870: fnd_msg_pub.count_and_get
2871: (p_count => x_msg_count ,

Line 2869: x_return_status := fnd_api.g_ret_sts_error ;

2865:
2866: EXCEPTION
2867: WHEN fnd_api.g_exc_error THEN
2868: ROLLBACK TO create_system_pvt;
2869: x_return_status := fnd_api.g_ret_sts_error ;
2870: fnd_msg_pub.count_and_get
2871: (p_count => x_msg_count ,
2872: p_data => x_msg_data
2873: );

Line 2875: WHEN fnd_api.g_exc_unexpected_error THEN

2871: (p_count => x_msg_count ,
2872: p_data => x_msg_data
2873: );
2874:
2875: WHEN fnd_api.g_exc_unexpected_error THEN
2876: ROLLBACK TO create_system_pvt;
2877: x_return_status := fnd_api.g_ret_sts_unexp_error ;
2878: fnd_msg_pub.count_and_get
2879: (p_count => x_msg_count ,

Line 2877: x_return_status := fnd_api.g_ret_sts_unexp_error ;

2873: );
2874:
2875: WHEN fnd_api.g_exc_unexpected_error THEN
2876: ROLLBACK TO create_system_pvt;
2877: x_return_status := fnd_api.g_ret_sts_unexp_error ;
2878: fnd_msg_pub.count_and_get
2879: (p_count => x_msg_count ,
2880: p_data => x_msg_data
2881: );

Line 2885: x_return_status := fnd_api.g_ret_sts_unexp_error ;

2881: );
2882:
2883: WHEN OTHERS THEN
2884: ROLLBACK TO create_system_pvt;
2885: x_return_status := fnd_api.g_ret_sts_unexp_error ;
2886: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
2887: fnd_msg_pub.add_exc_msg(g_pkg_name ,l_api_name);
2888: END IF;
2889: fnd_msg_pub.count_and_get

Line 3088: IF NOT fnd_api.compatible_api_call ( l_api_version_number,

3084: -- standard start of api savepoint
3085: SAVEPOINT update_system_pvt;
3086:
3087: -- standard call to check for call compatibility.
3088: IF NOT fnd_api.compatible_api_call ( l_api_version_number,
3089: p_api_version,
3090: l_api_name,
3091: g_pkg_name)
3092: THEN

Line 3093: RAISE fnd_api.g_exc_unexpected_error;

3089: p_api_version,
3090: l_api_name,
3091: g_pkg_name)
3092: THEN
3093: RAISE fnd_api.g_exc_unexpected_error;
3094: END IF;
3095:
3096:
3097: -- initialize message list if p_init_msg_list is set to true.

Line 3098: IF fnd_api.to_boolean( p_init_msg_list )

3094: END IF;
3095:
3096:
3097: -- initialize message list if p_init_msg_list is set to true.
3098: IF fnd_api.to_boolean( p_init_msg_list )
3099: THEN
3100: fnd_msg_pub.initialize;
3101: END IF;
3102:

Line 3104: x_return_status := fnd_api.g_ret_sts_success;

3100: fnd_msg_pub.initialize;
3101: END IF;
3102:
3103: -- initialize api return status to success
3104: x_return_status := fnd_api.g_ret_sts_success;
3105:
3106:
3107:
3108: l_debug_level:=fnd_profile.value('CSI_DEBUG_LEVEL');

Line 3127: RAISE fnd_api.g_exc_error;

3123: --
3124: IF p_system_rec.customer_id IS NULL THEN
3125: fnd_message.set_name('CSI', 'CSI_API_MANDATORY_CUSTOMER');
3126: fnd_msg_pub.add;
3127: RAISE fnd_api.g_exc_error;
3128: END IF;
3129: --
3130: IF p_system_rec.system_type_code IS NULL THEN
3131: fnd_message.set_name('CSI', 'CSI_API_MANDATORY_SYSTEM_TYPE');

Line 3133: RAISE fnd_api.g_exc_error;

3129: --
3130: IF p_system_rec.system_type_code IS NULL THEN
3131: fnd_message.set_name('CSI', 'CSI_API_MANDATORY_SYSTEM_TYPE');
3132: fnd_msg_pub.add;
3133: RAISE fnd_api.g_exc_error;
3134: END IF;
3135: --
3136:
3137: OPEN systems_csr (p_system_rec.system_id);

Line 3140: AND (p_system_rec.object_version_number <> fnd_api.g_miss_num) ) THEN

3136:
3137: OPEN systems_csr (p_system_rec.system_id);
3138: FETCH systems_csr INTO l_sys_csr;
3139: IF ( (l_sys_csr.object_version_number<>p_system_rec.object_version_number)
3140: AND (p_system_rec.object_version_number <> fnd_api.g_miss_num) ) THEN
3141: fnd_message.set_name('CSI', 'CSI_RECORD_CHANGED');
3142: fnd_msg_pub.add;
3143: RAISE fnd_api.g_exc_error;
3144: END IF;

Line 3143: RAISE fnd_api.g_exc_error;

3139: IF ( (l_sys_csr.object_version_number<>p_system_rec.object_version_number)
3140: AND (p_system_rec.object_version_number <> fnd_api.g_miss_num) ) THEN
3141: fnd_message.set_name('CSI', 'CSI_RECORD_CHANGED');
3142: fnd_msg_pub.add;
3143: RAISE fnd_api.g_exc_error;
3144: END IF;
3145: CLOSE systems_csr;
3146:
3147: OPEN tl_csr (p_system_rec.system_id);

Line 3154: p_init_msg_list => fnd_api.g_false,

3150:
3151:
3152: -- invoke validation procedures
3153: validate_system_id(
3154: p_init_msg_list => fnd_api.g_false,
3155: p_validation_mode => 'UPDATE',
3156: p_system_id => p_system_rec.system_id,
3157: x_return_status => x_return_status,
3158: x_msg_count => x_msg_count,

Line 3162: p_init_msg_list => fnd_api.g_false,

3158: x_msg_count => x_msg_count,
3159: x_msg_data => x_msg_data);
3160:
3161: validate_object_version_num(
3162: p_init_msg_list => fnd_api.g_false,
3163: p_validation_mode => 'UPDATE',
3164: p_object_version_number => p_system_rec.object_version_number,
3165: x_return_status => x_return_status,
3166: x_msg_count => x_msg_count,

Line 3169: IF x_return_status<>fnd_api.g_ret_sts_success THEN

3165: x_return_status => x_return_status,
3166: x_msg_count => x_msg_count,
3167: x_msg_data => x_msg_data);
3168:
3169: IF x_return_status<>fnd_api.g_ret_sts_success THEN
3170: RAISE fnd_api.g_exc_error;
3171: END IF;
3172:
3173: validate_systems(

Line 3170: RAISE fnd_api.g_exc_error;

3166: x_msg_count => x_msg_count,
3167: x_msg_data => x_msg_data);
3168:
3169: IF x_return_status<>fnd_api.g_ret_sts_success THEN
3170: RAISE fnd_api.g_exc_error;
3171: END IF;
3172:
3173: validate_systems(
3174: p_init_msg_list => fnd_api.g_false,

Line 3174: p_init_msg_list => fnd_api.g_false,

3170: RAISE fnd_api.g_exc_error;
3171: END IF;
3172:
3173: validate_systems(
3174: p_init_msg_list => fnd_api.g_false,
3175: p_validation_level => p_validation_level,
3176: p_validation_mode => 'UPDATE',
3177: p_system_rec => p_system_rec,
3178: x_return_status => x_return_status,

Line 3182: IF x_return_status<>fnd_api.g_ret_sts_success THEN

3178: x_return_status => x_return_status,
3179: x_msg_count => x_msg_count,
3180: x_msg_data => x_msg_data);
3181:
3182: IF x_return_status<>fnd_api.g_ret_sts_success THEN
3183: RAISE fnd_api.g_exc_error;
3184: END IF;
3185:
3186: validate_start_end_date(

Line 3183: RAISE fnd_api.g_exc_error;

3179: x_msg_count => x_msg_count,
3180: x_msg_data => x_msg_data);
3181:
3182: IF x_return_status<>fnd_api.g_ret_sts_success THEN
3183: RAISE fnd_api.g_exc_error;
3184: END IF;
3185:
3186: validate_start_end_date(
3187: p_init_msg_list => fnd_api.g_false,

Line 3187: p_init_msg_list => fnd_api.g_false,

3183: RAISE fnd_api.g_exc_error;
3184: END IF;
3185:
3186: validate_start_end_date(
3187: p_init_msg_list => fnd_api.g_false,
3188: p_validation_mode => 'UPDATE',
3189: p_system_id => p_system_rec.system_id,
3190: p_start_date => p_system_rec.start_date_active,
3191: p_end_date => p_system_rec.end_date_active,

Line 3195: IF x_return_status <> fnd_api.g_ret_sts_success THEN

3191: p_end_date => p_system_rec.end_date_active,
3192: x_return_status => x_return_status,
3193: x_msg_count => x_msg_count,
3194: x_msg_data => x_msg_data);
3195: IF x_return_status <> fnd_api.g_ret_sts_success THEN
3196: RAISE fnd_api.g_exc_error;
3197: END IF;
3198:
3199: IF (x_return_status = fnd_api.g_ret_sts_success) THEN

Line 3196: RAISE fnd_api.g_exc_error;

3192: x_return_status => x_return_status,
3193: x_msg_count => x_msg_count,
3194: x_msg_data => x_msg_data);
3195: IF x_return_status <> fnd_api.g_ret_sts_success THEN
3196: RAISE fnd_api.g_exc_error;
3197: END IF;
3198:
3199: IF (x_return_status = fnd_api.g_ret_sts_success) THEN
3200:

Line 3199: IF (x_return_status = fnd_api.g_ret_sts_success) THEN

3195: IF x_return_status <> fnd_api.g_ret_sts_success THEN
3196: RAISE fnd_api.g_exc_error;
3197: END IF;
3198:
3199: IF (x_return_status = fnd_api.g_ret_sts_success) THEN
3200:
3201: IF( (p_system_rec.parent_system_id IS NOT NULL) AND (p_system_rec.parent_system_id <> fnd_api.g_miss_num)) THEN
3202:
3203: check_parent_child_constraint(x_system_id => p_system_rec.system_id,

Line 3201: IF( (p_system_rec.parent_system_id IS NOT NULL) AND (p_system_rec.parent_system_id <> fnd_api.g_miss_num)) THEN

3197: END IF;
3198:
3199: IF (x_return_status = fnd_api.g_ret_sts_success) THEN
3200:
3201: IF( (p_system_rec.parent_system_id IS NOT NULL) AND (p_system_rec.parent_system_id <> fnd_api.g_miss_num)) THEN
3202:
3203: check_parent_child_constraint(x_system_id => p_system_rec.system_id,
3204: x_parent_system_id => p_system_rec.parent_system_id,
3205: x_return_status => x_return_status,

Line 3210: IF ( (p_system_rec.customer_id IS NOT NULL) AND (p_system_rec.customer_id<>fnd_api.g_miss_num) ) THEN

3206: x_msg_count => x_msg_count,
3207: x_msg_data => x_msg_data);
3208: END IF;
3209: END IF;
3210: IF ( (p_system_rec.customer_id IS NOT NULL) AND (p_system_rec.customer_id<>fnd_api.g_miss_num) ) THEN
3211: l_customer_id:=p_system_rec.customer_id;
3212: ELSE
3213: l_customer_id:=l_sys_csr.customer_id;
3214: END IF;

Line 3217: IF (x_return_status = fnd_api.g_ret_sts_success) THEN

3213: l_customer_id:=l_sys_csr.customer_id;
3214: END IF;
3215:
3216:
3217: IF (x_return_status = fnd_api.g_ret_sts_success) THEN
3218: -- check for unique system name
3219: Check_Unique(
3220: p_System_id => p_system_rec.system_id
3221: ,p_Name => p_system_rec.name

Line 3231: (p_system_rec.coterminate_day_month <> FND_API.G_MISS_CHAR))

3227:
3228: END IF;
3229:
3230: IF ((p_system_rec.coterminate_day_month IS NOT NULL) AND
3231: (p_system_rec.coterminate_day_month <> FND_API.G_MISS_CHAR))
3232: THEN
3233: BEGIN
3234: l_month := p_system_rec.coterminate_day_month||'-1996';
3235: l_date := to_date(l_month, 'DD-MM-YYYY');

Line 3241: RAISE fnd_api.g_exc_error;

3237: WHEN OTHERS THEN
3238: fnd_message.set_name('CSI','CSI_INVALID_COTERM_DATE');
3239: fnd_message.set_token('Coterminate_Day_Month',p_system_rec.coterminate_day_month);
3240: fnd_msg_pub.add;
3241: RAISE fnd_api.g_exc_error;
3242: END;
3243: END IF;
3244:
3245: -- Validate Operating_unit_id

Line 3247: p_system_rec.operating_unit_id <> FND_API.G_MISS_NUM AND

3243: END IF;
3244:
3245: -- Validate Operating_unit_id
3246: IF p_system_rec.operating_unit_id IS NOT NULL AND
3247: p_system_rec.operating_unit_id <> FND_API.G_MISS_NUM AND
3248: p_system_rec.operating_unit_id <> nvl(l_sys_csr.operating_unit_id,-999) THEN
3249: IF NOT csi_org_unit_vld_pvt.Is_Valid_operating_unit_id(p_system_rec.operating_unit_id) THEN
3250: RAISE fnd_api.g_exc_error;
3251: END IF;

Line 3250: RAISE fnd_api.g_exc_error;

3246: IF p_system_rec.operating_unit_id IS NOT NULL AND
3247: p_system_rec.operating_unit_id <> FND_API.G_MISS_NUM AND
3248: p_system_rec.operating_unit_id <> nvl(l_sys_csr.operating_unit_id,-999) THEN
3249: IF NOT csi_org_unit_vld_pvt.Is_Valid_operating_unit_id(p_system_rec.operating_unit_id) THEN
3250: RAISE fnd_api.g_exc_error;
3251: END IF;
3252: END IF;
3253: --
3254: csi_gen_utility_pvt.put_line('p_system_rec.end_date_active is '||to_char(p_system_rec.end_date_active,'DD-MON-YYYY HH24:MI:SS'));

Line 3256: AND p_system_rec.end_date_active <> fnd_api.g_miss_date

3252: END IF;
3253: --
3254: csi_gen_utility_pvt.put_line('p_system_rec.end_date_active is '||to_char(p_system_rec.end_date_active,'DD-MON-YYYY HH24:MI:SS'));
3255: IF (p_system_rec.end_date_active IS NOT NULL
3256: AND p_system_rec.end_date_active <> fnd_api.g_miss_date
3257: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)
3258: AND p_system_rec.end_date_active >= SYSDATE)
3259: -- srramakr. Since HTML has the time component, TRUNC has been removed.
3260: THEN

Line 3257: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)

3253: --
3254: csi_gen_utility_pvt.put_line('p_system_rec.end_date_active is '||to_char(p_system_rec.end_date_active,'DD-MON-YYYY HH24:MI:SS'));
3255: IF (p_system_rec.end_date_active IS NOT NULL
3256: AND p_system_rec.end_date_active <> fnd_api.g_miss_date
3257: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)
3258: AND p_system_rec.end_date_active >= SYSDATE)
3259: -- srramakr. Since HTML has the time component, TRUNC has been removed.
3260: THEN
3261: csi_systems_pvt.expire_system(

Line 3263: p_commit => fnd_api.g_false,

3259: -- srramakr. Since HTML has the time component, TRUNC has been removed.
3260: THEN
3261: csi_systems_pvt.expire_system(
3262: p_api_version => p_api_version,
3263: p_commit => fnd_api.g_false,
3264: p_init_msg_list => p_init_msg_list,
3265: p_validation_level => p_validation_level,
3266: p_system_rec => p_system_rec,
3267: p_txn_rec => p_txn_rec,

Line 3274: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN

3270: x_msg_count => x_msg_count,
3271: x_msg_data => x_msg_data
3272: );
3273:
3274: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
3275: fnd_message.set_name('CSI','CSI_FAILED_TO_EXPIRE_SYSTEM');
3276: fnd_message.set_token('SYSTEM_ID',p_system_rec.system_id );
3277: fnd_msg_pub.add;
3278: RAISE fnd_api.g_exc_error;

Line 3278: RAISE fnd_api.g_exc_error;

3274: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
3275: fnd_message.set_name('CSI','CSI_FAILED_TO_EXPIRE_SYSTEM');
3276: fnd_message.set_token('SYSTEM_ID',p_system_rec.system_id );
3277: fnd_msg_pub.add;
3278: RAISE fnd_api.g_exc_error;
3279: END IF;
3280: ELSIF ( p_system_rec.end_date_active IS NOT NULL
3281: AND p_system_rec.end_date_active <> fnd_api.g_miss_date
3282: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)

Line 3281: AND p_system_rec.end_date_active <> fnd_api.g_miss_date

3277: fnd_msg_pub.add;
3278: RAISE fnd_api.g_exc_error;
3279: END IF;
3280: ELSIF ( p_system_rec.end_date_active IS NOT NULL
3281: AND p_system_rec.end_date_active <> fnd_api.g_miss_date
3282: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)
3283: AND p_system_rec.end_date_active < SYSDATE)
3284: -- srramakr. Since HTML has the time component, TRUNC has been removed.
3285: THEN

Line 3282: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)

3278: RAISE fnd_api.g_exc_error;
3279: END IF;
3280: ELSIF ( p_system_rec.end_date_active IS NOT NULL
3281: AND p_system_rec.end_date_active <> fnd_api.g_miss_date
3282: AND p_system_rec.end_date_active <> nvl(l_sys_csr.end_date_active,fnd_api.g_miss_date)
3283: AND p_system_rec.end_date_active < SYSDATE)
3284: -- srramakr. Since HTML has the time component, TRUNC has been removed.
3285: THEN
3286: BEGIN

Line 3305: RAISE fnd_api.g_exc_error;

3301: THEN
3302: fnd_message.set_name('CSI','CSI_HAS_TXNS');
3303: fnd_message.set_token('END_DATE_ACTIVE',p_system_rec.end_date_active );
3304: fnd_msg_pub.add;
3305: RAISE fnd_api.g_exc_error;
3306: -- srramakr. If the Active end date is < sysdate, then call to Expire_System
3307: -- was missed. Fixed as a part of Bug 2230262.
3308: ELSE
3309: csi_systems_pvt.expire_system(

Line 3311: p_commit => fnd_api.g_false,

3307: -- was missed. Fixed as a part of Bug 2230262.
3308: ELSE
3309: csi_systems_pvt.expire_system(
3310: p_api_version => p_api_version,
3311: p_commit => fnd_api.g_false,
3312: p_init_msg_list => p_init_msg_list,
3313: p_validation_level => p_validation_level,
3314: p_system_rec => p_system_rec,
3315: p_txn_rec => p_txn_rec,

Line 3322: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN

3318: x_msg_count => x_msg_count,
3319: x_msg_data => x_msg_data
3320: );
3321:
3322: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
3323: fnd_message.set_name('CSI','CSI_FAILED_TO_EXPIRE_SYSTEM');
3324: fnd_message.set_token('SYSTEM_ID',p_system_rec.system_id );
3325: fnd_msg_pub.add;
3326: RAISE fnd_api.g_exc_error;

Line 3326: RAISE fnd_api.g_exc_error;

3322: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
3323: fnd_message.set_name('CSI','CSI_FAILED_TO_EXPIRE_SYSTEM');
3324: fnd_message.set_token('SYSTEM_ID',p_system_rec.system_id );
3325: fnd_msg_pub.add;
3326: RAISE fnd_api.g_exc_error;
3327: END IF;
3328: END IF;
3329: -- The exception has moved up since any Raise wihin the block will hit this exception
3330: -- rather than going to the actual fnd_api.g_exc_error.

Line 3330: -- rather than going to the actual fnd_api.g_exc_error.

3326: RAISE fnd_api.g_exc_error;
3327: END IF;
3328: END IF;
3329: -- The exception has moved up since any Raise wihin the block will hit this exception
3330: -- rather than going to the actual fnd_api.g_exc_error.
3331: ELSE
3332:
3333: IF x_return_status = fnd_api.g_ret_sts_success THEN
3334: -- invoke table handler(csi_systems_b_pkg.update_row)

Line 3333: IF x_return_status = fnd_api.g_ret_sts_success THEN

3329: -- The exception has moved up since any Raise wihin the block will hit this exception
3330: -- rather than going to the actual fnd_api.g_exc_error.
3331: ELSE
3332:
3333: IF x_return_status = fnd_api.g_ret_sts_success THEN
3334: -- invoke table handler(csi_systems_b_pkg.update_row)
3335: IF p_txn_rec.source_group_ref = 'XFER' THEN
3336:
3337: csi_systems_b_pkg.update_row_for_mu(

Line 3370: p_created_by => fnd_api.g_miss_num,

3366: p_attribute12 => p_system_rec.attribute12,
3367: p_attribute13 => p_system_rec.attribute13,
3368: p_attribute14 => p_system_rec.attribute14,
3369: p_attribute15 => p_system_rec.attribute15,
3370: p_created_by => fnd_api.g_miss_num,
3371: p_creation_date => fnd_api.g_miss_date,
3372: p_last_updated_by => fnd_global.user_id,
3373: p_last_update_date => SYSDATE,
3374: p_last_update_login => fnd_global.conc_login_id,

Line 3371: p_creation_date => fnd_api.g_miss_date,

3367: p_attribute13 => p_system_rec.attribute13,
3368: p_attribute14 => p_system_rec.attribute14,
3369: p_attribute15 => p_system_rec.attribute15,
3370: p_created_by => fnd_api.g_miss_num,
3371: p_creation_date => fnd_api.g_miss_date,
3372: p_last_updated_by => fnd_global.user_id,
3373: p_last_update_date => SYSDATE,
3374: p_last_update_login => fnd_global.conc_login_id,
3375: p_object_version_number => p_system_rec.object_version_number,

Line 3418: p_created_by => fnd_api.g_miss_num,

3414: p_attribute12 => p_system_rec.attribute12,
3415: p_attribute13 => p_system_rec.attribute13,
3416: p_attribute14 => p_system_rec.attribute14,
3417: p_attribute15 => p_system_rec.attribute15,
3418: p_created_by => fnd_api.g_miss_num,
3419: p_creation_date => fnd_api.g_miss_date,
3420: p_last_updated_by => fnd_global.user_id,
3421: p_last_update_date => SYSDATE,
3422: p_last_update_login => fnd_global.conc_login_id,

Line 3419: p_creation_date => fnd_api.g_miss_date,

3415: p_attribute13 => p_system_rec.attribute13,
3416: p_attribute14 => p_system_rec.attribute14,
3417: p_attribute15 => p_system_rec.attribute15,
3418: p_created_by => fnd_api.g_miss_num,
3419: p_creation_date => fnd_api.g_miss_date,
3420: p_last_updated_by => fnd_global.user_id,
3421: p_last_update_date => SYSDATE,
3422: p_last_update_login => fnd_global.conc_login_id,
3423: p_object_version_number => p_system_rec.object_version_number,

Line 3446: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN

3442: ,x_msg_count => x_msg_count
3443: ,x_msg_data => x_msg_data
3444: );
3445:
3446: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
3447: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_TXN');
3448: fnd_message.set_token('transaction_id',p_txn_rec.transaction_id );
3449: fnd_msg_pub.add;
3450:

Line 3451: RAISE fnd_api.g_exc_error;

3447: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_TXN');
3448: fnd_message.set_token('transaction_id',p_txn_rec.transaction_id );
3449: fnd_msg_pub.add;
3450:
3451: RAISE fnd_api.g_exc_error;
3452: RETURN;
3453: END IF;
3454:
3455: l_old_systems_rec.system_id:=l_sys_csr.system_id;

Line 3511: IF ( (p_system_rec.customer_id IS NOT NULL) AND (p_system_rec.customer_id<>fnd_api.g_miss_num) AND

3507: -- When a system is Xferred, based on Cascade_cust_to_inst_flag, we need to cascade the account
3508: -- changes to Instances.
3509: l_xfer_flag := 'N';
3510:
3511: IF ( (p_system_rec.customer_id IS NOT NULL) AND (p_system_rec.customer_id<>fnd_api.g_miss_num) AND
3512: (p_system_rec.customer_id <> l_sys_csr.customer_id) AND
3513: (nvl(p_system_rec.CASCADE_CUST_TO_INS_FLAG,'N') = 'Y') ) THEN
3514: Begin
3515: select party_id

Line 3526: IF nvl(p_system_rec.bill_to_site_use_id,fnd_api.g_miss_num) = fnd_api.g_miss_num THEN

3522: End;
3523: --
3524: l_xfer_flag := 'Y';
3525: -- srramakr Bug 3621181. Bill_to and Ship_to should get changed accordingly
3526: IF nvl(p_system_rec.bill_to_site_use_id,fnd_api.g_miss_num) = fnd_api.g_miss_num THEN
3527: l_bill_to_address := null;
3528: ELSE
3529: l_bill_to_address := p_system_rec.bill_to_site_use_id;
3530: END IF;

Line 3532: IF nvl(p_system_rec.ship_to_site_use_id,fnd_api.g_miss_num) = fnd_api.g_miss_num THEN

3528: ELSE
3529: l_bill_to_address := p_system_rec.bill_to_site_use_id;
3530: END IF;
3531: --
3532: IF nvl(p_system_rec.ship_to_site_use_id,fnd_api.g_miss_num) = fnd_api.g_miss_num THEN
3533: l_ship_to_address := null;
3534: ELSE
3535: l_ship_to_address := p_system_rec.ship_to_site_use_id;
3536: END IF;

Line 3580: ,p_commit => fnd_api.g_false

3576: l_party_account_tbl(1).ship_to_address := l_ship_to_address;
3577: --
3578: csi_party_relationships_pub.update_inst_party_relationship
3579: (p_api_version => p_api_version
3580: ,p_commit => fnd_api.g_false
3581: ,p_init_msg_list => p_init_msg_list
3582: ,p_validation_level => p_validation_level
3583: ,p_party_tbl => l_party_tbl
3584: ,p_party_account_tbl=> l_party_account_tbl

Line 3592: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

3588: ,x_msg_count => x_msg_count
3589: ,x_msg_data => x_msg_data
3590: );
3591:
3592: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
3593: csi_gen_utility_pvt.put_line('Error from CSI_PARTY_RELATIONSHIPS_PUB.. ');
3594: l_msg_index := 1;
3595: l_msg_count := x_msg_count;
3596: WHILE l_msg_count > 0

Line 3600: FND_API.G_FALSE );

3596: WHILE l_msg_count > 0
3597: LOOP
3598: x_msg_data := FND_MSG_PUB.GET
3599: ( l_msg_index,
3600: FND_API.G_FALSE );
3601: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3602: l_msg_index := l_msg_index + 1;
3603: l_msg_count := l_msg_count - 1;
3604: END LOOP;

Line 3605: RAISE FND_API.G_EXC_ERROR;

3601: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3602: l_msg_index := l_msg_index + 1;
3603: l_msg_count := l_msg_count - 1;
3604: END LOOP;
3605: RAISE FND_API.G_EXC_ERROR;
3606: END IF;
3607: Exception
3608: when Process_next then
3609: null;

Line 3642: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

3638: x_msg_count => x_msg_count,
3639: x_msg_data => x_msg_data
3640: );
3641: --
3642: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
3643: l_msg_index := 1;
3644: l_msg_count := x_msg_count;
3645: WHILE l_msg_count > 0 LOOP
3646: x_msg_data := FND_MSG_PUB.GET

Line 3648: FND_API.G_FALSE );

3644: l_msg_count := x_msg_count;
3645: WHILE l_msg_count > 0 LOOP
3646: x_msg_data := FND_MSG_PUB.GET
3647: ( l_msg_index,
3648: FND_API.G_FALSE );
3649: csi_gen_utility_pvt.put_line( 'Error from OKS_IBINT_PUB.IB_interface..');
3650: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3651: l_msg_index := l_msg_index + 1;
3652: l_msg_count := l_msg_count - 1;

Line 3654: RAISE FND_API.G_EXC_ERROR;

3650: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3651: l_msg_index := l_msg_index + 1;
3652: l_msg_count := l_msg_count - 1;
3653: END LOOP;
3654: RAISE FND_API.G_EXC_ERROR;
3655: END IF;
3656: END IF;
3657: END IF;
3658: --

Line 3664: If ( ((nvl(p_system_rec.install_site_use_id,-999) <> fnd_api.g_miss_num) AND

3660: -- Bug # 3072178 rtalluri
3661: -- When a install_site_use_id changes for a system, then the install details should be cascaded to
3662: -- all the underlying instances associated to the system
3663: --
3664: If ( ((nvl(p_system_rec.install_site_use_id,-999) <> fnd_api.g_miss_num) AND
3665: (nvl(p_system_rec.install_site_use_id,-999) <> nvl(l_sys_csr.install_site_use_id,-999))) AND
3666: (nvl(p_system_rec.INSTALL_TO_SITE_CHANGE_FLAG,'N') = 'Y') )
3667: Then
3668:

Line 3675: IF p_system_rec.install_site_use_id = FND_API.G_MISS_NUM OR

3671: Begin
3672: l_instance_rec :=l_temp_instance_rec;
3673: l_call_flag := 'N';
3674: IF nvl(v_install_rec.install_location_id,-999) = nvl(l_sys_csr.install_site_use_id,-999) THEN
3675: IF p_system_rec.install_site_use_id = FND_API.G_MISS_NUM OR
3676: nvl(p_system_rec.INSTALL_TO_SITE_CHANGE_FLAG,'N') <> 'Y' THEN
3677: l_install_to := v_install_rec.install_location_id;
3678: ELSE
3679: l_install_to := p_system_rec.install_site_use_id;

Line 3715: ,p_commit => fnd_api.g_false

3711:
3712: csi_item_instance_pvt.update_Item_Instance
3713: (
3714: p_api_version => p_api_version
3715: ,p_commit => fnd_api.g_false
3716: ,p_init_msg_list => p_init_msg_list
3717: ,p_validation_level => p_validation_level
3718: ,p_instance_rec => l_instance_rec
3719: ,p_txn_rec => p_txn_rec

Line 3732: If NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) Then

3728: ,p_ins_count_rec => l_ins_count_rec
3729: ,p_oks_txn_inst_tbl => px_oks_txn_inst_tbl
3730: ,p_child_inst_tbl => px_child_inst_tbl
3731: );
3732: If NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) Then
3733: csi_gen_utility_pvt.put_line('Error from csi_item_instance_pvt.update_item_instance while updating Install Location.');
3734: l_msg_index := 1;
3735: l_msg_count := x_msg_count;
3736: While l_msg_count > 0

Line 3740: FND_API.G_FALSE );

3736: While l_msg_count > 0
3737: Loop
3738: x_msg_data := FND_MSG_PUB.GET
3739: ( l_msg_index,
3740: FND_API.G_FALSE );
3741: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3742: l_msg_index := l_msg_index + 1;
3743: l_msg_count := l_msg_count - 1;
3744: End Loop;

Line 3745: Raise FND_API.G_EXC_ERROR;

3741: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3742: l_msg_index := l_msg_index + 1;
3743: l_msg_count := l_msg_count - 1;
3744: End Loop;
3745: Raise FND_API.G_EXC_ERROR;
3746: End If;
3747: End If;
3748: Exception
3749: when Process_next then

Line 3759: IF ( (((nvl(p_system_rec.bill_to_site_use_id,-999) <> fnd_api.g_miss_num) AND

3755: -- srramakr Bug # 2368440. When Bill_to or Ship_to address is changed, it should cascade to
3756: -- instances. The change will take place for the Owner Party Account with the same addresses.
3757: -- srramakr Bug 3621181 No need to cascade the addresses if ownership xfer occured.
3758: IF l_xfer_flag <> 'Y' THEN
3759: IF ( (((nvl(p_system_rec.bill_to_site_use_id,-999) <> fnd_api.g_miss_num) AND
3760: (nvl(p_system_rec.bill_to_site_use_id,-999) <> nvl(l_sys_csr.bill_to_site_use_id,-999))) OR
3761: ((nvl(p_system_rec.ship_to_site_use_id,-999) <> fnd_api.g_miss_num) AND
3762: (nvl(p_system_rec.ship_to_site_use_id,-999) <> nvl(l_sys_csr.ship_to_site_use_id,-999)))) AND
3763: ((nvl(p_system_rec.BILL_TO_SITE_CHANGE_FLAG,'N') = 'Y') OR

Line 3761: ((nvl(p_system_rec.ship_to_site_use_id,-999) <> fnd_api.g_miss_num) AND

3757: -- srramakr Bug 3621181 No need to cascade the addresses if ownership xfer occured.
3758: IF l_xfer_flag <> 'Y' THEN
3759: IF ( (((nvl(p_system_rec.bill_to_site_use_id,-999) <> fnd_api.g_miss_num) AND
3760: (nvl(p_system_rec.bill_to_site_use_id,-999) <> nvl(l_sys_csr.bill_to_site_use_id,-999))) OR
3761: ((nvl(p_system_rec.ship_to_site_use_id,-999) <> fnd_api.g_miss_num) AND
3762: (nvl(p_system_rec.ship_to_site_use_id,-999) <> nvl(l_sys_csr.ship_to_site_use_id,-999)))) AND
3763: ((nvl(p_system_rec.BILL_TO_SITE_CHANGE_FLAG,'N') = 'Y') OR
3764: (nvl(p_system_rec.SHIP_TO_SITE_CHANGE_FLAG,'N') = 'Y')) ) THEN
3765: For v_rec in ip_acct_csr(l_sys_csr.bill_to_site_use_id,l_sys_csr.ship_to_site_use_id)

Line 3770: IF p_system_rec.bill_to_site_use_id = FND_API.G_MISS_NUM OR

3766: Loop
3767: l_party_account_tbl := l_init_party_account_tbl;
3768: l_call_flag := 'N';
3769: IF nvl(v_rec.bill_to_address,-999) = nvl(l_sys_csr.bill_to_site_use_id,-999) THEN
3770: IF p_system_rec.bill_to_site_use_id = FND_API.G_MISS_NUM OR
3771: nvl(p_system_rec.BILL_TO_SITE_CHANGE_FLAG,'N') <> 'Y' THEN
3772: l_bill_to := v_rec.bill_to_address;
3773: ELSE
3774: l_bill_to := p_system_rec.bill_to_site_use_id;

Line 3782: IF p_system_rec.ship_to_site_use_id = FND_API.G_MISS_NUM OR

3778: l_bill_to := v_rec.bill_to_address;
3779: END IF;
3780: --
3781: IF nvl(v_rec.ship_to_address,-999) = nvl(l_sys_csr.ship_to_site_use_id,-999) THEN
3782: IF p_system_rec.ship_to_site_use_id = FND_API.G_MISS_NUM OR
3783: nvl(p_system_rec.SHIP_TO_SITE_CHANGE_FLAG,'N') <> 'Y' THEN
3784: l_ship_to := v_rec.ship_to_address;
3785: ELSE
3786: l_ship_to := p_system_rec.ship_to_site_use_id;

Line 3802: ,p_commit => fnd_api.g_false

3798: --
3799: -- Call Update_Inst_party_account
3800: csi_party_relationships_pvt.update_inst_party_account
3801: ( p_api_version => p_api_version
3802: ,p_commit => fnd_api.g_false
3803: ,p_init_msg_list => p_init_msg_list
3804: ,p_validation_level => p_validation_level
3805: ,p_party_account_rec => l_party_account_tbl(1)
3806: ,p_txn_rec => p_txn_rec

Line 3812: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

3808: ,x_return_status => x_return_status
3809: ,x_msg_count => x_msg_count
3810: ,x_msg_data => x_msg_data
3811: );
3812: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
3813: csi_gen_utility_pvt.put_line('Error from while updating Accounts.');
3814: l_msg_index := 1;
3815: l_msg_count := x_msg_count;
3816: WHILE l_msg_count > 0

Line 3820: FND_API.G_FALSE );

3816: WHILE l_msg_count > 0
3817: LOOP
3818: x_msg_data := FND_MSG_PUB.GET
3819: ( l_msg_index,
3820: FND_API.G_FALSE );
3821: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3822: l_msg_index := l_msg_index + 1;
3823: l_msg_count := l_msg_count - 1;
3824: END LOOP;

Line 3825: RAISE FND_API.G_EXC_ERROR;

3821: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3822: l_msg_index := l_msg_index + 1;
3823: l_msg_count := l_msg_count - 1;
3824: END LOOP;
3825: RAISE FND_API.G_EXC_ERROR;
3826: END IF;
3827: END IF;
3828: --
3829: End Loop;

Line 3846: IF p_system_rec.bill_to_contact_id = FND_API.G_MISS_NUM OR

3842: l_party_tbl := l_init_party_tbl;
3843: l_call_flag := 'N';
3844: IF cont_rec.relationship_type_code = 'BILL_TO' AND
3845: nvl(cont_rec.party_id,-999) = nvl(l_sys_csr.bill_to_contact_id,-999) THEN
3846: IF p_system_rec.bill_to_contact_id = FND_API.G_MISS_NUM OR
3847: p_system_rec.bill_to_contact_id IS NULL OR
3848: nvl(p_system_rec.bill_to_cont_change_flag,'N') <> 'Y' THEN
3849: l_contact_party_id := cont_rec.party_id;
3850: ELSE

Line 3858: IF p_system_rec.ship_to_contact_id = FND_API.G_MISS_NUM OR

3854: END IF; -- End of Bill To
3855: --
3856: IF cont_rec.relationship_type_code = 'SHIP_TO' AND
3857: nvl(cont_rec.party_id,-999) = nvl(l_sys_csr.ship_to_contact_id,-999) THEN
3858: IF p_system_rec.ship_to_contact_id = FND_API.G_MISS_NUM OR
3859: p_system_rec.ship_to_contact_id IS NULL OR
3860: nvl(p_system_rec.ship_to_cont_change_flag,'N') <> 'Y' THEN
3861: l_contact_party_id := cont_rec.party_id;
3862: ELSE

Line 3870: IF p_system_rec.technical_contact_id = FND_API.G_MISS_NUM OR

3866: END IF; -- End of Ship To
3867: --
3868: IF cont_rec.relationship_type_code = 'TECHNICAL' AND
3869: nvl(cont_rec.party_id,-999) = nvl(l_sys_csr.technical_contact_id,-999) THEN
3870: IF p_system_rec.technical_contact_id = FND_API.G_MISS_NUM OR
3871: p_system_rec.technical_contact_id IS NULL OR
3872: nvl(p_system_rec.tech_cont_change_flag,'N') <> 'Y' THEN
3873: l_contact_party_id := cont_rec.party_id;
3874: ELSE

Line 3882: IF p_system_rec.service_admin_contact_id = FND_API.G_MISS_NUM OR

3878: END IF; -- End of Technical
3879: --
3880: IF cont_rec.relationship_type_code = 'SERV_ADMIN' AND
3881: nvl(cont_rec.party_id,-999) = nvl(l_sys_csr.service_admin_contact_id,-999) THEN
3882: IF p_system_rec.service_admin_contact_id = FND_API.G_MISS_NUM OR
3883: p_system_rec.service_admin_contact_id IS NULL OR
3884: nvl(p_system_rec.serv_admin_cont_change_flag,'N') <> 'Y' THEN
3885: l_contact_party_id := cont_rec.party_id;
3886: ELSE

Line 3899: ,p_commit => fnd_api.g_false

3895: l_party_tbl(1).party_id := l_contact_party_id;
3896: --
3897: csi_party_relationships_pvt.update_inst_party_relationship
3898: (p_api_version => p_api_version
3899: ,p_commit => fnd_api.g_false
3900: ,p_init_msg_list => p_init_msg_list
3901: ,p_validation_level => p_validation_level
3902: ,p_party_rec => l_party_tbl(1)
3903: ,p_txn_rec => p_txn_rec

Line 3909: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

3905: ,x_msg_count => x_msg_count
3906: ,x_msg_data => x_msg_data
3907: );
3908:
3909: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
3910: csi_gen_utility_pvt.put_line('Error from CSI_PARTY_RELATIONSHIPS_PVT.. ');
3911: l_msg_index := 1;
3912: l_msg_count := x_msg_count;
3913: WHILE l_msg_count > 0

Line 3917: FND_API.G_FALSE );

3913: WHILE l_msg_count > 0
3914: LOOP
3915: x_msg_data := FND_MSG_PUB.GET
3916: ( l_msg_index,
3917: FND_API.G_FALSE );
3918: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3919: l_msg_index := l_msg_index + 1;
3920: l_msg_count := l_msg_count - 1;
3921: END LOOP;

Line 3922: RAISE FND_API.G_EXC_ERROR;

3918: csi_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
3919: l_msg_index := l_msg_index + 1;
3920: l_msg_count := l_msg_count - 1;
3921: END LOOP;
3922: RAISE FND_API.G_EXC_ERROR;
3923: END IF;
3924: END IF; -- End of call_flag check
3925: --
3926: End Loop;

Line 3930: IF x_return_status <> fnd_api.g_ret_sts_success THEN

3926: End Loop;
3927: End Loop;
3928: END IF;
3929:
3930: IF x_return_status <> fnd_api.g_ret_sts_success THEN
3931: RAISE fnd_api.g_exc_error;
3932: END IF;
3933: -- standard check for p_commit
3934: IF fnd_api.to_boolean( p_commit )

Line 3931: RAISE fnd_api.g_exc_error;

3927: End Loop;
3928: END IF;
3929:
3930: IF x_return_status <> fnd_api.g_ret_sts_success THEN
3931: RAISE fnd_api.g_exc_error;
3932: END IF;
3933: -- standard check for p_commit
3934: IF fnd_api.to_boolean( p_commit )
3935: THEN

Line 3934: IF fnd_api.to_boolean( p_commit )

3930: IF x_return_status <> fnd_api.g_ret_sts_success THEN
3931: RAISE fnd_api.g_exc_error;
3932: END IF;
3933: -- standard check for p_commit
3934: IF fnd_api.to_boolean( p_commit )
3935: THEN
3936: COMMIT WORK;
3937: END IF;
3938:

Line 3946: WHEN fnd_api.g_exc_error THEN

3942: p_data => x_msg_data
3943: );
3944: END IF;
3945: EXCEPTION
3946: WHEN fnd_api.g_exc_error THEN
3947: ROLLBACK TO update_system_pvt;
3948: x_return_status := fnd_api.g_ret_sts_error ;
3949: fnd_msg_pub.count_and_get
3950: (p_count => x_msg_count ,

Line 3948: x_return_status := fnd_api.g_ret_sts_error ;

3944: END IF;
3945: EXCEPTION
3946: WHEN fnd_api.g_exc_error THEN
3947: ROLLBACK TO update_system_pvt;
3948: x_return_status := fnd_api.g_ret_sts_error ;
3949: fnd_msg_pub.count_and_get
3950: (p_count => x_msg_count ,
3951: p_data => x_msg_data
3952: );

Line 3954: WHEN fnd_api.g_exc_unexpected_error THEN

3950: (p_count => x_msg_count ,
3951: p_data => x_msg_data
3952: );
3953:
3954: WHEN fnd_api.g_exc_unexpected_error THEN
3955: ROLLBACK TO update_system_pvt;
3956: x_return_status := fnd_api.g_ret_sts_unexp_error ;
3957: fnd_msg_pub.count_and_get
3958: (p_count => x_msg_count ,

Line 3956: x_return_status := fnd_api.g_ret_sts_unexp_error ;

3952: );
3953:
3954: WHEN fnd_api.g_exc_unexpected_error THEN
3955: ROLLBACK TO update_system_pvt;
3956: x_return_status := fnd_api.g_ret_sts_unexp_error ;
3957: fnd_msg_pub.count_and_get
3958: (p_count => x_msg_count ,
3959: p_data => x_msg_data
3960: );

Line 3964: x_return_status := fnd_api.g_ret_sts_unexp_error ;

3960: );
3961:
3962: WHEN OTHERS THEN
3963: ROLLBACK TO update_system_pvt;
3964: x_return_status := fnd_api.g_ret_sts_unexp_error ;
3965: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
3966: fnd_msg_pub.add_exc_msg(g_pkg_name ,l_api_name);
3967: END IF;
3968: fnd_msg_pub.count_and_get

Line 4068: IF NOT fnd_api.compatible_api_call ( l_api_version_number,

4064: -- standard start of api savepoint
4065: SAVEPOINT expire_system_pvt;
4066:
4067: -- standard call to check for call compatibility.
4068: IF NOT fnd_api.compatible_api_call ( l_api_version_number,
4069: p_api_version,
4070: l_api_name,
4071: g_pkg_name)
4072: THEN

Line 4073: RAISE fnd_api.g_exc_unexpected_error;

4069: p_api_version,
4070: l_api_name,
4071: g_pkg_name)
4072: THEN
4073: RAISE fnd_api.g_exc_unexpected_error;
4074: END IF;
4075:
4076:
4077: -- initialize message list if p_init_msg_list is set to true.

Line 4078: IF fnd_api.to_boolean( p_init_msg_list )

4074: END IF;
4075:
4076:
4077: -- initialize message list if p_init_msg_list is set to true.
4078: IF fnd_api.to_boolean( p_init_msg_list )
4079: THEN
4080: fnd_msg_pub.initialize;
4081: END IF;
4082:

Line 4084: x_return_status := fnd_api.g_ret_sts_success;

4080: fnd_msg_pub.initialize;
4081: END IF;
4082:
4083: -- initialize api return status to success
4084: x_return_status := fnd_api.g_ret_sts_success;
4085:
4086: l_debug_level:=fnd_profile.value('CSI_DEBUG_LEVEL');
4087: IF (l_debug_level > 0) THEN
4088: csi_gen_utility_pvt.put_line( 'expire_system');

Line 4105: AND (p_system_rec.object_version_number <> fnd_api.g_miss_num) ) THEN

4101:
4102: OPEN systems_csr (p_system_rec.system_id);
4103: FETCH systems_csr INTO l_sys_csr;
4104: IF ( (l_sys_csr.object_version_number<>p_system_rec.object_version_number)
4105: AND (p_system_rec.object_version_number <> fnd_api.g_miss_num) ) THEN
4106: fnd_message.set_name('CSI', 'CSI_RECORD_CHANGED');
4107: fnd_msg_pub.add;
4108: RAISE fnd_api.g_exc_error;
4109: END IF;

Line 4108: RAISE fnd_api.g_exc_error;

4104: IF ( (l_sys_csr.object_version_number<>p_system_rec.object_version_number)
4105: AND (p_system_rec.object_version_number <> fnd_api.g_miss_num) ) THEN
4106: fnd_message.set_name('CSI', 'CSI_RECORD_CHANGED');
4107: fnd_msg_pub.add;
4108: RAISE fnd_api.g_exc_error;
4109: END IF;
4110: CLOSE systems_csr;
4111:
4112: OPEN tl_csr (p_system_rec.system_id);

Line 4117: p_init_msg_list => fnd_api.g_false,

4113: FETCH tl_csr INTO l_tl_csr;
4114: CLOSE tl_csr;
4115:
4116: validate_system_id(
4117: p_init_msg_list => fnd_api.g_false,
4118: p_validation_mode => 'EXPIRE',
4119: p_system_id => p_system_rec.system_id,
4120: x_return_status => x_return_status,
4121: x_msg_count => x_msg_count,

Line 4125: p_init_msg_list => fnd_api.g_false,

4121: x_msg_count => x_msg_count,
4122: x_msg_data => x_msg_data);
4123:
4124: validate_object_version_num(
4125: p_init_msg_list => fnd_api.g_false,
4126: p_validation_mode => 'EXPIRE',
4127: p_object_version_number => p_system_rec.object_version_number,
4128: x_return_status => x_return_status,
4129: x_msg_count => x_msg_count,

Line 4133: IF x_return_status<>fnd_api.g_ret_sts_success THEN

4129: x_msg_count => x_msg_count,
4130: x_msg_data => x_msg_data);
4131:
4132: csi_gen_utility_pvt.put_line('Inside Expire System');
4133: IF x_return_status<>fnd_api.g_ret_sts_success THEN
4134: RAISE fnd_api.g_exc_error;
4135: END IF;
4136:
4137: IF p_system_rec.end_date_active IS NOT NULL

Line 4134: RAISE fnd_api.g_exc_error;

4130: x_msg_data => x_msg_data);
4131:
4132: csi_gen_utility_pvt.put_line('Inside Expire System');
4133: IF x_return_status<>fnd_api.g_ret_sts_success THEN
4134: RAISE fnd_api.g_exc_error;
4135: END IF;
4136:
4137: IF p_system_rec.end_date_active IS NOT NULL
4138: AND p_system_rec.end_date_active <> FND_API.G_MISS_DATE

Line 4138: AND p_system_rec.end_date_active <> FND_API.G_MISS_DATE

4134: RAISE fnd_api.g_exc_error;
4135: END IF;
4136:
4137: IF p_system_rec.end_date_active IS NOT NULL
4138: AND p_system_rec.end_date_active <> FND_API.G_MISS_DATE
4139: THEN
4140: l_sysdate := p_system_rec.end_date_active;
4141: END IF;
4142: -- srramakr Bug # 3031086. Moving the Update Table handler after cascading the changes to instances.

Line 4160: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN

4156: ,x_msg_count => x_msg_count
4157: ,x_msg_data => x_msg_data
4158: );
4159:
4160: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
4161: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_TXN');
4162: fnd_message.set_token('transaction_id',p_txn_rec.transaction_id );
4163: fnd_msg_pub.add;
4164:

Line 4165: RAISE fnd_api.g_exc_error;

4161: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_TXN');
4162: fnd_message.set_token('transaction_id',p_txn_rec.transaction_id );
4163: fnd_msg_pub.add;
4164:
4165: RAISE fnd_api.g_exc_error;
4166: RETURN;
4167: END IF;
4168: -- srramakr Bug # 2230262. Expire_Item_Instance was called for updating the Active_end_Date
4169: -- for the instances irrespective of whether the passed active_end_date is > sysdate or

Line 4214: ,p_commit => fnd_api.g_false

4210: csi_gen_utility_pvt.put_line('Calling Update for instance_id '||to_char(l_instance_rec.instance_id));
4211: csi_item_instance_pub.update_item_instance
4212: (
4213: p_api_version => p_api_version
4214: ,p_commit => fnd_api.g_false
4215: ,p_init_msg_list => p_init_msg_list
4216: ,p_validation_level => p_validation_level
4217: ,p_instance_rec => l_instance_rec
4218: ,p_ext_attrib_values_tbl => l_ext_attrib_values_tbl

Line 4230: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN

4226: ,x_return_status => x_return_status
4227: ,x_msg_count => x_msg_count
4228: ,x_msg_data => x_msg_data
4229: );
4230: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
4231: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_INS');
4232: fnd_message.set_token('instance_id',expire_csr.instance_id);
4233: fnd_msg_pub.add;
4234: RAISE fnd_api.g_exc_error;

Line 4234: RAISE fnd_api.g_exc_error;

4230: IF NOT(x_return_status = fnd_api.g_ret_sts_success) THEN
4231: fnd_message.set_name('CSI','CSI_FAILED_TO_VALIDATE_INS');
4232: fnd_message.set_token('instance_id',expire_csr.instance_id);
4233: fnd_msg_pub.add;
4234: RAISE fnd_api.g_exc_error;
4235: RETURN;
4236: END IF;
4237: Exception
4238: when Process_next then

Line 4278: p_created_by => fnd_api.g_miss_num,

4274: p_attribute12 => p_system_rec.attribute12,
4275: p_attribute13 => p_system_rec.attribute13,
4276: p_attribute14 => p_system_rec.attribute14,
4277: p_attribute15 => p_system_rec.attribute15,
4278: p_created_by => fnd_api.g_miss_num,
4279: p_creation_date => fnd_api.g_miss_date,
4280: p_last_updated_by => fnd_global.user_id,
4281: p_last_update_date => SYSDATE,
4282: p_last_update_login => fnd_global.conc_login_id,

Line 4279: p_creation_date => fnd_api.g_miss_date,

4275: p_attribute13 => p_system_rec.attribute13,
4276: p_attribute14 => p_system_rec.attribute14,
4277: p_attribute15 => p_system_rec.attribute15,
4278: p_created_by => fnd_api.g_miss_num,
4279: p_creation_date => fnd_api.g_miss_date,
4280: p_last_updated_by => fnd_global.user_id,
4281: p_last_update_date => SYSDATE,
4282: p_last_update_login => fnd_global.conc_login_id,
4283: p_object_version_number => fnd_api.g_miss_num,

Line 4283: p_object_version_number => fnd_api.g_miss_num,

4279: p_creation_date => fnd_api.g_miss_date,
4280: p_last_updated_by => fnd_global.user_id,
4281: p_last_update_date => SYSDATE,
4282: p_last_update_login => fnd_global.conc_login_id,
4283: p_object_version_number => fnd_api.g_miss_num,
4284: p_name => p_system_rec.name,
4285: p_description => p_system_rec.description,
4286: p_operating_unit_id => p_system_rec.operating_unit_id,
4287: p_request_id => p_system_rec.request_id,

Line 4340: IF x_return_status <> fnd_api.g_ret_sts_success THEN

4336: x_msg_count => x_msg_count,
4337: x_msg_data => x_msg_data
4338: );
4339:
4340: IF x_return_status <> fnd_api.g_ret_sts_success THEN
4341: RAISE fnd_api.g_exc_error;
4342: END IF;
4343: -- standard check for p_commit
4344: IF fnd_api.to_boolean( p_commit )

Line 4341: RAISE fnd_api.g_exc_error;

4337: x_msg_data => x_msg_data
4338: );
4339:
4340: IF x_return_status <> fnd_api.g_ret_sts_success THEN
4341: RAISE fnd_api.g_exc_error;
4342: END IF;
4343: -- standard check for p_commit
4344: IF fnd_api.to_boolean( p_commit )
4345: THEN

Line 4344: IF fnd_api.to_boolean( p_commit )

4340: IF x_return_status <> fnd_api.g_ret_sts_success THEN
4341: RAISE fnd_api.g_exc_error;
4342: END IF;
4343: -- standard check for p_commit
4344: IF fnd_api.to_boolean( p_commit )
4345: THEN
4346: COMMIT WORK;
4347: END IF;
4348:

Line 4356: WHEN fnd_api.g_exc_error THEN

4352: p_data => x_msg_data
4353: );
4354:
4355: EXCEPTION
4356: WHEN fnd_api.g_exc_error THEN
4357: ROLLBACK TO expire_system_pvt;
4358: x_return_status := fnd_api.g_ret_sts_error ;
4359: fnd_msg_pub.count_and_get
4360: (p_count => x_msg_count ,

Line 4358: x_return_status := fnd_api.g_ret_sts_error ;

4354:
4355: EXCEPTION
4356: WHEN fnd_api.g_exc_error THEN
4357: ROLLBACK TO expire_system_pvt;
4358: x_return_status := fnd_api.g_ret_sts_error ;
4359: fnd_msg_pub.count_and_get
4360: (p_count => x_msg_count ,
4361: p_data => x_msg_data
4362: );

Line 4364: WHEN fnd_api.g_exc_unexpected_error THEN

4360: (p_count => x_msg_count ,
4361: p_data => x_msg_data
4362: );
4363:
4364: WHEN fnd_api.g_exc_unexpected_error THEN
4365: ROLLBACK TO expire_system_pvt;
4366: x_return_status := fnd_api.g_ret_sts_unexp_error ;
4367: fnd_msg_pub.count_and_get
4368: (p_count => x_msg_count ,

Line 4366: x_return_status := fnd_api.g_ret_sts_unexp_error ;

4362: );
4363:
4364: WHEN fnd_api.g_exc_unexpected_error THEN
4365: ROLLBACK TO expire_system_pvt;
4366: x_return_status := fnd_api.g_ret_sts_unexp_error ;
4367: fnd_msg_pub.count_and_get
4368: (p_count => x_msg_count ,
4369: p_data => x_msg_data
4370: );

Line 4374: x_return_status := fnd_api.g_ret_sts_unexp_error ;

4370: );
4371:
4372: WHEN OTHERS THEN
4373: ROLLBACK TO expire_system_pvt;
4374: x_return_status := fnd_api.g_ret_sts_unexp_error ;
4375: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
4376: fnd_msg_pub.add_exc_msg(g_pkg_name ,l_api_name);
4377: END IF;
4378: fnd_msg_pub.count_and_get

Line 4401: IF fnd_api.to_boolean( p_init_msg_list )

4397: IS
4398: l_dummy VARCHAR2(1);
4399: BEGIN
4400: -- initialize message list if p_init_msg_list is set to true.
4401: IF fnd_api.to_boolean( p_init_msg_list )
4402: THEN
4403: fnd_msg_pub.initialize;
4404: END IF;
4405:

Line 4408: x_return_status := fnd_api.g_ret_sts_success;

4404: END IF;
4405:
4406:
4407: -- initialize api return status to success
4408: x_return_status := fnd_api.g_ret_sts_success;
4409:
4410: -- validate not null column
4411: IF p_validation_mode='CREATE' THEN
4412: IF ( (p_system_id IS NOT NULL) AND (p_system_id<>fnd_api.g_miss_num) )

Line 4412: IF ( (p_system_id IS NOT NULL) AND (p_system_id<>fnd_api.g_miss_num) )

4408: x_return_status := fnd_api.g_ret_sts_success;
4409:
4410: -- validate not null column
4411: IF p_validation_mode='CREATE' THEN
4412: IF ( (p_system_id IS NOT NULL) AND (p_system_id<>fnd_api.g_miss_num) )
4413: THEN
4414: BEGIN
4415: SELECT 'x'
4416: INTO l_dummy

Line 4422: x_return_status := fnd_api.g_ret_sts_error;

4418: WHERE system_id=p_system_id;
4419: fnd_message.set_name('CSI', 'CSI_INVALID_SYSTEM_ID');
4420: fnd_message.set_token('system_id',p_system_id);
4421: fnd_msg_pub.add;
4422: x_return_status := fnd_api.g_ret_sts_error;
4423: EXCEPTION
4424: WHEN no_data_found THEN
4425: x_return_status := fnd_api.g_ret_sts_success;
4426: END;

Line 4425: x_return_status := fnd_api.g_ret_sts_success;

4421: fnd_msg_pub.add;
4422: x_return_status := fnd_api.g_ret_sts_error;
4423: EXCEPTION
4424: WHEN no_data_found THEN
4425: x_return_status := fnd_api.g_ret_sts_success;
4426: END;
4427: END IF;
4428:
4429: ELSIF p_validation_mode='UPDATE' OR p_validation_mode='EXPIRE' THEN

Line 4430: IF ( (p_system_id IS NOT NULL) AND (p_system_id<>fnd_api.g_miss_num) )

4426: END;
4427: END IF;
4428:
4429: ELSIF p_validation_mode='UPDATE' OR p_validation_mode='EXPIRE' THEN
4430: IF ( (p_system_id IS NOT NULL) AND (p_system_id<>fnd_api.g_miss_num) )
4431: THEN
4432: BEGIN
4433: SELECT 'x'
4434: INTO l_dummy

Line 4442: x_return_status := fnd_api.g_ret_sts_error;

4438: WHEN no_data_found THEN
4439: fnd_message.set_name('CSI', 'CSI_INVALID_SYSTEM_ID');
4440: fnd_message.set_token('system_id',p_system_id);
4441: fnd_msg_pub.add;
4442: x_return_status := fnd_api.g_ret_sts_error;
4443: END;
4444: ELSE
4445: fnd_message.set_name('CSI', 'CSI_NO_SYSTEM_ID');
4446: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_ID');

Line 4448: x_return_status := fnd_api.g_ret_sts_error;

4444: ELSE
4445: fnd_message.set_name('CSI', 'CSI_NO_SYSTEM_ID');
4446: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_ID');
4447: fnd_msg_pub.add;
4448: x_return_status := fnd_api.g_ret_sts_error;
4449: END IF;
4450:
4451: END IF;
4452:

Line 4476: IF fnd_api.to_boolean( p_init_msg_list )

4472: IS
4473: l_dummy VARCHAR2(1);
4474: BEGIN
4475: -- initialize message list if p_init_msg_list is set to true.
4476: IF fnd_api.to_boolean( p_init_msg_list )
4477: THEN
4478: fnd_msg_pub.initialize;
4479: END IF;
4480:

Line 4483: x_return_status := fnd_api.g_ret_sts_success;

4479: END IF;
4480:
4481:
4482: -- initialize api return status to success
4483: x_return_status := fnd_api.g_ret_sts_success;
4484:
4485: -- validate not null column
4486: IF p_validation_mode='CREATE' THEN
4487: IF ( (p_customer_id IS NOT NULL) AND (p_customer_id<>fnd_api.g_miss_num) )

Line 4487: IF ( (p_customer_id IS NOT NULL) AND (p_customer_id<>fnd_api.g_miss_num) )

4483: x_return_status := fnd_api.g_ret_sts_success;
4484:
4485: -- validate not null column
4486: IF p_validation_mode='CREATE' THEN
4487: IF ( (p_customer_id IS NOT NULL) AND (p_customer_id<>fnd_api.g_miss_num) )
4488: THEN
4489: BEGIN
4490: SELECT 'x'
4491: INTO l_dummy

Line 4507: x_return_status := fnd_api.g_ret_sts_error;

4503: WHEN no_data_found THEN
4504: fnd_message.set_name('CSI', 'CSI_INVALID_CUSTOMER_ID');
4505: fnd_message.set_token('customer_id',p_customer_id);
4506: fnd_msg_pub.add;
4507: x_return_status := fnd_api.g_ret_sts_error;
4508: END;
4509: ELSE
4510: fnd_message.set_name('CSI', 'CSI_CUST_ID_NOT_PASSED');
4511: fnd_message.set_token('REQUIRED_PARAM','CUSTOMER_ID');

Line 4513: x_return_status := fnd_api.g_ret_sts_error;

4509: ELSE
4510: fnd_message.set_name('CSI', 'CSI_CUST_ID_NOT_PASSED');
4511: fnd_message.set_token('REQUIRED_PARAM','CUSTOMER_ID');
4512: fnd_msg_pub.add;
4513: x_return_status := fnd_api.g_ret_sts_error;
4514:
4515: END IF;
4516: ELSIF p_validation_mode='UPDATE' THEN
4517: IF ( (p_customer_id IS NOT NULL) AND (p_customer_id<>fnd_api.g_miss_num) )

Line 4517: IF ( (p_customer_id IS NOT NULL) AND (p_customer_id<>fnd_api.g_miss_num) )

4513: x_return_status := fnd_api.g_ret_sts_error;
4514:
4515: END IF;
4516: ELSIF p_validation_mode='UPDATE' THEN
4517: IF ( (p_customer_id IS NOT NULL) AND (p_customer_id<>fnd_api.g_miss_num) )
4518: THEN
4519: BEGIN
4520: SELECT 'x'
4521: INTO l_dummy

Line 4536: x_return_status := fnd_api.g_ret_sts_error;

4532: WHEN no_data_found THEN
4533: fnd_message.set_name('CSI', 'CSI_INVALID_CUSTOMER_ID');
4534: fnd_message.set_token('customer_id',p_customer_id);
4535: fnd_msg_pub.add;
4536: x_return_status := fnd_api.g_ret_sts_error;
4537: END;
4538: END IF;
4539: END IF;
4540: -- standard call to get message count and if count is 1, get message info.

Line 4562: IF fnd_api.to_boolean( p_init_msg_list )

4558: l_dummy VARCHAR2(1);
4559: l_sys_lookup_type VARCHAR2(30) := 'CSI_SYSTEM_TYPE';
4560: BEGIN
4561: -- initialize message list if p_init_msg_list is set to true.
4562: IF fnd_api.to_boolean( p_init_msg_list )
4563: THEN
4564: fnd_msg_pub.initialize;
4565: END IF;
4566:

Line 4569: x_return_status := fnd_api.g_ret_sts_success;

4565: END IF;
4566:
4567:
4568: -- initialize api return status to success
4569: x_return_status := fnd_api.g_ret_sts_success;
4570:
4571: -- validate not null column
4572: IF p_validation_mode='CREATE' THEN
4573:

Line 4574: IF ( (p_system_type_code IS NOT NULL) AND (p_system_type_code<>fnd_api.g_miss_char) )

4570:
4571: -- validate not null column
4572: IF p_validation_mode='CREATE' THEN
4573:
4574: IF ( (p_system_type_code IS NOT NULL) AND (p_system_type_code<>fnd_api.g_miss_char) )
4575: THEN
4576: BEGIN
4577: SELECT 'x'
4578: INTO l_dummy

Line 4587: x_return_status := fnd_api.g_ret_sts_error;

4583: WHEN no_data_found THEN
4584: fnd_message.set_name('CSI', 'CSI_INVALID_SYS_TYPE_CODE');
4585: fnd_message.set_token('system_type_code',p_system_type_code);
4586: fnd_msg_pub.add;
4587: x_return_status := fnd_api.g_ret_sts_error;
4588: END;
4589: ELSE
4590: fnd_message.set_name('CSI', 'CSI_NO_SYS_TYPE_CODE');
4591: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_TYPE_CODE');

Line 4594: x_return_status := fnd_api.g_ret_sts_error;

4590: fnd_message.set_name('CSI', 'CSI_NO_SYS_TYPE_CODE');
4591: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_TYPE_CODE');
4592:
4593: fnd_msg_pub.add;
4594: x_return_status := fnd_api.g_ret_sts_error;
4595:
4596: END IF;
4597: ELSIF p_validation_mode='UPDATE' THEN
4598: IF ( (p_system_type_code IS NOT NULL) AND (p_system_type_code<>fnd_api.g_miss_char) )

Line 4598: IF ( (p_system_type_code IS NOT NULL) AND (p_system_type_code<>fnd_api.g_miss_char) )

4594: x_return_status := fnd_api.g_ret_sts_error;
4595:
4596: END IF;
4597: ELSIF p_validation_mode='UPDATE' THEN
4598: IF ( (p_system_type_code IS NOT NULL) AND (p_system_type_code<>fnd_api.g_miss_char) )
4599: THEN
4600: BEGIN
4601: SELECT 'x'
4602: INTO l_dummy

Line 4611: x_return_status := fnd_api.g_ret_sts_error;

4607: WHEN no_data_found THEN
4608: fnd_message.set_name('CSI', 'CSI_INVALID_SYS_TYPE_CODE');
4609: fnd_message.set_token('system_type_code',p_system_type_code);
4610: fnd_msg_pub.add;
4611: x_return_status := fnd_api.g_ret_sts_error;
4612: END;
4613: END IF;
4614: END IF;
4615:

Line 4640: IF fnd_api.to_boolean( p_init_msg_list )

4636: IS
4637: l_dummy VARCHAR2(1);
4638: BEGIN
4639: -- initialize message list IF p_init_msg_list IS set to true.
4640: IF fnd_api.to_boolean( p_init_msg_list )
4641: THEN
4642: fnd_msg_pub.initialize;
4643: END IF;
4644:

Line 4647: x_return_status := fnd_api.g_ret_sts_success;

4643: END IF;
4644:
4645:
4646: -- initialize api return status to success
4647: x_return_status := fnd_api.g_ret_sts_success;
4648:
4649: -- validate not null column
4650: IF p_validation_mode='CREATE' THEN
4651: IF ( (p_parent_system_id IS NOT NULL) AND (p_parent_system_id<>fnd_api.g_miss_num) )

Line 4651: IF ( (p_parent_system_id IS NOT NULL) AND (p_parent_system_id<>fnd_api.g_miss_num) )

4647: x_return_status := fnd_api.g_ret_sts_success;
4648:
4649: -- validate not null column
4650: IF p_validation_mode='CREATE' THEN
4651: IF ( (p_parent_system_id IS NOT NULL) AND (p_parent_system_id<>fnd_api.g_miss_num) )
4652: THEN
4653: BEGIN
4654: SELECT 'x'
4655: INTO l_dummy

Line 4663: x_return_status := fnd_api.g_ret_sts_error;

4659: WHEN no_data_found THEN
4660: fnd_message.set_name('CSI', 'CSI_INVALID_PARENT_SYS_ID');
4661: fnd_message.set_token('parent_system_id',p_parent_system_id);
4662: fnd_msg_pub.add;
4663: x_return_status := fnd_api.g_ret_sts_error;
4664: END;
4665: END IF;
4666:
4667:

Line 4669: IF ( (p_parent_system_id IS NOT NULL) AND (p_parent_system_id<>fnd_api.g_miss_num) )

4665: END IF;
4666:
4667:
4668: ELSIF p_validation_mode='UPDATE' THEN
4669: IF ( (p_parent_system_id IS NOT NULL) AND (p_parent_system_id<>fnd_api.g_miss_num) )
4670: THEN
4671: BEGIN
4672: SELECT 'x'
4673: INTO l_dummy

Line 4681: x_return_status := fnd_api.g_ret_sts_error;

4677: WHEN no_data_found THEN
4678: fnd_message.set_name('CSI', 'CSI_INVALID_PARENT_SYS_ID');
4679: fnd_message.set_token('parent_system_id',p_parent_system_id);
4680: fnd_msg_pub.add;
4681: x_return_status := fnd_api.g_ret_sts_error;
4682: END;
4683: END IF;
4684: END IF;
4685:

Line 4707: IF fnd_api.to_boolean( p_init_msg_list )

4703: IS
4704: l_dummy VARCHAR2(1);
4705: BEGIN
4706: -- initialize message list if p_init_msg_list is set to true.
4707: IF fnd_api.to_boolean( p_init_msg_list )
4708: THEN
4709: fnd_msg_pub.initialize;
4710: END IF;
4711:

Line 4714: x_return_status := fnd_api.g_ret_sts_success;

4710: END IF;
4711:
4712:
4713: -- initialize api return status to success
4714: x_return_status := fnd_api.g_ret_sts_success;
4715:
4716: -- validate not null column
4717: IF p_validation_mode='CREATE' THEN
4718: IF ( (p_ship_to_contact_id IS NOT NULL) AND (p_ship_to_contact_id<>fnd_api.g_miss_num) )

Line 4718: IF ( (p_ship_to_contact_id IS NOT NULL) AND (p_ship_to_contact_id<>fnd_api.g_miss_num) )

4714: x_return_status := fnd_api.g_ret_sts_success;
4715:
4716: -- validate not null column
4717: IF p_validation_mode='CREATE' THEN
4718: IF ( (p_ship_to_contact_id IS NOT NULL) AND (p_ship_to_contact_id<>fnd_api.g_miss_num) )
4719: THEN
4720: BEGIN
4721: SELECT 'x'
4722: INTO l_dummy

Line 4730: x_return_status := fnd_api.g_ret_sts_error;

4726: WHEN no_data_found THEN
4727: fnd_message.set_name('CSI', 'CSI_INVALID_SHIPTO_CT_ID');
4728: fnd_message.set_token('ship_to_contact_id',p_ship_to_contact_id);
4729: fnd_msg_pub.add;
4730: x_return_status := fnd_api.g_ret_sts_error;
4731: END;
4732:
4733: END IF;
4734: ELSIF p_validation_mode='UPDATE' THEN

Line 4735: IF ( (p_ship_to_contact_id IS NOT NULL) AND (p_ship_to_contact_id<>fnd_api.g_miss_num) )

4731: END;
4732:
4733: END IF;
4734: ELSIF p_validation_mode='UPDATE' THEN
4735: IF ( (p_ship_to_contact_id IS NOT NULL) AND (p_ship_to_contact_id<>fnd_api.g_miss_num) )
4736: THEN
4737: BEGIN
4738: SELECT 'x'
4739: INTO l_dummy

Line 4747: x_return_status := fnd_api.g_ret_sts_error;

4743: WHEN no_data_found THEN
4744: fnd_message.set_name('CSI', 'CSI_INVALID_SHIPTO_CT_ID');
4745: fnd_message.set_token('ship_to_contact_id',p_ship_to_contact_id);
4746: fnd_msg_pub.add;
4747: x_return_status := fnd_api.g_ret_sts_error;
4748: END;
4749: END IF;
4750: END IF;
4751:

Line 4773: IF fnd_api.to_boolean( p_init_msg_list )

4769: IS
4770: l_dummy VARCHAR2(1);
4771: BEGIN
4772: -- initialize message list if p_init_msg_list is set to true.
4773: IF fnd_api.to_boolean( p_init_msg_list )
4774: THEN
4775: fnd_msg_pub.initialize;
4776: END IF;
4777:

Line 4780: x_return_status := fnd_api.g_ret_sts_success;

4776: END IF;
4777:
4778:
4779: -- initialize api return status to success
4780: x_return_status := fnd_api.g_ret_sts_success;
4781:
4782: -- validate not null column
4783: IF p_validation_mode='CREATE' THEN
4784: IF ( (p_bill_to_contact_id IS NOT NULL) AND (p_bill_to_contact_id<>fnd_api.g_miss_num) )

Line 4784: IF ( (p_bill_to_contact_id IS NOT NULL) AND (p_bill_to_contact_id<>fnd_api.g_miss_num) )

4780: x_return_status := fnd_api.g_ret_sts_success;
4781:
4782: -- validate not null column
4783: IF p_validation_mode='CREATE' THEN
4784: IF ( (p_bill_to_contact_id IS NOT NULL) AND (p_bill_to_contact_id<>fnd_api.g_miss_num) )
4785: THEN
4786: BEGIN
4787: SELECT 'x'
4788: INTO l_dummy

Line 4796: x_return_status := fnd_api.g_ret_sts_error;

4792: WHEN no_data_found THEN
4793: fnd_message.set_name('CSI', 'CSI_INVALID_BILLTO_CT_ID');
4794: fnd_message.set_token('bill_to_contact_id',p_bill_to_contact_id);
4795: fnd_msg_pub.add;
4796: x_return_status := fnd_api.g_ret_sts_error;
4797: END;
4798: END IF;
4799: ELSIF p_validation_mode='UPDATE' THEN
4800: IF ( (p_bill_to_contact_id IS NOT NULL) AND (p_bill_to_contact_id<>fnd_api.g_miss_num) )

Line 4800: IF ( (p_bill_to_contact_id IS NOT NULL) AND (p_bill_to_contact_id<>fnd_api.g_miss_num) )

4796: x_return_status := fnd_api.g_ret_sts_error;
4797: END;
4798: END IF;
4799: ELSIF p_validation_mode='UPDATE' THEN
4800: IF ( (p_bill_to_contact_id IS NOT NULL) AND (p_bill_to_contact_id<>fnd_api.g_miss_num) )
4801: THEN
4802: BEGIN
4803: SELECT 'x'
4804: INTO l_dummy

Line 4812: x_return_status := fnd_api.g_ret_sts_error;

4808: WHEN no_data_found THEN
4809: fnd_message.set_name('CSI', 'CSI_INVALID_BILLTO_CT_ID');
4810: fnd_message.set_token('bill_to_contact_id',p_bill_to_contact_id);
4811: fnd_msg_pub.add;
4812: x_return_status := fnd_api.g_ret_sts_error;
4813: END;
4814: END IF;
4815: END IF;
4816:

Line 4838: IF fnd_api.to_boolean( p_init_msg_list )

4834: IS
4835: l_dummy VARCHAR2(1);
4836: BEGIN
4837: -- initialize message list if p_init_msg_list is set to true.
4838: IF fnd_api.to_boolean( p_init_msg_list )
4839: THEN
4840: fnd_msg_pub.initialize;
4841: END IF;
4842:

Line 4845: x_return_status := fnd_api.g_ret_sts_success;

4841: END IF;
4842:
4843:
4844: -- initialize api return status to success
4845: x_return_status := fnd_api.g_ret_sts_success;
4846:
4847: -- validate not null column
4848: IF p_validation_mode='CREATE' THEN
4849: IF ( (p_technical_contact_id IS NOT NULL) AND (p_technical_contact_id<>fnd_api.g_miss_num) )

Line 4849: IF ( (p_technical_contact_id IS NOT NULL) AND (p_technical_contact_id<>fnd_api.g_miss_num) )

4845: x_return_status := fnd_api.g_ret_sts_success;
4846:
4847: -- validate not null column
4848: IF p_validation_mode='CREATE' THEN
4849: IF ( (p_technical_contact_id IS NOT NULL) AND (p_technical_contact_id<>fnd_api.g_miss_num) )
4850: THEN
4851: BEGIN
4852: SELECT 'x'
4853: INTO l_dummy

Line 4861: x_return_status := fnd_api.g_ret_sts_error;

4857: WHEN no_data_found THEN
4858: fnd_message.set_name('CSI', 'CSI_INVALID_TECH_CT_ID');
4859: fnd_message.set_token('technical_contact_id',p_technical_contact_id);
4860: fnd_msg_pub.add;
4861: x_return_status := fnd_api.g_ret_sts_error;
4862: END;
4863: END IF;
4864: ELSIF p_validation_mode='UPDATE' THEN
4865: IF ( (p_technical_contact_id IS NOT NULL) AND (p_technical_contact_id<>fnd_api.g_miss_num) )

Line 4865: IF ( (p_technical_contact_id IS NOT NULL) AND (p_technical_contact_id<>fnd_api.g_miss_num) )

4861: x_return_status := fnd_api.g_ret_sts_error;
4862: END;
4863: END IF;
4864: ELSIF p_validation_mode='UPDATE' THEN
4865: IF ( (p_technical_contact_id IS NOT NULL) AND (p_technical_contact_id<>fnd_api.g_miss_num) )
4866: THEN
4867: BEGIN
4868: SELECT 'x'
4869: INTO l_dummy

Line 4877: x_return_status := fnd_api.g_ret_sts_error;

4873: WHEN no_data_found THEN
4874: fnd_message.set_name('CSI', 'CSI_INVALID_TECH_CT_ID');
4875: fnd_message.set_token('technical_contact_id',p_technical_contact_id);
4876: fnd_msg_pub.add;
4877: x_return_status := fnd_api.g_ret_sts_error;
4878: END;
4879: END IF;
4880: END IF;
4881: -- standard call to get message count and if count is 1, get message info.

Line 4902: IF fnd_api.to_boolean( p_init_msg_list )

4898: IS
4899: l_dummy VARCHAR2(1);
4900: BEGIN
4901: -- initialize message list if p_init_msg_list is set to true.
4902: IF fnd_api.to_boolean( p_init_msg_list )
4903: THEN
4904: fnd_msg_pub.initialize;
4905: END IF;
4906:

Line 4909: x_return_status := fnd_api.g_ret_sts_success;

4905: END IF;
4906:
4907:
4908: -- initialize api return status to success
4909: x_return_status := fnd_api.g_ret_sts_success;
4910:
4911: -- validate not null column
4912: IF p_validation_mode='CREATE' THEN
4913: IF ( (p_service_admin_contact_id IS NOT NULL) AND (p_service_admin_contact_id<>fnd_api.g_miss_num) )

Line 4913: IF ( (p_service_admin_contact_id IS NOT NULL) AND (p_service_admin_contact_id<>fnd_api.g_miss_num) )

4909: x_return_status := fnd_api.g_ret_sts_success;
4910:
4911: -- validate not null column
4912: IF p_validation_mode='CREATE' THEN
4913: IF ( (p_service_admin_contact_id IS NOT NULL) AND (p_service_admin_contact_id<>fnd_api.g_miss_num) )
4914: THEN
4915: BEGIN
4916: SELECT 'x'
4917: INTO l_dummy

Line 4925: x_return_status := fnd_api.g_ret_sts_error;

4921: WHEN no_data_found THEN
4922: fnd_message.set_name('CSI', 'CSI_INVALID_SRVADMIN_CT_ID');
4923: fnd_message.set_token('service_admin_contact_id',p_service_admin_contact_id);
4924: fnd_msg_pub.add;
4925: x_return_status := fnd_api.g_ret_sts_error;
4926: END;
4927: END IF;
4928: ELSIF p_validation_mode='UPDATE' THEN
4929: IF ( (p_service_admin_contact_id IS NOT NULL) AND (p_service_admin_contact_id<>fnd_api.g_miss_num) )

Line 4929: IF ( (p_service_admin_contact_id IS NOT NULL) AND (p_service_admin_contact_id<>fnd_api.g_miss_num) )

4925: x_return_status := fnd_api.g_ret_sts_error;
4926: END;
4927: END IF;
4928: ELSIF p_validation_mode='UPDATE' THEN
4929: IF ( (p_service_admin_contact_id IS NOT NULL) AND (p_service_admin_contact_id<>fnd_api.g_miss_num) )
4930: THEN
4931: BEGIN
4932: SELECT 'x'
4933: INTO l_dummy

Line 4941: x_return_status := fnd_api.g_ret_sts_error;

4937: WHEN no_data_found THEN
4938: fnd_message.set_name('CSI', 'CSI_INVALID_SRVADMIN_CT_ID');
4939: fnd_message.set_token('service_admin_contact_id',p_service_admin_contact_id);
4940: fnd_msg_pub.add;
4941: x_return_status := fnd_api.g_ret_sts_error;
4942: END;
4943: END IF;
4944: END IF;
4945: -- standard call to get message count and if count is 1, get message info.

Line 4966: IF fnd_api.to_boolean( p_init_msg_list )

4962: IS
4963: l_dummy VARCHAR2(1);
4964: BEGIN
4965: -- initialize message list if p_init_msg_list is set to true.
4966: IF fnd_api.to_boolean( p_init_msg_list )
4967: THEN
4968: fnd_msg_pub.initialize;
4969: END IF;
4970:

Line 4973: x_return_status := fnd_api.g_ret_sts_success;

4969: END IF;
4970:
4971:
4972: -- initialize api return status to success
4973: x_return_status := fnd_api.g_ret_sts_success;
4974:
4975: -- validate not null column
4976: IF p_validation_mode='CREATE' THEN
4977: IF ( (p_ship_to_site_use_id IS NOT NULL) AND (p_ship_to_site_use_id<>fnd_api.g_miss_num) )

Line 4977: IF ( (p_ship_to_site_use_id IS NOT NULL) AND (p_ship_to_site_use_id<>fnd_api.g_miss_num) )

4973: x_return_status := fnd_api.g_ret_sts_success;
4974:
4975: -- validate not null column
4976: IF p_validation_mode='CREATE' THEN
4977: IF ( (p_ship_to_site_use_id IS NOT NULL) AND (p_ship_to_site_use_id<>fnd_api.g_miss_num) )
4978: THEN
4979: BEGIN
4980: SELECT 'x'
4981: INTO l_dummy

Line 4990: x_return_status := fnd_api.g_ret_sts_error;

4986: WHEN no_data_found THEN
4987: fnd_message.set_name('CSI', 'CSI_INVALID_SHIP_TO_ID');
4988: fnd_message.set_token('ship_to_site_use_id',p_ship_to_site_use_id);
4989: fnd_msg_pub.add;
4990: x_return_status := fnd_api.g_ret_sts_error;
4991: END;
4992: END IF;
4993: ELSIF p_validation_mode='UPDATE' THEN
4994: IF ( (p_ship_to_site_use_id IS NOT NULL) AND (p_ship_to_site_use_id<>fnd_api.g_miss_num) )

Line 4994: IF ( (p_ship_to_site_use_id IS NOT NULL) AND (p_ship_to_site_use_id<>fnd_api.g_miss_num) )

4990: x_return_status := fnd_api.g_ret_sts_error;
4991: END;
4992: END IF;
4993: ELSIF p_validation_mode='UPDATE' THEN
4994: IF ( (p_ship_to_site_use_id IS NOT NULL) AND (p_ship_to_site_use_id<>fnd_api.g_miss_num) )
4995: THEN
4996: BEGIN
4997: SELECT 'x'
4998: INTO l_dummy

Line 5007: x_return_status := fnd_api.g_ret_sts_error;

5003: WHEN no_data_found THEN
5004: fnd_message.set_name('CSI', 'CSI_INVALID_SHIP_TO_ID');
5005: fnd_message.set_token('ship_to_site_use_id',p_ship_to_site_use_id);
5006: fnd_msg_pub.add;
5007: x_return_status := fnd_api.g_ret_sts_error;
5008: END;
5009: END IF;
5010: END IF;
5011:

Line 5033: IF fnd_api.to_boolean( p_init_msg_list )

5029: IS
5030: l_dummy VARCHAR2(1);
5031: BEGIN
5032: -- initialize message list if p_init_msg_list is set to true.
5033: IF fnd_api.to_boolean( p_init_msg_list )
5034: THEN
5035: fnd_msg_pub.initialize;
5036: END IF;
5037:

Line 5040: x_return_status := fnd_api.g_ret_sts_success;

5036: END IF;
5037:
5038:
5039: -- initialize api return status to success
5040: x_return_status := fnd_api.g_ret_sts_success;
5041:
5042: -- validate not null column
5043: IF p_validation_mode='CREATE' THEN
5044: IF ( (p_bill_to_site_use_id IS NOT NULL) AND (p_bill_to_site_use_id<>fnd_api.g_miss_num) )

Line 5044: IF ( (p_bill_to_site_use_id IS NOT NULL) AND (p_bill_to_site_use_id<>fnd_api.g_miss_num) )

5040: x_return_status := fnd_api.g_ret_sts_success;
5041:
5042: -- validate not null column
5043: IF p_validation_mode='CREATE' THEN
5044: IF ( (p_bill_to_site_use_id IS NOT NULL) AND (p_bill_to_site_use_id<>fnd_api.g_miss_num) )
5045: THEN
5046: BEGIN
5047: SELECT 'x'
5048: INTO l_dummy

Line 5057: x_return_status := fnd_api.g_ret_sts_error;

5053: WHEN no_data_found THEN
5054: fnd_message.set_name('CSI', 'CSI_INVALID_BILL_TO_ID');
5055: fnd_message.set_token('bill_to_site_use_id',p_bill_to_site_use_id);
5056: fnd_msg_pub.add;
5057: x_return_status := fnd_api.g_ret_sts_error;
5058: END;
5059: END IF;
5060: ELSIF p_validation_mode='UPDATE' THEN
5061: IF ( (p_bill_to_site_use_id IS NOT NULL) AND (p_bill_to_site_use_id<>fnd_api.g_miss_num) )

Line 5061: IF ( (p_bill_to_site_use_id IS NOT NULL) AND (p_bill_to_site_use_id<>fnd_api.g_miss_num) )

5057: x_return_status := fnd_api.g_ret_sts_error;
5058: END;
5059: END IF;
5060: ELSIF p_validation_mode='UPDATE' THEN
5061: IF ( (p_bill_to_site_use_id IS NOT NULL) AND (p_bill_to_site_use_id<>fnd_api.g_miss_num) )
5062: THEN
5063: BEGIN
5064: SELECT 'x'
5065: INTO l_dummy

Line 5074: x_return_status := fnd_api.g_ret_sts_error;

5070: WHEN no_data_found THEN
5071: fnd_message.set_name('CSI', 'CSI_INVALID_BILL_TO_ID');
5072: fnd_message.set_token('bill_to_site_use_id',p_bill_to_site_use_id);
5073: fnd_msg_pub.add;
5074: x_return_status := fnd_api.g_ret_sts_error;
5075: END;
5076: END IF;
5077:
5078: END IF;

Line 5101: IF fnd_api.to_boolean( p_init_msg_list )

5097: l_dummy VARCHAR2(1);
5098: BEGIN
5099:
5100: -- initialize message list if p_init_msg_list is set to true.
5101: IF fnd_api.to_boolean( p_init_msg_list )
5102: THEN
5103: fnd_msg_pub.initialize;
5104: END IF;
5105:

Line 5108: x_return_status := fnd_api.g_ret_sts_success;

5104: END IF;
5105:
5106:
5107: -- initialize api return status to success
5108: x_return_status := fnd_api.g_ret_sts_success;
5109:
5110: -- validate not null column
5111: IF p_validation_mode='CREATE' THEN
5112: IF ( (p_install_site_use_id IS NOT NULL) AND (p_install_site_use_id<>fnd_api.g_miss_num) )

Line 5112: IF ( (p_install_site_use_id IS NOT NULL) AND (p_install_site_use_id<>fnd_api.g_miss_num) )

5108: x_return_status := fnd_api.g_ret_sts_success;
5109:
5110: -- validate not null column
5111: IF p_validation_mode='CREATE' THEN
5112: IF ( (p_install_site_use_id IS NOT NULL) AND (p_install_site_use_id<>fnd_api.g_miss_num) )
5113: THEN
5114: BEGIN
5115: SELECT 'x'
5116: INTO l_dummy

Line 5124: x_return_status := fnd_api.g_ret_sts_error;

5120: WHEN no_data_found THEN
5121: fnd_message.set_name('CSI', 'CSI_INVALID_INSTALL_ID');
5122: fnd_message.set_token('install_site_use_id',p_install_site_use_id);
5123: fnd_msg_pub.add;
5124: x_return_status := fnd_api.g_ret_sts_error;
5125: END;
5126: END IF;
5127: ELSIF p_validation_mode='UPDATE' THEN
5128: IF ( (p_install_site_use_id IS NOT NULL) AND (p_install_site_use_id<>fnd_api.g_miss_num) )

Line 5128: IF ( (p_install_site_use_id IS NOT NULL) AND (p_install_site_use_id<>fnd_api.g_miss_num) )

5124: x_return_status := fnd_api.g_ret_sts_error;
5125: END;
5126: END IF;
5127: ELSIF p_validation_mode='UPDATE' THEN
5128: IF ( (p_install_site_use_id IS NOT NULL) AND (p_install_site_use_id<>fnd_api.g_miss_num) )
5129: THEN
5130: BEGIN
5131: SELECT 'x'
5132: INTO l_dummy

Line 5140: x_return_status := fnd_api.g_ret_sts_error;

5136: WHEN no_data_found THEN
5137: fnd_message.set_name('CSI', 'CSI_INVALID_INSTALL_ID');
5138: fnd_message.set_token('install_site_use_id',p_install_site_use_id);
5139: fnd_msg_pub.add;
5140: x_return_status := fnd_api.g_ret_sts_error;
5141: END;
5142: END IF;
5143: END IF;
5144:

Line 5165: IF fnd_api.to_boolean( p_init_msg_list )

5161: IS
5162: l_dummy VARCHAR2(1);
5163: BEGIN
5164:
5165: IF fnd_api.to_boolean( p_init_msg_list )
5166: THEN
5167: fnd_msg_pub.initialize;
5168: END IF;
5169:

Line 5171: x_return_status := fnd_api.g_ret_sts_success;

5167: fnd_msg_pub.initialize;
5168: END IF;
5169:
5170:
5171: x_return_status := fnd_api.g_ret_sts_success;
5172:
5173: IF p_validation_mode='CREATE' THEN
5174: IF ( (p_auto_sys_id IS NOT NULL) AND (p_auto_sys_id<>fnd_api.g_miss_num) )
5175: THEN

Line 5174: IF ( (p_auto_sys_id IS NOT NULL) AND (p_auto_sys_id<>fnd_api.g_miss_num) )

5170:
5171: x_return_status := fnd_api.g_ret_sts_success;
5172:
5173: IF p_validation_mode='CREATE' THEN
5174: IF ( (p_auto_sys_id IS NOT NULL) AND (p_auto_sys_id<>fnd_api.g_miss_num) )
5175: THEN
5176: BEGIN
5177: SELECT 'x'
5178: INTO l_dummy

Line 5186: x_return_status := fnd_api.g_ret_sts_error;

5182: WHEN no_data_found THEN
5183: fnd_message.set_name('CSI', 'CSI_INVALID_AUTOSYS_ID');
5184: fnd_message.set_token('autocreated_from_system_id',p_auto_sys_id);
5185: fnd_msg_pub.add;
5186: x_return_status := fnd_api.g_ret_sts_error;
5187: END;
5188: END IF;
5189: END IF;
5190:

Line 5213: IF fnd_api.to_boolean( p_init_msg_list )

5209: IS
5210: l_start_date_active DATE;
5211: BEGIN
5212:
5213: IF fnd_api.to_boolean( p_init_msg_list )
5214: THEN
5215: fnd_msg_pub.initialize;
5216: END IF;
5217:

Line 5219: x_return_status := fnd_api.g_ret_sts_success;

5215: fnd_msg_pub.initialize;
5216: END IF;
5217:
5218:
5219: x_return_status := fnd_api.g_ret_sts_success;
5220:
5221: IF p_validation_mode='CREATE' THEN
5222: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )
5223: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )

Line 5222: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )

5218:
5219: x_return_status := fnd_api.g_ret_sts_success;
5220:
5221: IF p_validation_mode='CREATE' THEN
5222: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )
5223: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5224: THEN
5225: IF (p_start_date > p_end_date)
5226: THEN

Line 5223: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )

5219: x_return_status := fnd_api.g_ret_sts_success;
5220:
5221: IF p_validation_mode='CREATE' THEN
5222: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )
5223: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5224: THEN
5225: IF (p_start_date > p_end_date)
5226: THEN
5227: fnd_message.set_name('CSI', 'CSI_INVALID_START_DATE');

Line 5230: x_return_status := fnd_api.g_ret_sts_error;

5226: THEN
5227: fnd_message.set_name('CSI', 'CSI_INVALID_START_DATE');
5228: fnd_message.set_token('START_DATE_ACTIVE',p_start_date);
5229: fnd_msg_pub.add;
5230: x_return_status := fnd_api.g_ret_sts_error;
5231: END IF;
5232: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )
5233: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5234: THEN

Line 5232: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )

5228: fnd_message.set_token('START_DATE_ACTIVE',p_start_date);
5229: fnd_msg_pub.add;
5230: x_return_status := fnd_api.g_ret_sts_error;
5231: END IF;
5232: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )
5233: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5234: THEN
5235: fnd_message.set_name('CSI', 'CSI_INVALID_END_DATE');
5236: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);

Line 5233: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )

5229: fnd_msg_pub.add;
5230: x_return_status := fnd_api.g_ret_sts_error;
5231: END IF;
5232: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )
5233: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5234: THEN
5235: fnd_message.set_name('CSI', 'CSI_INVALID_END_DATE');
5236: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);
5237: fnd_msg_pub.add;

Line 5238: x_return_status := fnd_api.g_ret_sts_error;

5234: THEN
5235: fnd_message.set_name('CSI', 'CSI_INVALID_END_DATE');
5236: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);
5237: fnd_msg_pub.add;
5238: x_return_status := fnd_api.g_ret_sts_error;
5239: END IF;
5240: END IF;
5241:
5242: IF p_validation_mode='UPDATE' THEN

Line 5243: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )

5239: END IF;
5240: END IF;
5241:
5242: IF p_validation_mode='UPDATE' THEN
5243: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )
5244: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5245: THEN
5246: IF (p_start_date > p_end_date)
5247: THEN

Line 5244: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )

5240: END IF;
5241:
5242: IF p_validation_mode='UPDATE' THEN
5243: IF ( (p_start_date IS NOT NULL) AND (p_start_date<>fnd_api.g_miss_date) )
5244: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5245: THEN
5246: IF (p_start_date > p_end_date)
5247: THEN
5248: fnd_message.set_name('CSI', 'CSI_START_DATE_GREATER');

Line 5252: x_return_status := fnd_api.g_ret_sts_error;

5248: fnd_message.set_name('CSI', 'CSI_START_DATE_GREATER');
5249: fnd_message.set_token('START_DATE_ACTIVE',p_start_date);
5250: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);
5251: fnd_msg_pub.add;
5252: x_return_status := fnd_api.g_ret_sts_error;
5253: END IF;
5254: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )
5255: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5256: THEN

Line 5254: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )

5250: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);
5251: fnd_msg_pub.add;
5252: x_return_status := fnd_api.g_ret_sts_error;
5253: END IF;
5254: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )
5255: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5256: THEN
5257: BEGIN
5258: SELECT start_date_active

Line 5255: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )

5251: fnd_msg_pub.add;
5252: x_return_status := fnd_api.g_ret_sts_error;
5253: END IF;
5254: ELSIF ( (p_start_date IS NULL) OR (p_start_date = fnd_api.g_miss_date) )
5255: AND ( (p_end_date IS NOT NULL) AND (p_end_date<>fnd_api.g_miss_date) )
5256: THEN
5257: BEGIN
5258: SELECT start_date_active
5259: INTO l_start_date_active

Line 5268: x_return_status := fnd_api.g_ret_sts_error;

5264: fnd_message.set_name('CSI', 'CSI_START_DATE_GREATER');
5265: fnd_message.set_token('START_DATE_ACTIVE',l_start_date_active);
5266: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);
5267: fnd_msg_pub.add;
5268: x_return_status := fnd_api.g_ret_sts_error;
5269: END IF;
5270: EXCEPTION
5271: WHEN NO_DATA_FOUND THEN
5272: fnd_message.set_name('CSI', 'CSI_INVALID_END_DATE');

Line 5275: x_return_status := fnd_api.g_ret_sts_error;

5271: WHEN NO_DATA_FOUND THEN
5272: fnd_message.set_name('CSI', 'CSI_INVALID_END_DATE');
5273: fnd_message.set_token('END_DATE_ACTIVE',p_end_date);
5274: fnd_msg_pub.add;
5275: x_return_status := fnd_api.g_ret_sts_error;
5276: END;
5277: END IF;
5278: END IF;
5279:

Line 5302: IF fnd_api.to_boolean( p_init_msg_list )

5298: IS
5299: l_dummy VARCHAR2(1);
5300: BEGIN
5301: -- initialize message list if p_init_msg_list is set to true.
5302: IF fnd_api.to_boolean( p_init_msg_list )
5303: THEN
5304: fnd_msg_pub.initialize;
5305: END IF;
5306:

Line 5309: x_return_status := fnd_api.g_ret_sts_success;

5305: END IF;
5306:
5307:
5308: -- initialize api return status to success
5309: x_return_status := fnd_api.g_ret_sts_success;
5310:
5311: -- validate not null column
5312: IF p_validation_mode='CREATE' THEN
5313: IF ( (p_name IS NULL) OR (p_name=fnd_api.g_miss_char) ) THEN

Line 5313: IF ( (p_name IS NULL) OR (p_name=fnd_api.g_miss_char) ) THEN

5309: x_return_status := fnd_api.g_ret_sts_success;
5310:
5311: -- validate not null column
5312: IF p_validation_mode='CREATE' THEN
5313: IF ( (p_name IS NULL) OR (p_name=fnd_api.g_miss_char) ) THEN
5314: IF (fnd_profile.value('CSI_AUTO_GEN_SYS_NAME') = 'Y')
5315: THEN
5316: NULL;
5317: ELSE

Line 5321: x_return_status := fnd_api.g_ret_sts_error;

5317: ELSE
5318: fnd_message.set_name('CSI', 'CSI_SYS_NAME_NOT_PASSED');
5319: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_NAME');
5320: fnd_msg_pub.add;
5321: x_return_status := fnd_api.g_ret_sts_error;
5322: END IF;
5323: END IF;
5324: END IF;
5325:

Line 5327: IF ( (p_name IS NULL) OR (p_name=fnd_api.g_miss_char) ) THEN

5323: END IF;
5324: END IF;
5325:
5326: IF p_validation_mode='UPDATE' THEN
5327: IF ( (p_name IS NULL) OR (p_name=fnd_api.g_miss_char) ) THEN
5328: fnd_message.set_name('CSI', 'CSI_SYS_NAME_NOT_PASSED');
5329: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_NAME');
5330: fnd_msg_pub.add;
5331: x_return_status := fnd_api.g_ret_sts_error;

Line 5331: x_return_status := fnd_api.g_ret_sts_error;

5327: IF ( (p_name IS NULL) OR (p_name=fnd_api.g_miss_char) ) THEN
5328: fnd_message.set_name('CSI', 'CSI_SYS_NAME_NOT_PASSED');
5329: fnd_message.set_token('REQUIRED_PARAM','SYSTEM_NAME');
5330: fnd_msg_pub.add;
5331: x_return_status := fnd_api.g_ret_sts_error;
5332: END IF;
5333: END IF;
5334:
5335:

Line 5358: IF fnd_api.to_boolean( p_init_msg_list )

5354: l_dummy VARCHAR2(1);
5355: BEGIN
5356:
5357: -- initialize message list if p_init_msg_list is set to true.
5358: IF fnd_api.to_boolean( p_init_msg_list )
5359: THEN
5360: fnd_msg_pub.initialize;
5361: END IF;
5362:

Line 5365: x_return_status := fnd_api.g_ret_sts_success;

5361: END IF;
5362:
5363:
5364: -- initialize api return status to success
5365: x_return_status := fnd_api.g_ret_sts_success;
5366:
5367: -- validate not null column
5368:
5369:

Line 5371: IF ( (p_object_version_number IS NULL) OR (p_object_version_number = fnd_api.g_miss_num) ) THEN

5367: -- validate not null column
5368:
5369:
5370: IF ( (p_validation_mode = 'UPDATE') OR (p_validation_mode = 'EXPIRE') ) THEN
5371: IF ( (p_object_version_number IS NULL) OR (p_object_version_number = fnd_api.g_miss_num) ) THEN
5372: fnd_message.set_name('CSI', 'CSI_MISSING_OBJ_VER_NUM');
5373: fnd_msg_pub.add;
5374: x_return_status := fnd_api.g_ret_sts_error;
5375: END IF;

Line 5374: x_return_status := fnd_api.g_ret_sts_error;

5370: IF ( (p_validation_mode = 'UPDATE') OR (p_validation_mode = 'EXPIRE') ) THEN
5371: IF ( (p_object_version_number IS NULL) OR (p_object_version_number = fnd_api.g_miss_num) ) THEN
5372: fnd_message.set_name('CSI', 'CSI_MISSING_OBJ_VER_NUM');
5373: fnd_msg_pub.add;
5374: x_return_status := fnd_api.g_ret_sts_error;
5375: END IF;
5376: END IF;
5377:
5378: -- standard call to get message count and if count is 1, get message info.

Line 5403: x_return_status := fnd_api.g_ret_sts_success;

5399: l_api_name CONSTANT VARCHAR2(30) := 'validate_systems';
5400: BEGIN
5401:
5402: -- initialize api return status to success
5403: x_return_status := fnd_api.g_ret_sts_success;
5404:
5405: -- The following IF statement has been commented out for Bug: 3271806
5406: -- IF (p_validation_level >= fnd_api.g_valid_level_full) THEN
5407:

Line 5406: -- IF (p_validation_level >= fnd_api.g_valid_level_full) THEN

5402: -- initialize api return status to success
5403: x_return_status := fnd_api.g_ret_sts_success;
5404:
5405: -- The following IF statement has been commented out for Bug: 3271806
5406: -- IF (p_validation_level >= fnd_api.g_valid_level_full) THEN
5407:
5408: validate_customer_id(
5409: p_init_msg_list => fnd_api.g_false,
5410: p_validation_mode => p_validation_mode,

Line 5409: p_init_msg_list => fnd_api.g_false,

5405: -- The following IF statement has been commented out for Bug: 3271806
5406: -- IF (p_validation_level >= fnd_api.g_valid_level_full) THEN
5407:
5408: validate_customer_id(
5409: p_init_msg_list => fnd_api.g_false,
5410: p_validation_mode => p_validation_mode,
5411: p_customer_id => p_system_rec.customer_id,
5412: x_return_status => x_return_status,
5413: x_msg_count => x_msg_count,

Line 5415: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5411: p_customer_id => p_system_rec.customer_id,
5412: x_return_status => x_return_status,
5413: x_msg_count => x_msg_count,
5414: x_msg_data => x_msg_data);
5415: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5416: RAISE fnd_api.g_exc_error;
5417: END IF;
5418:
5419: validate_system_type_code(

Line 5416: RAISE fnd_api.g_exc_error;

5412: x_return_status => x_return_status,
5413: x_msg_count => x_msg_count,
5414: x_msg_data => x_msg_data);
5415: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5416: RAISE fnd_api.g_exc_error;
5417: END IF;
5418:
5419: validate_system_type_code(
5420: p_init_msg_list => fnd_api.g_false,

Line 5420: p_init_msg_list => fnd_api.g_false,

5416: RAISE fnd_api.g_exc_error;
5417: END IF;
5418:
5419: validate_system_type_code(
5420: p_init_msg_list => fnd_api.g_false,
5421: p_validation_mode => p_validation_mode,
5422: p_system_type_code => p_system_rec.system_type_code,
5423: x_return_status => x_return_status,
5424: x_msg_count => x_msg_count,

Line 5426: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5422: p_system_type_code => p_system_rec.system_type_code,
5423: x_return_status => x_return_status,
5424: x_msg_count => x_msg_count,
5425: x_msg_data => x_msg_data);
5426: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5427: RAISE fnd_api.g_exc_error;
5428: END IF;
5429:
5430: validate_parent_system_id(

Line 5427: RAISE fnd_api.g_exc_error;

5423: x_return_status => x_return_status,
5424: x_msg_count => x_msg_count,
5425: x_msg_data => x_msg_data);
5426: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5427: RAISE fnd_api.g_exc_error;
5428: END IF;
5429:
5430: validate_parent_system_id(
5431: p_init_msg_list => fnd_api.g_false,

Line 5431: p_init_msg_list => fnd_api.g_false,

5427: RAISE fnd_api.g_exc_error;
5428: END IF;
5429:
5430: validate_parent_system_id(
5431: p_init_msg_list => fnd_api.g_false,
5432: p_validation_mode => p_validation_mode,
5433: p_parent_system_id => p_system_rec.parent_system_id,
5434: x_return_status => x_return_status,
5435: x_msg_count => x_msg_count,

Line 5437: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5433: p_parent_system_id => p_system_rec.parent_system_id,
5434: x_return_status => x_return_status,
5435: x_msg_count => x_msg_count,
5436: x_msg_data => x_msg_data);
5437: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5438: RAISE fnd_api.g_exc_error;
5439: END IF;
5440:
5441: validate_ship_to_contact_id(

Line 5438: RAISE fnd_api.g_exc_error;

5434: x_return_status => x_return_status,
5435: x_msg_count => x_msg_count,
5436: x_msg_data => x_msg_data);
5437: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5438: RAISE fnd_api.g_exc_error;
5439: END IF;
5440:
5441: validate_ship_to_contact_id(
5442: p_init_msg_list => fnd_api.g_false,

Line 5442: p_init_msg_list => fnd_api.g_false,

5438: RAISE fnd_api.g_exc_error;
5439: END IF;
5440:
5441: validate_ship_to_contact_id(
5442: p_init_msg_list => fnd_api.g_false,
5443: p_validation_mode => p_validation_mode,
5444: p_ship_to_contact_id => p_system_rec.ship_to_contact_id,
5445: x_return_status => x_return_status,
5446: x_msg_count => x_msg_count,

Line 5448: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5444: p_ship_to_contact_id => p_system_rec.ship_to_contact_id,
5445: x_return_status => x_return_status,
5446: x_msg_count => x_msg_count,
5447: x_msg_data => x_msg_data);
5448: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5449: RAISE fnd_api.g_exc_error;
5450: END IF;
5451:
5452: validate_bill_to_contact_id(

Line 5449: RAISE fnd_api.g_exc_error;

5445: x_return_status => x_return_status,
5446: x_msg_count => x_msg_count,
5447: x_msg_data => x_msg_data);
5448: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5449: RAISE fnd_api.g_exc_error;
5450: END IF;
5451:
5452: validate_bill_to_contact_id(
5453: p_init_msg_list => fnd_api.g_false,

Line 5453: p_init_msg_list => fnd_api.g_false,

5449: RAISE fnd_api.g_exc_error;
5450: END IF;
5451:
5452: validate_bill_to_contact_id(
5453: p_init_msg_list => fnd_api.g_false,
5454: p_validation_mode => p_validation_mode,
5455: p_bill_to_contact_id => p_system_rec.bill_to_contact_id,
5456: x_return_status => x_return_status,
5457: x_msg_count => x_msg_count,

Line 5459: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5455: p_bill_to_contact_id => p_system_rec.bill_to_contact_id,
5456: x_return_status => x_return_status,
5457: x_msg_count => x_msg_count,
5458: x_msg_data => x_msg_data);
5459: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5460: RAISE fnd_api.g_exc_error;
5461: END IF;
5462:
5463: validate_technical_contact_id(

Line 5460: RAISE fnd_api.g_exc_error;

5456: x_return_status => x_return_status,
5457: x_msg_count => x_msg_count,
5458: x_msg_data => x_msg_data);
5459: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5460: RAISE fnd_api.g_exc_error;
5461: END IF;
5462:
5463: validate_technical_contact_id(
5464: p_init_msg_list => fnd_api.g_false,

Line 5464: p_init_msg_list => fnd_api.g_false,

5460: RAISE fnd_api.g_exc_error;
5461: END IF;
5462:
5463: validate_technical_contact_id(
5464: p_init_msg_list => fnd_api.g_false,
5465: p_validation_mode => p_validation_mode,
5466: p_technical_contact_id => p_system_rec.technical_contact_id,
5467: x_return_status => x_return_status,
5468: x_msg_count => x_msg_count,

Line 5470: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5466: p_technical_contact_id => p_system_rec.technical_contact_id,
5467: x_return_status => x_return_status,
5468: x_msg_count => x_msg_count,
5469: x_msg_data => x_msg_data);
5470: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5471: RAISE fnd_api.g_exc_error;
5472: END IF;
5473:
5474: validate_srv_admin_cont_id(

Line 5471: RAISE fnd_api.g_exc_error;

5467: x_return_status => x_return_status,
5468: x_msg_count => x_msg_count,
5469: x_msg_data => x_msg_data);
5470: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5471: RAISE fnd_api.g_exc_error;
5472: END IF;
5473:
5474: validate_srv_admin_cont_id(
5475: p_init_msg_list => fnd_api.g_false,

Line 5475: p_init_msg_list => fnd_api.g_false,

5471: RAISE fnd_api.g_exc_error;
5472: END IF;
5473:
5474: validate_srv_admin_cont_id(
5475: p_init_msg_list => fnd_api.g_false,
5476: p_validation_mode => p_validation_mode,
5477: p_service_admin_contact_id => p_system_rec.service_admin_contact_id,
5478: x_return_status => x_return_status,
5479: x_msg_count => x_msg_count,

Line 5481: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5477: p_service_admin_contact_id => p_system_rec.service_admin_contact_id,
5478: x_return_status => x_return_status,
5479: x_msg_count => x_msg_count,
5480: x_msg_data => x_msg_data);
5481: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5482: RAISE fnd_api.g_exc_error;
5483: END IF;
5484:
5485: validate_ship_to_site_use_id(

Line 5482: RAISE fnd_api.g_exc_error;

5478: x_return_status => x_return_status,
5479: x_msg_count => x_msg_count,
5480: x_msg_data => x_msg_data);
5481: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5482: RAISE fnd_api.g_exc_error;
5483: END IF;
5484:
5485: validate_ship_to_site_use_id(
5486: p_init_msg_list => fnd_api.g_false,

Line 5486: p_init_msg_list => fnd_api.g_false,

5482: RAISE fnd_api.g_exc_error;
5483: END IF;
5484:
5485: validate_ship_to_site_use_id(
5486: p_init_msg_list => fnd_api.g_false,
5487: p_validation_mode => p_validation_mode,
5488: p_ship_to_site_use_id => p_system_rec.ship_to_site_use_id,
5489: x_return_status => x_return_status,
5490: x_msg_count => x_msg_count,

Line 5492: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5488: p_ship_to_site_use_id => p_system_rec.ship_to_site_use_id,
5489: x_return_status => x_return_status,
5490: x_msg_count => x_msg_count,
5491: x_msg_data => x_msg_data);
5492: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5493: RAISE fnd_api.g_exc_error;
5494: END IF;
5495:
5496: validate_bill_to_site_use_id(

Line 5493: RAISE fnd_api.g_exc_error;

5489: x_return_status => x_return_status,
5490: x_msg_count => x_msg_count,
5491: x_msg_data => x_msg_data);
5492: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5493: RAISE fnd_api.g_exc_error;
5494: END IF;
5495:
5496: validate_bill_to_site_use_id(
5497: p_init_msg_list => fnd_api.g_false,

Line 5497: p_init_msg_list => fnd_api.g_false,

5493: RAISE fnd_api.g_exc_error;
5494: END IF;
5495:
5496: validate_bill_to_site_use_id(
5497: p_init_msg_list => fnd_api.g_false,
5498: p_validation_mode => p_validation_mode,
5499: p_bill_to_site_use_id => p_system_rec.bill_to_site_use_id,
5500: x_return_status => x_return_status,
5501: x_msg_count => x_msg_count,

Line 5503: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5499: p_bill_to_site_use_id => p_system_rec.bill_to_site_use_id,
5500: x_return_status => x_return_status,
5501: x_msg_count => x_msg_count,
5502: x_msg_data => x_msg_data);
5503: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5504: RAISE fnd_api.g_exc_error;
5505: END IF;
5506:
5507: validate_install_site_use_id(

Line 5504: RAISE fnd_api.g_exc_error;

5500: x_return_status => x_return_status,
5501: x_msg_count => x_msg_count,
5502: x_msg_data => x_msg_data);
5503: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5504: RAISE fnd_api.g_exc_error;
5505: END IF;
5506:
5507: validate_install_site_use_id(
5508: p_init_msg_list => fnd_api.g_false,

Line 5508: p_init_msg_list => fnd_api.g_false,

5504: RAISE fnd_api.g_exc_error;
5505: END IF;
5506:
5507: validate_install_site_use_id(
5508: p_init_msg_list => fnd_api.g_false,
5509: p_validation_mode => p_validation_mode,
5510: p_install_site_use_id => p_system_rec.install_site_use_id,
5511: x_return_status => x_return_status,
5512: x_msg_count => x_msg_count,

Line 5514: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5510: p_install_site_use_id => p_system_rec.install_site_use_id,
5511: x_return_status => x_return_status,
5512: x_msg_count => x_msg_count,
5513: x_msg_data => x_msg_data);
5514: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5515: RAISE fnd_api.g_exc_error;
5516: END IF;
5517:
5518: validate_name(

Line 5515: RAISE fnd_api.g_exc_error;

5511: x_return_status => x_return_status,
5512: x_msg_count => x_msg_count,
5513: x_msg_data => x_msg_data);
5514: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5515: RAISE fnd_api.g_exc_error;
5516: END IF;
5517:
5518: validate_name(
5519: p_init_msg_list => fnd_api.g_false,

Line 5519: p_init_msg_list => fnd_api.g_false,

5515: RAISE fnd_api.g_exc_error;
5516: END IF;
5517:
5518: validate_name(
5519: p_init_msg_list => fnd_api.g_false,
5520: p_validation_mode => p_validation_mode,
5521: p_name => p_system_rec.name,
5522: x_return_status => x_return_status,
5523: x_msg_count => x_msg_count,

Line 5525: IF x_return_status <> fnd_api.g_ret_sts_success THEN

5521: p_name => p_system_rec.name,
5522: x_return_status => x_return_status,
5523: x_msg_count => x_msg_count,
5524: x_msg_data => x_msg_data);
5525: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5526: RAISE fnd_api.g_exc_error;
5527: END IF;
5528:
5529: -- END IF;

Line 5526: RAISE fnd_api.g_exc_error;

5522: x_return_status => x_return_status,
5523: x_msg_count => x_msg_count,
5524: x_msg_data => x_msg_data);
5525: IF x_return_status <> fnd_api.g_ret_sts_success THEN
5526: RAISE fnd_api.g_exc_error;
5527: END IF;
5528:
5529: -- END IF;
5530: END validate_systems;

Line 5557: l_return_tot_count VARCHAR2(1) := fnd_api.g_false;

5553: l_cur_get_systems NUMBER;
5554: l_select_cl VARCHAR2(2000) := '';
5555: l_def_systems_rec csi_datastructures_pub.system_rec;
5556: l_ignore NUMBER;
5557: l_return_tot_count VARCHAR2(1) := fnd_api.g_false;
5558: l_returned_rec_count NUMBER := 0;
5559: l_sys_rec csi_datastructures_pub.system_rec;
5560: l_tot_rec_count NUMBER := 0;
5561: l_start_rec_prt NUMBER :=1;

Line 5578: IF NOT fnd_api.compatible_api_call ( l_api_version,

5574: -- standard start of api savepoint
5575: SAVEPOINT get_systems_details;
5576:
5577: -- standard call to check for call compatibility.
5578: IF NOT fnd_api.compatible_api_call ( l_api_version,
5579: p_api_version,
5580: l_api_name,
5581: g_pkg_name)
5582: THEN

Line 5583: RAISE fnd_api.g_exc_unexpected_error;

5579: p_api_version,
5580: l_api_name,
5581: g_pkg_name)
5582: THEN
5583: RAISE fnd_api.g_exc_unexpected_error;
5584: END IF;
5585:
5586:
5587: -- initialize message list if p_init_msg_list is set to true.

Line 5588: IF fnd_api.to_boolean( p_init_msg_list )

5584: END IF;
5585:
5586:
5587: -- initialize message list if p_init_msg_list is set to true.
5588: IF fnd_api.to_boolean( p_init_msg_list )
5589: THEN
5590: fnd_msg_pub.initialize;
5591: END IF;
5592:

Line 5597: x_return_status := fnd_api.g_ret_sts_success;

5593:
5594:
5595:
5596: -- initialize api return status to success
5597: x_return_status := fnd_api.g_ret_sts_success;
5598:
5599: l_debug_level:=fnd_profile.value('CSI_DEBUG_LEVEL');
5600: IF (l_debug_level > 0) THEN
5601: csi_gen_utility_pvt.put_line( 'get_system_details');

Line 5617: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))

5613: csi_gen_utility_pvt.dump_sys_query_rec(p_system_query_rec);
5614: END IF;
5615:
5616: IF
5617: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))
5618: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))
5619: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))
5620: )
5621: THEN

Line 5618: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))

5614: END IF;
5615:
5616: IF
5617: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))
5618: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))
5619: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))
5620: )
5621: THEN
5622: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');

Line 5619: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))

5615:
5616: IF
5617: ( ((p_system_query_rec.system_id IS NULL) OR (p_system_query_rec.system_id = fnd_api.g_miss_num))
5618: AND ((p_system_query_rec.system_type_code IS NULL) OR (p_system_query_rec.system_type_code = fnd_api.g_miss_char))
5619: AND ((p_system_query_rec.system_number IS NULL) OR (p_system_query_rec.system_number = fnd_api.g_miss_char))
5620: )
5621: THEN
5622: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');
5623: fnd_msg_pub.add;

Line 5624: x_return_status := fnd_api.g_ret_sts_error;

5620: )
5621: THEN
5622: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');
5623: fnd_msg_pub.add;
5624: x_return_status := fnd_api.g_ret_sts_error;
5625: RAISE fnd_api.g_exc_error;
5626: END IF;
5627:
5628: gen_select(l_crit_systems_rec,l_select_cl);

Line 5625: RAISE fnd_api.g_exc_error;

5621: THEN
5622: fnd_message.set_name('CSI', 'CSI_INVALID_PARAMETERS');
5623: fnd_msg_pub.add;
5624: x_return_status := fnd_api.g_ret_sts_error;
5625: RAISE fnd_api.g_exc_error;
5626: END IF;
5627:
5628: gen_select(l_crit_systems_rec,l_select_cl);
5629:

Line 5661: IF((dbms_sql.fetch_rows(l_cur_get_systems)>0) AND ( (l_returned_rec_count

5657: NULL;
5658: END;
5659: --
5660: LOOP
5661: IF((dbms_sql.fetch_rows(l_cur_get_systems)>0) AND ( (l_returned_rec_count 5662: THEN
5663:
5664: get_column_values(l_cur_get_systems, l_sys_rec);
5665:

Line 5671: IF ( (p_time_stamp IS NOT NULL) AND (p_time_stamp <> FND_API.G_MISS_DATE) )

5667:
5668: IF (l_returned_rec_count < l_rec_requested)
5669: THEN
5670: l_returned_rec_count := l_returned_rec_count + 1;
5671: IF ( (p_time_stamp IS NOT NULL) AND (p_time_stamp <> FND_API.G_MISS_DATE) )
5672: THEN
5673: IF ( (l_last_purge_date IS NOT NULL) AND (p_time_stamp <= l_last_purge_date) )
5674: THEN
5675: csi_gen_utility_pvt.put_line('Warning! History for this entity has already been purged for the datetime stamp passed. ' ||

Line 5766: WHEN fnd_api.g_exc_error THEN

5762: ( p_count => x_msg_count,
5763: p_data => x_msg_data
5764: );
5765: EXCEPTION
5766: WHEN fnd_api.g_exc_error THEN
5767: ROLLBACK TO get_system_details;
5768: x_return_status := fnd_api.g_ret_sts_error ;
5769: fnd_msg_pub.count_and_get
5770: (p_count => x_msg_count ,

Line 5768: x_return_status := fnd_api.g_ret_sts_error ;

5764: );
5765: EXCEPTION
5766: WHEN fnd_api.g_exc_error THEN
5767: ROLLBACK TO get_system_details;
5768: x_return_status := fnd_api.g_ret_sts_error ;
5769: fnd_msg_pub.count_and_get
5770: (p_count => x_msg_count ,
5771: p_data => x_msg_data
5772: );

Line 5774: WHEN fnd_api.g_exc_unexpected_error THEN

5770: (p_count => x_msg_count ,
5771: p_data => x_msg_data
5772: );
5773:
5774: WHEN fnd_api.g_exc_unexpected_error THEN
5775: ROLLBACK TO get_system_details;
5776: x_return_status := fnd_api.g_ret_sts_unexp_error ;
5777: fnd_msg_pub.count_and_get
5778: (p_count => x_msg_count ,

Line 5776: x_return_status := fnd_api.g_ret_sts_unexp_error ;

5772: );
5773:
5774: WHEN fnd_api.g_exc_unexpected_error THEN
5775: ROLLBACK TO get_system_details;
5776: x_return_status := fnd_api.g_ret_sts_unexp_error ;
5777: fnd_msg_pub.count_and_get
5778: (p_count => x_msg_count ,
5779: p_data => x_msg_data
5780: );

Line 5784: x_return_status := fnd_api.g_ret_sts_unexp_error ;

5780: );
5781:
5782: WHEN OTHERS THEN
5783: ROLLBACK TO get_system_details;
5784: x_return_status := fnd_api.g_ret_sts_unexp_error ;
5785: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
5786: fnd_msg_pub.add_exc_msg(g_pkg_name ,l_api_name);
5787: END IF;
5788: fnd_msg_pub.count_and_get

Line 5806: (p_system_header_tbl(sys_row).system_id <> FND_API.G_MISS_NUM) ) THEN

5802: FOR sys_row in p_system_header_tbl.FIRST .. p_system_header_tbl.LAST
5803: LOOP
5804: IF p_system_header_tbl.EXISTS(sys_row) THEN
5805: IF ( (p_system_header_tbl(sys_row).system_id IS NOT NULL) AND
5806: (p_system_header_tbl(sys_row).system_id <> FND_API.G_MISS_NUM) ) THEN
5807: BEGIN
5808: SELECT name
5809: ,description
5810: INTO p_system_header_tbl(sys_row).name

Line 5821: (p_system_header_tbl(sys_row).customer_id <> FND_API.G_MISS_NUM) ) THEN

5817: END;
5818: END IF;
5819: --
5820: IF ( (p_system_header_tbl(sys_row).customer_id IS NOT NULL) AND
5821: (p_system_header_tbl(sys_row).customer_id <> FND_API.G_MISS_NUM) ) THEN
5822: BEGIN
5823: SELECT hza.account_number
5824: ,hza.account_name
5825: ,hza.party_id

Line 5844: (p_system_header_tbl(sys_row).ship_to_site_use_id <> FND_API.G_MISS_NUM) ) THEN

5840: END;
5841: END IF;
5842: --
5843: IF ( (p_system_header_tbl(sys_row).ship_to_site_use_id IS NOT NULL) AND
5844: (p_system_header_tbl(sys_row).ship_to_site_use_id <> FND_API.G_MISS_NUM) ) THEN
5845: BEGIN
5846: SELECT hzp.party_id
5847: ,hzp.party_number
5848: ,hzp.party_name

Line 5893: (p_system_header_tbl(sys_row).bill_to_site_use_id <> FND_API.G_MISS_NUM) ) THEN

5889: END;
5890: END IF;
5891: --
5892: IF ( (p_system_header_tbl(sys_row).bill_to_site_use_id IS NOT NULL) AND
5893: (p_system_header_tbl(sys_row).bill_to_site_use_id <> FND_API.G_MISS_NUM) ) THEN
5894: BEGIN
5895: SELECT hzp.party_id
5896: ,hzp.party_number
5897: ,hzp.party_name

Line 5942: (p_system_header_tbl(sys_row).install_site_use_id <> FND_API.G_MISS_NUM) ) THEN

5938: END;
5939: END IF;
5940: --
5941: IF ( (p_system_header_tbl(sys_row).install_site_use_id IS NOT NULL) AND
5942: (p_system_header_tbl(sys_row).install_site_use_id <> FND_API.G_MISS_NUM) ) THEN
5943: BEGIN
5944: SELECT hzp.party_id
5945: ,hzp.party_number
5946: ,hzp.party_name

Line 5987: (p_system_header_tbl(sys_row).technical_contact_id <> FND_API.G_MISS_NUM) ) THEN

5983: END;
5984: END IF;
5985: --
5986: IF ( (p_system_header_tbl(sys_row).technical_contact_id IS NOT NULL) AND
5987: (p_system_header_tbl(sys_row).technical_contact_id <> FND_API.G_MISS_NUM) ) THEN
5988: BEGIN
5989: SELECT hzp.party_number
5990: ,hzp.party_name
5991: INTO p_system_header_tbl(sys_row).technical_contact_number

Line 6002: (p_system_header_tbl(sys_row).service_admin_contact_id <> FND_API.G_MISS_NUM) ) THEN

5998: END;
5999: END IF;
6000: --
6001: IF ( (p_system_header_tbl(sys_row).service_admin_contact_id IS NOT NULL) AND
6002: (p_system_header_tbl(sys_row).service_admin_contact_id <> FND_API.G_MISS_NUM) ) THEN
6003: BEGIN
6004: SELECT hzp.party_number
6005: ,hzp.party_name
6006: INTO p_system_header_tbl(sys_row).service_admin_contact_number

Line 6017: (p_system_header_tbl(sys_row).bill_to_contact_id <> FND_API.G_MISS_NUM) ) THEN

6013: END;
6014: END IF;
6015: --
6016: IF ( (p_system_header_tbl(sys_row).bill_to_contact_id IS NOT NULL) AND
6017: (p_system_header_tbl(sys_row).bill_to_contact_id <> FND_API.G_MISS_NUM) ) THEN
6018: BEGIN
6019: SELECT hzp.party_number
6020: ,hzp.party_name
6021: INTO p_system_header_tbl(sys_row).bill_to_contact_number

Line 6032: (p_system_header_tbl(sys_row).ship_to_contact_id <> FND_API.G_MISS_NUM) ) THEN

6028: END;
6029: END IF;
6030: --
6031: IF ( (p_system_header_tbl(sys_row).ship_to_contact_id IS NOT NULL) AND
6032: (p_system_header_tbl(sys_row).ship_to_contact_id <> FND_API.G_MISS_NUM) ) THEN
6033: BEGIN
6034: SELECT hzp.party_number
6035: ,hzp.party_name
6036: INTO p_system_header_tbl(sys_row).ship_to_contact_number

Line 6047: (p_system_header_tbl(sys_row).operating_unit_id <> FND_API.G_MISS_NUM) ) THEN

6043: END;
6044: END IF;
6045: --
6046: IF ( (p_system_header_tbl(sys_row).operating_unit_id IS NOT NULL) AND
6047: (p_system_header_tbl(sys_row).operating_unit_id <> FND_API.G_MISS_NUM) ) THEN
6048: BEGIN
6049: SELECT name
6050: INTO p_system_header_tbl(sys_row).operating_unit_name
6051: FROM HR_OPERATING_UNITS

Line 6060: (p_system_header_tbl(sys_row).parent_system_id <> FND_API.G_MISS_NUM) ) THEN

6056: END;
6057: END IF;
6058: --
6059: IF ( (p_system_header_tbl(sys_row).parent_system_id IS NOT NULL) AND
6060: (p_system_header_tbl(sys_row).parent_system_id <> FND_API.G_MISS_NUM) ) THEN
6061: BEGIN
6062: SELECT name
6063: ,description
6064: INTO p_system_header_tbl(sys_row).parent_name

Line 6075: (p_system_header_tbl(sys_row).system_type_code <> FND_API.G_MISS_CHAR) ) THEN

6071: END;
6072: END IF;
6073: --
6074: IF ( (p_system_header_tbl(sys_row).system_type_code IS NOT NULL) AND
6075: (p_system_header_tbl(sys_row).system_type_code <> FND_API.G_MISS_CHAR) ) THEN
6076: BEGIN
6077: SELECT meaning
6078: INTO p_system_header_tbl(sys_row).system_type
6079: FROM CSI_LOOKUPS

Line 6124: IF fnd_api.to_boolean(p_commit) THEN

6120: l_api_name CONSTANT VARCHAR2(30) := 'get_system_history';
6121: l_api_version CONSTANT NUMBER := 1.0;
6122: l_sys_count NUMBER := 0;
6123: BEGIN
6124: IF fnd_api.to_boolean(p_commit) THEN
6125: SAVEPOINT get_system_history;
6126: END IF;
6127:
6128: -- Standard call to check for call compatibility.

Line 6129: IF NOT FND_API.Compatible_API_Call (l_api_version ,

6125: SAVEPOINT get_system_history;
6126: END IF;
6127:
6128: -- Standard call to check for call compatibility.
6129: IF NOT FND_API.Compatible_API_Call (l_api_version ,
6130: p_api_version ,
6131: l_api_name ,
6132: G_PKG_NAME )
6133: THEN

Line 6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

6130: p_api_version ,
6131: l_api_name ,
6132: G_PKG_NAME )
6133: THEN
6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6135: END IF;
6136:
6137: -- Initialize message list if p_init_msg_list is set to TRUE.
6138: IF FND_API.to_Boolean( p_init_msg_list ) THEN

Line 6138: IF FND_API.to_Boolean( p_init_msg_list ) THEN

6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6135: END IF;
6136:
6137: -- Initialize message list if p_init_msg_list is set to TRUE.
6138: IF FND_API.to_Boolean( p_init_msg_list ) THEN
6139: FND_MSG_PUB.initialize;
6140: END IF;
6141:
6142: -- Initialize API return status to success

Line 6143: x_return_status := FND_API.G_RET_STS_SUCCESS;

6139: FND_MSG_PUB.initialize;
6140: END IF;
6141:
6142: -- Initialize API return status to success
6143: x_return_status := FND_API.G_RET_STS_SUCCESS;
6144:
6145: /***** srramakr commented for bug # 3304439
6146: -- Check for the profile option and enable trace
6147: IF (fnd_profile.value('CSI_ENABLE_SQL_TRACE') = 'Y') THEN

Line 6162: IF NVL(l_hist_csr.old_customer_id,fnd_api.g_miss_num) =

6158: l_sys_history_rec := l_temp_sys_hist_rec;
6159: l_old_sys_header_rec := l_temp_sys_header_rec;
6160: l_new_sys_header_rec := l_temp_sys_header_rec;
6161: --
6162: IF NVL(l_hist_csr.old_customer_id,fnd_api.g_miss_num) =
6163: NVL(l_hist_csr.new_customer_id,fnd_api.g_miss_num) THEN
6164: l_old_sys_header_rec.customer_id := NULL;
6165: l_new_sys_header_rec.customer_id := NULL;
6166: ELSE

Line 6163: NVL(l_hist_csr.new_customer_id,fnd_api.g_miss_num) THEN

6159: l_old_sys_header_rec := l_temp_sys_header_rec;
6160: l_new_sys_header_rec := l_temp_sys_header_rec;
6161: --
6162: IF NVL(l_hist_csr.old_customer_id,fnd_api.g_miss_num) =
6163: NVL(l_hist_csr.new_customer_id,fnd_api.g_miss_num) THEN
6164: l_old_sys_header_rec.customer_id := NULL;
6165: l_new_sys_header_rec.customer_id := NULL;
6166: ELSE
6167: l_old_sys_header_rec.customer_id := l_hist_csr.old_customer_id;

Line 6171: IF NVL(l_hist_csr.old_system_type_code,fnd_api.g_miss_char) =

6167: l_old_sys_header_rec.customer_id := l_hist_csr.old_customer_id;
6168: l_new_sys_header_rec.customer_id := l_hist_csr.new_customer_id;
6169: END IF;
6170: --
6171: IF NVL(l_hist_csr.old_system_type_code,fnd_api.g_miss_char) =
6172: NVL(l_hist_csr.new_system_type_code,fnd_api.g_miss_char) THEN
6173: l_old_sys_header_rec.system_type_code := NULL;
6174: l_new_sys_header_rec.system_type_code := NULL;
6175: ELSE

Line 6172: NVL(l_hist_csr.new_system_type_code,fnd_api.g_miss_char) THEN

6168: l_new_sys_header_rec.customer_id := l_hist_csr.new_customer_id;
6169: END IF;
6170: --
6171: IF NVL(l_hist_csr.old_system_type_code,fnd_api.g_miss_char) =
6172: NVL(l_hist_csr.new_system_type_code,fnd_api.g_miss_char) THEN
6173: l_old_sys_header_rec.system_type_code := NULL;
6174: l_new_sys_header_rec.system_type_code := NULL;
6175: ELSE
6176: l_old_sys_header_rec.system_type_code := l_hist_csr.old_system_type_code;

Line 6180: IF NVL(l_hist_csr.old_system_number,fnd_api.g_miss_char) =

6176: l_old_sys_header_rec.system_type_code := l_hist_csr.old_system_type_code;
6177: l_new_sys_header_rec.system_type_code := l_hist_csr.new_system_type_code;
6178: END IF;
6179: --
6180: IF NVL(l_hist_csr.old_system_number,fnd_api.g_miss_char) =
6181: NVL(l_hist_csr.new_system_number,fnd_api.g_miss_char) THEN
6182: l_old_sys_header_rec.system_number := NULL;
6183: l_new_sys_header_rec.system_number := NULL;
6184: ELSE

Line 6181: NVL(l_hist_csr.new_system_number,fnd_api.g_miss_char) THEN

6177: l_new_sys_header_rec.system_type_code := l_hist_csr.new_system_type_code;
6178: END IF;
6179: --
6180: IF NVL(l_hist_csr.old_system_number,fnd_api.g_miss_char) =
6181: NVL(l_hist_csr.new_system_number,fnd_api.g_miss_char) THEN
6182: l_old_sys_header_rec.system_number := NULL;
6183: l_new_sys_header_rec.system_number := NULL;
6184: ELSE
6185: l_old_sys_header_rec.system_number := l_hist_csr.old_system_number;

Line 6189: IF NVL(l_hist_csr.old_parent_system_id,fnd_api.g_miss_num) =

6185: l_old_sys_header_rec.system_number := l_hist_csr.old_system_number;
6186: l_new_sys_header_rec.system_number := l_hist_csr.new_system_number;
6187: END IF;
6188: --
6189: IF NVL(l_hist_csr.old_parent_system_id,fnd_api.g_miss_num) =
6190: NVL(l_hist_csr.new_parent_system_id,fnd_api.g_miss_num) THEN
6191: l_old_sys_header_rec.parent_system_id := NULL;
6192: l_new_sys_header_rec.parent_system_id := NULL;
6193: ELSE

Line 6190: NVL(l_hist_csr.new_parent_system_id,fnd_api.g_miss_num) THEN

6186: l_new_sys_header_rec.system_number := l_hist_csr.new_system_number;
6187: END IF;
6188: --
6189: IF NVL(l_hist_csr.old_parent_system_id,fnd_api.g_miss_num) =
6190: NVL(l_hist_csr.new_parent_system_id,fnd_api.g_miss_num) THEN
6191: l_old_sys_header_rec.parent_system_id := NULL;
6192: l_new_sys_header_rec.parent_system_id := NULL;
6193: ELSE
6194: l_old_sys_header_rec.parent_system_id := l_hist_csr.old_parent_system_id;

Line 6198: IF NVL(l_hist_csr.old_ship_to_contact_id,fnd_api.g_miss_num) =

6194: l_old_sys_header_rec.parent_system_id := l_hist_csr.old_parent_system_id;
6195: l_new_sys_header_rec.parent_system_id := l_hist_csr.new_parent_system_id;
6196: END IF;
6197: --
6198: IF NVL(l_hist_csr.old_ship_to_contact_id,fnd_api.g_miss_num) =
6199: NVL(l_hist_csr.new_ship_to_contact_id,fnd_api.g_miss_num) THEN
6200: l_old_sys_header_rec.ship_to_contact_id := NULL;
6201: l_new_sys_header_rec.ship_to_contact_id := NULL;
6202: ELSE

Line 6199: NVL(l_hist_csr.new_ship_to_contact_id,fnd_api.g_miss_num) THEN

6195: l_new_sys_header_rec.parent_system_id := l_hist_csr.new_parent_system_id;
6196: END IF;
6197: --
6198: IF NVL(l_hist_csr.old_ship_to_contact_id,fnd_api.g_miss_num) =
6199: NVL(l_hist_csr.new_ship_to_contact_id,fnd_api.g_miss_num) THEN
6200: l_old_sys_header_rec.ship_to_contact_id := NULL;
6201: l_new_sys_header_rec.ship_to_contact_id := NULL;
6202: ELSE
6203: l_old_sys_header_rec.ship_to_contact_id := l_hist_csr.old_ship_to_contact_id;

Line 6207: IF NVL(l_hist_csr.old_bill_to_contact_id,fnd_api.g_miss_num) =

6203: l_old_sys_header_rec.ship_to_contact_id := l_hist_csr.old_ship_to_contact_id;
6204: l_new_sys_header_rec.ship_to_contact_id := l_hist_csr.new_ship_to_contact_id;
6205: END IF;
6206: --
6207: IF NVL(l_hist_csr.old_bill_to_contact_id,fnd_api.g_miss_num) =
6208: NVL(l_hist_csr.new_bill_to_contact_id,fnd_api.g_miss_num) THEN
6209: l_old_sys_header_rec.bill_to_contact_id := NULL;
6210: l_new_sys_header_rec.bill_to_contact_id := NULL;
6211: ELSE

Line 6208: NVL(l_hist_csr.new_bill_to_contact_id,fnd_api.g_miss_num) THEN

6204: l_new_sys_header_rec.ship_to_contact_id := l_hist_csr.new_ship_to_contact_id;
6205: END IF;
6206: --
6207: IF NVL(l_hist_csr.old_bill_to_contact_id,fnd_api.g_miss_num) =
6208: NVL(l_hist_csr.new_bill_to_contact_id,fnd_api.g_miss_num) THEN
6209: l_old_sys_header_rec.bill_to_contact_id := NULL;
6210: l_new_sys_header_rec.bill_to_contact_id := NULL;
6211: ELSE
6212: l_old_sys_header_rec.bill_to_contact_id := l_hist_csr.old_bill_to_contact_id;

Line 6216: IF NVL(l_hist_csr.old_technical_contact_id,fnd_api.g_miss_num) =

6212: l_old_sys_header_rec.bill_to_contact_id := l_hist_csr.old_bill_to_contact_id;
6213: l_new_sys_header_rec.bill_to_contact_id := l_hist_csr.new_bill_to_contact_id;
6214: END IF;
6215: --
6216: IF NVL(l_hist_csr.old_technical_contact_id,fnd_api.g_miss_num) =
6217: NVL(l_hist_csr.new_technical_contact_id,fnd_api.g_miss_num) THEN
6218: l_old_sys_header_rec.technical_contact_id := NULL;
6219: l_new_sys_header_rec.technical_contact_id := NULL;
6220: ELSE

Line 6217: NVL(l_hist_csr.new_technical_contact_id,fnd_api.g_miss_num) THEN

6213: l_new_sys_header_rec.bill_to_contact_id := l_hist_csr.new_bill_to_contact_id;
6214: END IF;
6215: --
6216: IF NVL(l_hist_csr.old_technical_contact_id,fnd_api.g_miss_num) =
6217: NVL(l_hist_csr.new_technical_contact_id,fnd_api.g_miss_num) THEN
6218: l_old_sys_header_rec.technical_contact_id := NULL;
6219: l_new_sys_header_rec.technical_contact_id := NULL;
6220: ELSE
6221: l_old_sys_header_rec.technical_contact_id := l_hist_csr.old_technical_contact_id;

Line 6225: IF NVL(l_hist_csr.old_service_admin_contact_id,fnd_api.g_miss_num) =

6221: l_old_sys_header_rec.technical_contact_id := l_hist_csr.old_technical_contact_id;
6222: l_new_sys_header_rec.technical_contact_id := l_hist_csr.new_technical_contact_id;
6223: END IF;
6224: --
6225: IF NVL(l_hist_csr.old_service_admin_contact_id,fnd_api.g_miss_num) =
6226: NVL(l_hist_csr.new_service_admin_contact_id,fnd_api.g_miss_num) THEN
6227: l_old_sys_header_rec.service_admin_contact_id := NULL;
6228: l_new_sys_header_rec.service_admin_contact_id := NULL;
6229: ELSE

Line 6226: NVL(l_hist_csr.new_service_admin_contact_id,fnd_api.g_miss_num) THEN

6222: l_new_sys_header_rec.technical_contact_id := l_hist_csr.new_technical_contact_id;
6223: END IF;
6224: --
6225: IF NVL(l_hist_csr.old_service_admin_contact_id,fnd_api.g_miss_num) =
6226: NVL(l_hist_csr.new_service_admin_contact_id,fnd_api.g_miss_num) THEN
6227: l_old_sys_header_rec.service_admin_contact_id := NULL;
6228: l_new_sys_header_rec.service_admin_contact_id := NULL;
6229: ELSE
6230: l_old_sys_header_rec.service_admin_contact_id := l_hist_csr.old_service_admin_contact_id;

Line 6234: IF NVL(l_hist_csr.old_ship_to_site_use_id,fnd_api.g_miss_num) =

6230: l_old_sys_header_rec.service_admin_contact_id := l_hist_csr.old_service_admin_contact_id;
6231: l_new_sys_header_rec.service_admin_contact_id := l_hist_csr.new_service_admin_contact_id;
6232: END IF;
6233: --
6234: IF NVL(l_hist_csr.old_ship_to_site_use_id,fnd_api.g_miss_num) =
6235: NVL(l_hist_csr.new_ship_to_site_use_id,fnd_api.g_miss_num) THEN
6236: l_old_sys_header_rec.ship_to_site_use_id := NULL;
6237: l_new_sys_header_rec.ship_to_site_use_id := NULL;
6238: ELSE

Line 6235: NVL(l_hist_csr.new_ship_to_site_use_id,fnd_api.g_miss_num) THEN

6231: l_new_sys_header_rec.service_admin_contact_id := l_hist_csr.new_service_admin_contact_id;
6232: END IF;
6233: --
6234: IF NVL(l_hist_csr.old_ship_to_site_use_id,fnd_api.g_miss_num) =
6235: NVL(l_hist_csr.new_ship_to_site_use_id,fnd_api.g_miss_num) THEN
6236: l_old_sys_header_rec.ship_to_site_use_id := NULL;
6237: l_new_sys_header_rec.ship_to_site_use_id := NULL;
6238: ELSE
6239: l_old_sys_header_rec.ship_to_site_use_id := l_hist_csr.old_ship_to_site_use_id;

Line 6243: IF NVL(l_hist_csr.old_bill_to_site_use_id,fnd_api.g_miss_num) =

6239: l_old_sys_header_rec.ship_to_site_use_id := l_hist_csr.old_ship_to_site_use_id;
6240: l_new_sys_header_rec.ship_to_site_use_id := l_hist_csr.new_ship_to_site_use_id;
6241: END IF;
6242: --
6243: IF NVL(l_hist_csr.old_bill_to_site_use_id,fnd_api.g_miss_num) =
6244: NVL(l_hist_csr.new_bill_to_site_use_id,fnd_api.g_miss_num) THEN
6245: l_old_sys_header_rec.bill_to_site_use_id := NULL;
6246: l_new_sys_header_rec.bill_to_site_use_id := NULL;
6247: ELSE

Line 6244: NVL(l_hist_csr.new_bill_to_site_use_id,fnd_api.g_miss_num) THEN

6240: l_new_sys_header_rec.ship_to_site_use_id := l_hist_csr.new_ship_to_site_use_id;
6241: END IF;
6242: --
6243: IF NVL(l_hist_csr.old_bill_to_site_use_id,fnd_api.g_miss_num) =
6244: NVL(l_hist_csr.new_bill_to_site_use_id,fnd_api.g_miss_num) THEN
6245: l_old_sys_header_rec.bill_to_site_use_id := NULL;
6246: l_new_sys_header_rec.bill_to_site_use_id := NULL;
6247: ELSE
6248: l_old_sys_header_rec.bill_to_site_use_id := l_hist_csr.old_bill_to_site_use_id;

Line 6252: IF NVL(l_hist_csr.old_install_site_use_id,fnd_api.g_miss_num) =

6248: l_old_sys_header_rec.bill_to_site_use_id := l_hist_csr.old_bill_to_site_use_id;
6249: l_new_sys_header_rec.bill_to_site_use_id := l_hist_csr.new_bill_to_site_use_id;
6250: END IF;
6251: --
6252: IF NVL(l_hist_csr.old_install_site_use_id,fnd_api.g_miss_num) =
6253: NVL(l_hist_csr.new_install_site_use_id,fnd_api.g_miss_num) THEN
6254: l_old_sys_header_rec.install_site_use_id := NULL;
6255: l_new_sys_header_rec.install_site_use_id := NULL;
6256: ELSE

Line 6253: NVL(l_hist_csr.new_install_site_use_id,fnd_api.g_miss_num) THEN

6249: l_new_sys_header_rec.bill_to_site_use_id := l_hist_csr.new_bill_to_site_use_id;
6250: END IF;
6251: --
6252: IF NVL(l_hist_csr.old_install_site_use_id,fnd_api.g_miss_num) =
6253: NVL(l_hist_csr.new_install_site_use_id,fnd_api.g_miss_num) THEN
6254: l_old_sys_header_rec.install_site_use_id := NULL;
6255: l_new_sys_header_rec.install_site_use_id := NULL;
6256: ELSE
6257: l_old_sys_header_rec.install_site_use_id := l_hist_csr.old_install_site_use_id;

Line 6261: IF NVL(l_hist_csr.old_coterminate_day_month,fnd_api.g_miss_char) =

6257: l_old_sys_header_rec.install_site_use_id := l_hist_csr.old_install_site_use_id;
6258: l_new_sys_header_rec.install_site_use_id := l_hist_csr.new_install_site_use_id;
6259: END IF;
6260: --
6261: IF NVL(l_hist_csr.old_coterminate_day_month,fnd_api.g_miss_char) =
6262: NVL(l_hist_csr.new_coterminate_day_month,fnd_api.g_miss_char) THEN
6263: l_old_sys_header_rec.coterminate_day_month := NULL;
6264: l_new_sys_header_rec.coterminate_day_month := NULL;
6265: ELSE

Line 6262: NVL(l_hist_csr.new_coterminate_day_month,fnd_api.g_miss_char) THEN

6258: l_new_sys_header_rec.install_site_use_id := l_hist_csr.new_install_site_use_id;
6259: END IF;
6260: --
6261: IF NVL(l_hist_csr.old_coterminate_day_month,fnd_api.g_miss_char) =
6262: NVL(l_hist_csr.new_coterminate_day_month,fnd_api.g_miss_char) THEN
6263: l_old_sys_header_rec.coterminate_day_month := NULL;
6264: l_new_sys_header_rec.coterminate_day_month := NULL;
6265: ELSE
6266: l_old_sys_header_rec.coterminate_day_month := l_hist_csr.old_coterminate_day_month;

Line 6270: IF NVL(l_hist_csr.old_start_date_active,fnd_api.g_miss_date) =

6266: l_old_sys_header_rec.coterminate_day_month := l_hist_csr.old_coterminate_day_month;
6267: l_new_sys_header_rec.coterminate_day_month := l_hist_csr.new_coterminate_day_month;
6268: END IF;
6269: --
6270: IF NVL(l_hist_csr.old_start_date_active,fnd_api.g_miss_date) =
6271: NVL(l_hist_csr.new_start_date_active,fnd_api.g_miss_date) THEN
6272: l_old_sys_header_rec.start_date_active := NULL;
6273: l_new_sys_header_rec.start_date_active := NULL;
6274: ELSE

Line 6271: NVL(l_hist_csr.new_start_date_active,fnd_api.g_miss_date) THEN

6267: l_new_sys_header_rec.coterminate_day_month := l_hist_csr.new_coterminate_day_month;
6268: END IF;
6269: --
6270: IF NVL(l_hist_csr.old_start_date_active,fnd_api.g_miss_date) =
6271: NVL(l_hist_csr.new_start_date_active,fnd_api.g_miss_date) THEN
6272: l_old_sys_header_rec.start_date_active := NULL;
6273: l_new_sys_header_rec.start_date_active := NULL;
6274: ELSE
6275: l_old_sys_header_rec.start_date_active := l_hist_csr.old_start_date_active;

Line 6279: IF NVL(l_hist_csr.old_end_date_active,fnd_api.g_miss_date) =

6275: l_old_sys_header_rec.start_date_active := l_hist_csr.old_start_date_active;
6276: l_new_sys_header_rec.start_date_active := l_hist_csr.new_start_date_active;
6277: END IF;
6278: --
6279: IF NVL(l_hist_csr.old_end_date_active,fnd_api.g_miss_date) =
6280: NVL(l_hist_csr.new_end_date_active,fnd_api.g_miss_date) THEN
6281: l_old_sys_header_rec.end_date_active := NULL;
6282: l_new_sys_header_rec.end_date_active := NULL;
6283: ELSE

Line 6280: NVL(l_hist_csr.new_end_date_active,fnd_api.g_miss_date) THEN

6276: l_new_sys_header_rec.start_date_active := l_hist_csr.new_start_date_active;
6277: END IF;
6278: --
6279: IF NVL(l_hist_csr.old_end_date_active,fnd_api.g_miss_date) =
6280: NVL(l_hist_csr.new_end_date_active,fnd_api.g_miss_date) THEN
6281: l_old_sys_header_rec.end_date_active := NULL;
6282: l_new_sys_header_rec.end_date_active := NULL;
6283: ELSE
6284: l_old_sys_header_rec.end_date_active := l_hist_csr.old_end_date_active;

Line 6288: IF NVL(l_hist_csr.old_autocreated_from_system,fnd_api.g_miss_num) =

6284: l_old_sys_header_rec.end_date_active := l_hist_csr.old_end_date_active;
6285: l_new_sys_header_rec.end_date_active := l_hist_csr.new_end_date_active;
6286: END IF;
6287: --
6288: IF NVL(l_hist_csr.old_autocreated_from_system,fnd_api.g_miss_num) =
6289: NVL(l_hist_csr.new_autocreated_from_system,fnd_api.g_miss_num) THEN
6290: l_old_sys_header_rec.autocreated_from_system_id := NULL;
6291: l_new_sys_header_rec.autocreated_from_system_id := NULL;
6292: ELSE

Line 6289: NVL(l_hist_csr.new_autocreated_from_system,fnd_api.g_miss_num) THEN

6285: l_new_sys_header_rec.end_date_active := l_hist_csr.new_end_date_active;
6286: END IF;
6287: --
6288: IF NVL(l_hist_csr.old_autocreated_from_system,fnd_api.g_miss_num) =
6289: NVL(l_hist_csr.new_autocreated_from_system,fnd_api.g_miss_num) THEN
6290: l_old_sys_header_rec.autocreated_from_system_id := NULL;
6291: l_new_sys_header_rec.autocreated_from_system_id := NULL;
6292: ELSE
6293: l_old_sys_header_rec.autocreated_from_system_id := l_hist_csr.old_autocreated_from_system;

Line 6297: IF NVL(l_hist_csr.old_config_system_type,fnd_api.g_miss_char) =

6293: l_old_sys_header_rec.autocreated_from_system_id := l_hist_csr.old_autocreated_from_system;
6294: l_new_sys_header_rec.autocreated_from_system_id := l_hist_csr.new_autocreated_from_system;
6295: END IF;
6296: --
6297: IF NVL(l_hist_csr.old_config_system_type,fnd_api.g_miss_char) =
6298: NVL(l_hist_csr.new_config_system_type,fnd_api.g_miss_char) THEN
6299: l_old_sys_header_rec.config_system_type := NULL;
6300: l_new_sys_header_rec.config_system_type := NULL;
6301: ELSE

Line 6298: NVL(l_hist_csr.new_config_system_type,fnd_api.g_miss_char) THEN

6294: l_new_sys_header_rec.autocreated_from_system_id := l_hist_csr.new_autocreated_from_system;
6295: END IF;
6296: --
6297: IF NVL(l_hist_csr.old_config_system_type,fnd_api.g_miss_char) =
6298: NVL(l_hist_csr.new_config_system_type,fnd_api.g_miss_char) THEN
6299: l_old_sys_header_rec.config_system_type := NULL;
6300: l_new_sys_header_rec.config_system_type := NULL;
6301: ELSE
6302: l_old_sys_header_rec.config_system_type := l_hist_csr.old_config_system_type;

Line 6306: IF NVL(l_hist_csr.old_name,fnd_api.g_miss_char) =

6302: l_old_sys_header_rec.config_system_type := l_hist_csr.old_config_system_type;
6303: l_new_sys_header_rec.config_system_type := l_hist_csr.new_config_system_type;
6304: END IF;
6305: --
6306: IF NVL(l_hist_csr.old_name,fnd_api.g_miss_char) =
6307: NVL(l_hist_csr.new_name,fnd_api.g_miss_char) THEN
6308: l_old_sys_header_rec.name := NULL;
6309: l_new_sys_header_rec.name := NULL;
6310: ELSE

Line 6307: NVL(l_hist_csr.new_name,fnd_api.g_miss_char) THEN

6303: l_new_sys_header_rec.config_system_type := l_hist_csr.new_config_system_type;
6304: END IF;
6305: --
6306: IF NVL(l_hist_csr.old_name,fnd_api.g_miss_char) =
6307: NVL(l_hist_csr.new_name,fnd_api.g_miss_char) THEN
6308: l_old_sys_header_rec.name := NULL;
6309: l_new_sys_header_rec.name := NULL;
6310: ELSE
6311: l_old_sys_header_rec.name := l_hist_csr.old_name;

Line 6315: IF NVL(l_hist_csr.old_description,fnd_api.g_miss_char) =

6311: l_old_sys_header_rec.name := l_hist_csr.old_name;
6312: l_new_sys_header_rec.name := l_hist_csr.new_name;
6313: END IF;
6314: --
6315: IF NVL(l_hist_csr.old_description,fnd_api.g_miss_char) =
6316: NVL(l_hist_csr.new_description,fnd_api.g_miss_char) THEN
6317: l_old_sys_header_rec.description := NULL;
6318: l_new_sys_header_rec.description := NULL;
6319: ELSE

Line 6316: NVL(l_hist_csr.new_description,fnd_api.g_miss_char) THEN

6312: l_new_sys_header_rec.name := l_hist_csr.new_name;
6313: END IF;
6314: --
6315: IF NVL(l_hist_csr.old_description,fnd_api.g_miss_char) =
6316: NVL(l_hist_csr.new_description,fnd_api.g_miss_char) THEN
6317: l_old_sys_header_rec.description := NULL;
6318: l_new_sys_header_rec.description := NULL;
6319: ELSE
6320: l_old_sys_header_rec.description := l_hist_csr.old_description;

Line 6324: IF NVL(l_hist_csr.old_context,fnd_api.g_miss_char) =

6320: l_old_sys_header_rec.description := l_hist_csr.old_description;
6321: l_new_sys_header_rec.description := l_hist_csr.new_description;
6322: END IF;
6323: --
6324: IF NVL(l_hist_csr.old_context,fnd_api.g_miss_char) =
6325: NVL(l_hist_csr.new_context,fnd_api.g_miss_char) THEN
6326: l_old_sys_header_rec.context := NULL;
6327: l_new_sys_header_rec.context := NULL;
6328: ELSE

Line 6325: NVL(l_hist_csr.new_context,fnd_api.g_miss_char) THEN

6321: l_new_sys_header_rec.description := l_hist_csr.new_description;
6322: END IF;
6323: --
6324: IF NVL(l_hist_csr.old_context,fnd_api.g_miss_char) =
6325: NVL(l_hist_csr.new_context,fnd_api.g_miss_char) THEN
6326: l_old_sys_header_rec.context := NULL;
6327: l_new_sys_header_rec.context := NULL;
6328: ELSE
6329: l_old_sys_header_rec.context := l_hist_csr.old_context;

Line 6333: IF NVL(l_hist_csr.old_attribute1,fnd_api.g_miss_char) =

6329: l_old_sys_header_rec.context := l_hist_csr.old_context;
6330: l_new_sys_header_rec.context := l_hist_csr.new_context;
6331: END IF;
6332: --
6333: IF NVL(l_hist_csr.old_attribute1,fnd_api.g_miss_char) =
6334: NVL(l_hist_csr.new_attribute1,fnd_api.g_miss_char) THEN
6335: l_old_sys_header_rec.attribute1 := NULL;
6336: l_new_sys_header_rec.attribute1 := NULL;
6337: ELSE

Line 6334: NVL(l_hist_csr.new_attribute1,fnd_api.g_miss_char) THEN

6330: l_new_sys_header_rec.context := l_hist_csr.new_context;
6331: END IF;
6332: --
6333: IF NVL(l_hist_csr.old_attribute1,fnd_api.g_miss_char) =
6334: NVL(l_hist_csr.new_attribute1,fnd_api.g_miss_char) THEN
6335: l_old_sys_header_rec.attribute1 := NULL;
6336: l_new_sys_header_rec.attribute1 := NULL;
6337: ELSE
6338: l_old_sys_header_rec.attribute1 := l_hist_csr.old_attribute1;

Line 6342: IF NVL(l_hist_csr.old_attribute2,fnd_api.g_miss_char) =

6338: l_old_sys_header_rec.attribute1 := l_hist_csr.old_attribute1;
6339: l_new_sys_header_rec.attribute1 := l_hist_csr.new_attribute1;
6340: END IF;
6341: --
6342: IF NVL(l_hist_csr.old_attribute2,fnd_api.g_miss_char) =
6343: NVL(l_hist_csr.new_attribute2,fnd_api.g_miss_char) THEN
6344: l_old_sys_header_rec.attribute2 := NULL;
6345: l_new_sys_header_rec.attribute2 := NULL;
6346: ELSE

Line 6343: NVL(l_hist_csr.new_attribute2,fnd_api.g_miss_char) THEN

6339: l_new_sys_header_rec.attribute1 := l_hist_csr.new_attribute1;
6340: END IF;
6341: --
6342: IF NVL(l_hist_csr.old_attribute2,fnd_api.g_miss_char) =
6343: NVL(l_hist_csr.new_attribute2,fnd_api.g_miss_char) THEN
6344: l_old_sys_header_rec.attribute2 := NULL;
6345: l_new_sys_header_rec.attribute2 := NULL;
6346: ELSE
6347: l_old_sys_header_rec.attribute2 := l_hist_csr.old_attribute2;

Line 6351: IF NVL(l_hist_csr.old_attribute3,fnd_api.g_miss_char) =

6347: l_old_sys_header_rec.attribute2 := l_hist_csr.old_attribute2;
6348: l_new_sys_header_rec.attribute2 := l_hist_csr.new_attribute2;
6349: END IF;
6350: --
6351: IF NVL(l_hist_csr.old_attribute3,fnd_api.g_miss_char) =
6352: NVL(l_hist_csr.new_attribute3,fnd_api.g_miss_char) THEN
6353: l_old_sys_header_rec.attribute3 := NULL;
6354: l_new_sys_header_rec.attribute3 := NULL;
6355: ELSE

Line 6352: NVL(l_hist_csr.new_attribute3,fnd_api.g_miss_char) THEN

6348: l_new_sys_header_rec.attribute2 := l_hist_csr.new_attribute2;
6349: END IF;
6350: --
6351: IF NVL(l_hist_csr.old_attribute3,fnd_api.g_miss_char) =
6352: NVL(l_hist_csr.new_attribute3,fnd_api.g_miss_char) THEN
6353: l_old_sys_header_rec.attribute3 := NULL;
6354: l_new_sys_header_rec.attribute3 := NULL;
6355: ELSE
6356: l_old_sys_header_rec.attribute3 := l_hist_csr.old_attribute3;

Line 6360: IF NVL(l_hist_csr.old_attribute4,fnd_api.g_miss_char) =

6356: l_old_sys_header_rec.attribute3 := l_hist_csr.old_attribute3;
6357: l_new_sys_header_rec.attribute3 := l_hist_csr.new_attribute3;
6358: END IF;
6359: --
6360: IF NVL(l_hist_csr.old_attribute4,fnd_api.g_miss_char) =
6361: NVL(l_hist_csr.new_attribute4,fnd_api.g_miss_char) THEN
6362: l_old_sys_header_rec.attribute4 := NULL;
6363: l_new_sys_header_rec.attribute4 := NULL;
6364: ELSE

Line 6361: NVL(l_hist_csr.new_attribute4,fnd_api.g_miss_char) THEN

6357: l_new_sys_header_rec.attribute3 := l_hist_csr.new_attribute3;
6358: END IF;
6359: --
6360: IF NVL(l_hist_csr.old_attribute4,fnd_api.g_miss_char) =
6361: NVL(l_hist_csr.new_attribute4,fnd_api.g_miss_char) THEN
6362: l_old_sys_header_rec.attribute4 := NULL;
6363: l_new_sys_header_rec.attribute4 := NULL;
6364: ELSE
6365: l_old_sys_header_rec.attribute4 := l_hist_csr.old_attribute4;

Line 6369: IF NVL(l_hist_csr.old_attribute5,fnd_api.g_miss_char) =

6365: l_old_sys_header_rec.attribute4 := l_hist_csr.old_attribute4;
6366: l_new_sys_header_rec.attribute4 := l_hist_csr.new_attribute4;
6367: END IF;
6368: --
6369: IF NVL(l_hist_csr.old_attribute5,fnd_api.g_miss_char) =
6370: NVL(l_hist_csr.new_attribute5,fnd_api.g_miss_char) THEN
6371: l_old_sys_header_rec.attribute5 := NULL;
6372: l_new_sys_header_rec.attribute5 := NULL;
6373: ELSE

Line 6370: NVL(l_hist_csr.new_attribute5,fnd_api.g_miss_char) THEN

6366: l_new_sys_header_rec.attribute4 := l_hist_csr.new_attribute4;
6367: END IF;
6368: --
6369: IF NVL(l_hist_csr.old_attribute5,fnd_api.g_miss_char) =
6370: NVL(l_hist_csr.new_attribute5,fnd_api.g_miss_char) THEN
6371: l_old_sys_header_rec.attribute5 := NULL;
6372: l_new_sys_header_rec.attribute5 := NULL;
6373: ELSE
6374: l_old_sys_header_rec.attribute5 := l_hist_csr.old_attribute5;

Line 6378: IF NVL(l_hist_csr.old_attribute6,fnd_api.g_miss_char) =

6374: l_old_sys_header_rec.attribute5 := l_hist_csr.old_attribute5;
6375: l_new_sys_header_rec.attribute5 := l_hist_csr.new_attribute5;
6376: END IF;
6377: --
6378: IF NVL(l_hist_csr.old_attribute6,fnd_api.g_miss_char) =
6379: NVL(l_hist_csr.new_attribute6,fnd_api.g_miss_char) THEN
6380: l_old_sys_header_rec.attribute6 := NULL;
6381: l_new_sys_header_rec.attribute6 := NULL;
6382: ELSE

Line 6379: NVL(l_hist_csr.new_attribute6,fnd_api.g_miss_char) THEN

6375: l_new_sys_header_rec.attribute5 := l_hist_csr.new_attribute5;
6376: END IF;
6377: --
6378: IF NVL(l_hist_csr.old_attribute6,fnd_api.g_miss_char) =
6379: NVL(l_hist_csr.new_attribute6,fnd_api.g_miss_char) THEN
6380: l_old_sys_header_rec.attribute6 := NULL;
6381: l_new_sys_header_rec.attribute6 := NULL;
6382: ELSE
6383: l_old_sys_header_rec.attribute6 := l_hist_csr.old_attribute6;

Line 6387: IF NVL(l_hist_csr.old_attribute7,fnd_api.g_miss_char) =

6383: l_old_sys_header_rec.attribute6 := l_hist_csr.old_attribute6;
6384: l_new_sys_header_rec.attribute6 := l_hist_csr.new_attribute6;
6385: END IF;
6386: --
6387: IF NVL(l_hist_csr.old_attribute7,fnd_api.g_miss_char) =
6388: NVL(l_hist_csr.new_attribute7,fnd_api.g_miss_char) THEN
6389: l_old_sys_header_rec.attribute7 := NULL;
6390: l_new_sys_header_rec.attribute7 := NULL;
6391: ELSE

Line 6388: NVL(l_hist_csr.new_attribute7,fnd_api.g_miss_char) THEN

6384: l_new_sys_header_rec.attribute6 := l_hist_csr.new_attribute6;
6385: END IF;
6386: --
6387: IF NVL(l_hist_csr.old_attribute7,fnd_api.g_miss_char) =
6388: NVL(l_hist_csr.new_attribute7,fnd_api.g_miss_char) THEN
6389: l_old_sys_header_rec.attribute7 := NULL;
6390: l_new_sys_header_rec.attribute7 := NULL;
6391: ELSE
6392: l_old_sys_header_rec.attribute7 := l_hist_csr.old_attribute7;

Line 6396: IF NVL(l_hist_csr.old_attribute8,fnd_api.g_miss_char) =

6392: l_old_sys_header_rec.attribute7 := l_hist_csr.old_attribute7;
6393: l_new_sys_header_rec.attribute7 := l_hist_csr.new_attribute7;
6394: END IF;
6395: --
6396: IF NVL(l_hist_csr.old_attribute8,fnd_api.g_miss_char) =
6397: NVL(l_hist_csr.new_attribute8,fnd_api.g_miss_char) THEN
6398: l_old_sys_header_rec.attribute8 := NULL;
6399: l_new_sys_header_rec.attribute8 := NULL;
6400: ELSE

Line 6397: NVL(l_hist_csr.new_attribute8,fnd_api.g_miss_char) THEN

6393: l_new_sys_header_rec.attribute7 := l_hist_csr.new_attribute7;
6394: END IF;
6395: --
6396: IF NVL(l_hist_csr.old_attribute8,fnd_api.g_miss_char) =
6397: NVL(l_hist_csr.new_attribute8,fnd_api.g_miss_char) THEN
6398: l_old_sys_header_rec.attribute8 := NULL;
6399: l_new_sys_header_rec.attribute8 := NULL;
6400: ELSE
6401: l_old_sys_header_rec.attribute8 := l_hist_csr.old_attribute8;

Line 6405: IF NVL(l_hist_csr.old_attribute9,fnd_api.g_miss_char) =

6401: l_old_sys_header_rec.attribute8 := l_hist_csr.old_attribute8;
6402: l_new_sys_header_rec.attribute8 := l_hist_csr.new_attribute8;
6403: END IF;
6404: --
6405: IF NVL(l_hist_csr.old_attribute9,fnd_api.g_miss_char) =
6406: NVL(l_hist_csr.new_attribute9,fnd_api.g_miss_char) THEN
6407: l_old_sys_header_rec.attribute9 := NULL;
6408: l_new_sys_header_rec.attribute9 := NULL;
6409: ELSE

Line 6406: NVL(l_hist_csr.new_attribute9,fnd_api.g_miss_char) THEN

6402: l_new_sys_header_rec.attribute8 := l_hist_csr.new_attribute8;
6403: END IF;
6404: --
6405: IF NVL(l_hist_csr.old_attribute9,fnd_api.g_miss_char) =
6406: NVL(l_hist_csr.new_attribute9,fnd_api.g_miss_char) THEN
6407: l_old_sys_header_rec.attribute9 := NULL;
6408: l_new_sys_header_rec.attribute9 := NULL;
6409: ELSE
6410: l_old_sys_header_rec.attribute9 := l_hist_csr.old_attribute9;

Line 6414: IF NVL(l_hist_csr.old_attribute10,fnd_api.g_miss_char) =

6410: l_old_sys_header_rec.attribute9 := l_hist_csr.old_attribute9;
6411: l_new_sys_header_rec.attribute9 := l_hist_csr.new_attribute9;
6412: END IF;
6413: --
6414: IF NVL(l_hist_csr.old_attribute10,fnd_api.g_miss_char) =
6415: NVL(l_hist_csr.new_attribute10,fnd_api.g_miss_char) THEN
6416: l_old_sys_header_rec.attribute10 := NULL;
6417: l_new_sys_header_rec.attribute10 := NULL;
6418: ELSE

Line 6415: NVL(l_hist_csr.new_attribute10,fnd_api.g_miss_char) THEN

6411: l_new_sys_header_rec.attribute9 := l_hist_csr.new_attribute9;
6412: END IF;
6413: --
6414: IF NVL(l_hist_csr.old_attribute10,fnd_api.g_miss_char) =
6415: NVL(l_hist_csr.new_attribute10,fnd_api.g_miss_char) THEN
6416: l_old_sys_header_rec.attribute10 := NULL;
6417: l_new_sys_header_rec.attribute10 := NULL;
6418: ELSE
6419: l_old_sys_header_rec.attribute10 := l_hist_csr.old_attribute10;

Line 6423: IF NVL(l_hist_csr.old_attribute11,fnd_api.g_miss_char) =

6419: l_old_sys_header_rec.attribute10 := l_hist_csr.old_attribute10;
6420: l_new_sys_header_rec.attribute10 := l_hist_csr.new_attribute10;
6421: END IF;
6422: --
6423: IF NVL(l_hist_csr.old_attribute11,fnd_api.g_miss_char) =
6424: NVL(l_hist_csr.new_attribute11,fnd_api.g_miss_char) THEN
6425: l_old_sys_header_rec.attribute11 := NULL;
6426: l_new_sys_header_rec.attribute11 := NULL;
6427: ELSE

Line 6424: NVL(l_hist_csr.new_attribute11,fnd_api.g_miss_char) THEN

6420: l_new_sys_header_rec.attribute10 := l_hist_csr.new_attribute10;
6421: END IF;
6422: --
6423: IF NVL(l_hist_csr.old_attribute11,fnd_api.g_miss_char) =
6424: NVL(l_hist_csr.new_attribute11,fnd_api.g_miss_char) THEN
6425: l_old_sys_header_rec.attribute11 := NULL;
6426: l_new_sys_header_rec.attribute11 := NULL;
6427: ELSE
6428: l_old_sys_header_rec.attribute11 := l_hist_csr.old_attribute11;

Line 6432: IF NVL(l_hist_csr.old_attribute12,fnd_api.g_miss_char) =

6428: l_old_sys_header_rec.attribute11 := l_hist_csr.old_attribute11;
6429: l_new_sys_header_rec.attribute11 := l_hist_csr.new_attribute11;
6430: END IF;
6431: --
6432: IF NVL(l_hist_csr.old_attribute12,fnd_api.g_miss_char) =
6433: NVL(l_hist_csr.new_attribute12,fnd_api.g_miss_char) THEN
6434: l_old_sys_header_rec.attribute12 := NULL;
6435: l_new_sys_header_rec.attribute12 := NULL;
6436: ELSE

Line 6433: NVL(l_hist_csr.new_attribute12,fnd_api.g_miss_char) THEN

6429: l_new_sys_header_rec.attribute11 := l_hist_csr.new_attribute11;
6430: END IF;
6431: --
6432: IF NVL(l_hist_csr.old_attribute12,fnd_api.g_miss_char) =
6433: NVL(l_hist_csr.new_attribute12,fnd_api.g_miss_char) THEN
6434: l_old_sys_header_rec.attribute12 := NULL;
6435: l_new_sys_header_rec.attribute12 := NULL;
6436: ELSE
6437: l_old_sys_header_rec.attribute12 := l_hist_csr.old_attribute12;

Line 6441: IF NVL(l_hist_csr.old_attribute13,fnd_api.g_miss_char) =

6437: l_old_sys_header_rec.attribute12 := l_hist_csr.old_attribute12;
6438: l_new_sys_header_rec.attribute12 := l_hist_csr.new_attribute12;
6439: END IF;
6440: --
6441: IF NVL(l_hist_csr.old_attribute13,fnd_api.g_miss_char) =
6442: NVL(l_hist_csr.new_attribute13,fnd_api.g_miss_char) THEN
6443: l_old_sys_header_rec.attribute13 := NULL;
6444: l_new_sys_header_rec.attribute13 := NULL;
6445: ELSE

Line 6442: NVL(l_hist_csr.new_attribute13,fnd_api.g_miss_char) THEN

6438: l_new_sys_header_rec.attribute12 := l_hist_csr.new_attribute12;
6439: END IF;
6440: --
6441: IF NVL(l_hist_csr.old_attribute13,fnd_api.g_miss_char) =
6442: NVL(l_hist_csr.new_attribute13,fnd_api.g_miss_char) THEN
6443: l_old_sys_header_rec.attribute13 := NULL;
6444: l_new_sys_header_rec.attribute13 := NULL;
6445: ELSE
6446: l_old_sys_header_rec.attribute13 := l_hist_csr.old_attribute13;

Line 6450: IF NVL(l_hist_csr.old_attribute14,fnd_api.g_miss_char) =

6446: l_old_sys_header_rec.attribute13 := l_hist_csr.old_attribute13;
6447: l_new_sys_header_rec.attribute13 := l_hist_csr.new_attribute13;
6448: END IF;
6449: --
6450: IF NVL(l_hist_csr.old_attribute14,fnd_api.g_miss_char) =
6451: NVL(l_hist_csr.new_attribute14,fnd_api.g_miss_char) THEN
6452: l_old_sys_header_rec.attribute14 := NULL;
6453: l_new_sys_header_rec.attribute14 := NULL;
6454: ELSE

Line 6451: NVL(l_hist_csr.new_attribute14,fnd_api.g_miss_char) THEN

6447: l_new_sys_header_rec.attribute13 := l_hist_csr.new_attribute13;
6448: END IF;
6449: --
6450: IF NVL(l_hist_csr.old_attribute14,fnd_api.g_miss_char) =
6451: NVL(l_hist_csr.new_attribute14,fnd_api.g_miss_char) THEN
6452: l_old_sys_header_rec.attribute14 := NULL;
6453: l_new_sys_header_rec.attribute14 := NULL;
6454: ELSE
6455: l_old_sys_header_rec.attribute14 := l_hist_csr.old_attribute14;

Line 6459: IF NVL(l_hist_csr.old_attribute15,fnd_api.g_miss_char) =

6455: l_old_sys_header_rec.attribute14 := l_hist_csr.old_attribute14;
6456: l_new_sys_header_rec.attribute14 := l_hist_csr.new_attribute14;
6457: END IF;
6458: --
6459: IF NVL(l_hist_csr.old_attribute15,fnd_api.g_miss_char) =
6460: NVL(l_hist_csr.new_attribute15,fnd_api.g_miss_char) THEN
6461: l_old_sys_header_rec.attribute15 := NULL;
6462: l_new_sys_header_rec.attribute15 := NULL;
6463: ELSE

Line 6460: NVL(l_hist_csr.new_attribute15,fnd_api.g_miss_char) THEN

6456: l_new_sys_header_rec.attribute14 := l_hist_csr.new_attribute14;
6457: END IF;
6458: --
6459: IF NVL(l_hist_csr.old_attribute15,fnd_api.g_miss_char) =
6460: NVL(l_hist_csr.new_attribute15,fnd_api.g_miss_char) THEN
6461: l_old_sys_header_rec.attribute15 := NULL;
6462: l_new_sys_header_rec.attribute15 := NULL;
6463: ELSE
6464: l_old_sys_header_rec.attribute15 := l_hist_csr.old_attribute15;

Line 6468: IF NVL(l_hist_csr.old_operating_unit_id,fnd_api.g_miss_num) =

6464: l_old_sys_header_rec.attribute15 := l_hist_csr.old_attribute15;
6465: l_new_sys_header_rec.attribute15 := l_hist_csr.new_attribute15;
6466: END IF;
6467: --
6468: IF NVL(l_hist_csr.old_operating_unit_id,fnd_api.g_miss_num) =
6469: NVL(l_hist_csr.new_operating_unit_id,fnd_api.g_miss_num) THEN
6470: l_old_sys_header_rec.operating_unit_id := NULL;
6471: l_new_sys_header_rec.operating_unit_id := NULL;
6472: ELSE

Line 6469: NVL(l_hist_csr.new_operating_unit_id,fnd_api.g_miss_num) THEN

6465: l_new_sys_header_rec.attribute15 := l_hist_csr.new_attribute15;
6466: END IF;
6467: --
6468: IF NVL(l_hist_csr.old_operating_unit_id,fnd_api.g_miss_num) =
6469: NVL(l_hist_csr.new_operating_unit_id,fnd_api.g_miss_num) THEN
6470: l_old_sys_header_rec.operating_unit_id := NULL;
6471: l_new_sys_header_rec.operating_unit_id := NULL;
6472: ELSE
6473: l_old_sys_header_rec.operating_unit_id := l_hist_csr.old_operating_unit_id;

Line 6487: IF NVL(l_old_sys_header_rec.name,fnd_api.g_miss_char) =

6483: csi_systems_pvt.Resolve_ID_Columns(p_system_header_tbl => l_new_sys_header_tbl);
6484: l_new_sys_header_rec := l_new_sys_header_tbl(1);
6485: --
6486: -- Check for the Resolved Column values and assign NULL appropriately
6487: IF NVL(l_old_sys_header_rec.name,fnd_api.g_miss_char) =
6488: NVL(l_new_sys_header_rec.name,fnd_api.g_miss_char) THEN
6489: l_old_sys_header_rec.name := NULL;
6490: l_new_sys_header_rec.name := NULL;
6491: END IF;

Line 6488: NVL(l_new_sys_header_rec.name,fnd_api.g_miss_char) THEN

6484: l_new_sys_header_rec := l_new_sys_header_tbl(1);
6485: --
6486: -- Check for the Resolved Column values and assign NULL appropriately
6487: IF NVL(l_old_sys_header_rec.name,fnd_api.g_miss_char) =
6488: NVL(l_new_sys_header_rec.name,fnd_api.g_miss_char) THEN
6489: l_old_sys_header_rec.name := NULL;
6490: l_new_sys_header_rec.name := NULL;
6491: END IF;
6492: --

Line 6493: IF NVL(l_old_sys_header_rec.description,fnd_api.g_miss_char) =

6489: l_old_sys_header_rec.name := NULL;
6490: l_new_sys_header_rec.name := NULL;
6491: END IF;
6492: --
6493: IF NVL(l_old_sys_header_rec.description,fnd_api.g_miss_char) =
6494: NVL(l_new_sys_header_rec.description,fnd_api.g_miss_char) THEN
6495: l_old_sys_header_rec.description := NULL;
6496: l_new_sys_header_rec.description := NULL;
6497: END IF;

Line 6494: NVL(l_new_sys_header_rec.description,fnd_api.g_miss_char) THEN

6490: l_new_sys_header_rec.name := NULL;
6491: END IF;
6492: --
6493: IF NVL(l_old_sys_header_rec.description,fnd_api.g_miss_char) =
6494: NVL(l_new_sys_header_rec.description,fnd_api.g_miss_char) THEN
6495: l_old_sys_header_rec.description := NULL;
6496: l_new_sys_header_rec.description := NULL;
6497: END IF;
6498: --

Line 6663: IF FND_API.To_Boolean( p_commit ) THEN

6659: END LOOP;
6660: -- End of API body
6661:
6662: -- Standard check of p_commit.
6663: IF FND_API.To_Boolean( p_commit ) THEN
6664: COMMIT WORK;
6665: END IF;
6666:
6667: /***** srramakr commented for bug # 3304439

Line 6681: X_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6677: (p_count => x_msg_count ,
6678: p_data => x_msg_data );
6679: EXCEPTION
6680: WHEN OTHERS THEN
6681: X_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6682: IF fnd_api.to_boolean(p_commit) THEN
6683: ROLLBACK TO get_system_history;
6684: END IF;
6685: IF FND_MSG_PUB.Check_Msg_Level

Line 6682: IF fnd_api.to_boolean(p_commit) THEN

6678: p_data => x_msg_data );
6679: EXCEPTION
6680: WHEN OTHERS THEN
6681: X_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6682: IF fnd_api.to_boolean(p_commit) THEN
6683: ROLLBACK TO get_system_history;
6684: END IF;
6685: IF FND_MSG_PUB.Check_Msg_Level
6686: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)