13: TYPE task_rec_type IS RECORD (
14: ID csf_ext_locations.csf_ext_location_id%TYPE,
15: task_id jtf_tasks_b.task_id%TYPE,
16: task_number jtf_tasks_b.task_number%TYPE,
17: location_id hz_locations.location_id%TYPE,
18: address_style hz_locations.address_style%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
14: ID csf_ext_locations.csf_ext_location_id%TYPE,
15: task_id jtf_tasks_b.task_id%TYPE,
16: task_number jtf_tasks_b.task_number%TYPE,
17: location_id hz_locations.location_id%TYPE,
18: address_style hz_locations.address_style%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
15: task_id jtf_tasks_b.task_id%TYPE,
16: task_number jtf_tasks_b.task_number%TYPE,
17: location_id hz_locations.location_id%TYPE,
18: address_style hz_locations.address_style%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
16: task_number jtf_tasks_b.task_number%TYPE,
17: location_id hz_locations.location_id%TYPE,
18: address_style hz_locations.address_style%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
17: location_id hz_locations.location_id%TYPE,
18: address_style hz_locations.address_style%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
18: address_style hz_locations.address_style%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
19: address1 hz_locations.address1%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
20: address2 hz_locations.address2%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
21: address3 hz_locations.address3%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
29: short_description hz_locations.short_description%TYPE,
22: address4 hz_locations.address4%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
29: short_description hz_locations.short_description%TYPE,
30: description hz_locations.description%TYPE,
23: postal_code hz_locations.postal_code%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
29: short_description hz_locations.short_description%TYPE,
30: description hz_locations.description%TYPE,
31: validated_flag csf_ext_locations.validated_flag%TYPE,
24: city hz_locations.city%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
29: short_description hz_locations.short_description%TYPE,
30: description hz_locations.description%TYPE,
31: validated_flag csf_ext_locations.validated_flag%TYPE,
32: override_flag csf_ext_locations.override_flag%TYPE,
25: county hz_locations.county%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
29: short_description hz_locations.short_description%TYPE,
30: description hz_locations.description%TYPE,
31: validated_flag csf_ext_locations.validated_flag%TYPE,
32: override_flag csf_ext_locations.override_flag%TYPE,
33: log_detail_short csf_ext_locations.log_detail_short%TYPE,
26: state hz_locations.state%TYPE,
27: province hz_locations.province%TYPE,
28: country hz_locations.country%TYPE,
29: short_description hz_locations.short_description%TYPE,
30: description hz_locations.description%TYPE,
31: validated_flag csf_ext_locations.validated_flag%TYPE,
32: override_flag csf_ext_locations.override_flag%TYPE,
33: log_detail_short csf_ext_locations.log_detail_short%TYPE,
34: log_detail_long csf_ext_locations.log_detail_long%TYPE,
32: override_flag csf_ext_locations.override_flag%TYPE,
33: log_detail_short csf_ext_locations.log_detail_short%TYPE,
34: log_detail_long csf_ext_locations.log_detail_long%TYPE,
35: country_code VARCHAR2 (30),
36: timezone_id hz_locations.timezone_id%TYPE
37: );
38:
39: TYPE task_rec_tbl_type IS TABLE OF task_rec_type
40: INDEX BY BINARY_INTEGER;
47: p_end_date in varchar2 default null,
48: p_unstamped_only IN VARCHAR2 DEFAULT 'Yes'
49: );
50:
51: -- This procedure is used to retrieve data from the hz_locations table.
52: PROCEDURE retrieve_data (
53: p_api_version IN NUMBER,
54: p_init_msg_list IN VARCHAR2,
55: p_commit IN VARCHAR2,
68: p_api_version IN NUMBER,
69: p_init_msg_list IN VARCHAR2,
70: p_commit IN VARCHAR2,
71: p_validation_level IN NUMBER,
72: p_location_id IN hz_locations.location_id%TYPE,
73: x_locus OUT NOCOPY hz_locations.geometry%TYPE,
74: x_return_status OUT NOCOPY VARCHAR2,
75: x_msg_count OUT NOCOPY NUMBER,
76: x_msg_data OUT NOCOPY VARCHAR2
69: p_init_msg_list IN VARCHAR2,
70: p_commit IN VARCHAR2,
71: p_validation_level IN NUMBER,
72: p_location_id IN hz_locations.location_id%TYPE,
73: x_locus OUT NOCOPY hz_locations.geometry%TYPE,
74: x_return_status OUT NOCOPY VARCHAR2,
75: x_msg_count OUT NOCOPY NUMBER,
76: x_msg_data OUT NOCOPY VARCHAR2
77: );
85: p_api_version IN NUMBER,
86: p_init_msg_list IN VARCHAR2,
87: p_commit IN VARCHAR2,
88: p_validation_level IN NUMBER,
89: p_locus IN hz_locations.geometry%TYPE,
90: x_result OUT NOCOPY VARCHAR2,
91: x_return_status OUT NOCOPY VARCHAR2,
92: x_msg_count OUT NOCOPY NUMBER,
93: x_msg_data OUT NOCOPY VARCHAR2
137: p_init_msg_list IN VARCHAR2,
138: p_commit IN VARCHAR2,
139: p_validation_level IN NUMBER,
140: p_invalid_task_id IN jtf_tasks_b.task_id%TYPE,
141: p_location_id IN hz_locations.location_id%TYPE,
142: p_address1 IN hz_locations.address1%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
138: p_commit IN VARCHAR2,
139: p_validation_level IN NUMBER,
140: p_invalid_task_id IN jtf_tasks_b.task_id%TYPE,
141: p_location_id IN hz_locations.location_id%TYPE,
142: p_address1 IN hz_locations.address1%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
139: p_validation_level IN NUMBER,
140: p_invalid_task_id IN jtf_tasks_b.task_id%TYPE,
141: p_location_id IN hz_locations.location_id%TYPE,
142: p_address1 IN hz_locations.address1%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
140: p_invalid_task_id IN jtf_tasks_b.task_id%TYPE,
141: p_location_id IN hz_locations.location_id%TYPE,
142: p_address1 IN hz_locations.address1%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
141: p_location_id IN hz_locations.location_id%TYPE,
142: p_address1 IN hz_locations.address1%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
142: p_address1 IN hz_locations.address1%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
143: p_address2 IN hz_locations.address2%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
151: p_country IN hz_locations.country%TYPE,
144: p_address3 IN hz_locations.address3%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
151: p_country IN hz_locations.country%TYPE,
152: p_timezone_id IN hz_locations.timezone_id%TYPE,
145: p_address4 IN hz_locations.address4%TYPE,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
151: p_country IN hz_locations.country%TYPE,
152: p_timezone_id IN hz_locations.timezone_id%TYPE,
153: x_result OUT NOCOPY VARCHAR2,
146: p_city IN hz_locations.city%TYPE,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
151: p_country IN hz_locations.country%TYPE,
152: p_timezone_id IN hz_locations.timezone_id%TYPE,
153: x_result OUT NOCOPY VARCHAR2,
154: x_return_status OUT NOCOPY VARCHAR2,
147: p_postal_code IN hz_locations.postal_code%TYPE,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
151: p_country IN hz_locations.country%TYPE,
152: p_timezone_id IN hz_locations.timezone_id%TYPE,
153: x_result OUT NOCOPY VARCHAR2,
154: x_return_status OUT NOCOPY VARCHAR2,
155: x_msg_count OUT NOCOPY NUMBER,
148: p_state IN hz_locations.state%TYPE,
149: p_province IN hz_locations.province%TYPE,
150: p_county IN hz_locations.county%TYPE,
151: p_country IN hz_locations.country%TYPE,
152: p_timezone_id IN hz_locations.timezone_id%TYPE,
153: x_result OUT NOCOPY VARCHAR2,
154: x_return_status OUT NOCOPY VARCHAR2,
155: x_msg_count OUT NOCOPY NUMBER,
156: x_msg_data OUT NOCOPY VARCHAR2
165: p_api_version IN NUMBER,
166: p_init_msg_list IN VARCHAR2,
167: p_commit IN VARCHAR2,
168: p_validation_level IN NUMBER,
169: p_location_id IN hz_locations.location_id%TYPE,
170: p_address1 IN hz_locations.address1%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
166: p_init_msg_list IN VARCHAR2,
167: p_commit IN VARCHAR2,
168: p_validation_level IN NUMBER,
169: p_location_id IN hz_locations.location_id%TYPE,
170: p_address1 IN hz_locations.address1%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
167: p_commit IN VARCHAR2,
168: p_validation_level IN NUMBER,
169: p_location_id IN hz_locations.location_id%TYPE,
170: p_address1 IN hz_locations.address1%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
168: p_validation_level IN NUMBER,
169: p_location_id IN hz_locations.location_id%TYPE,
170: p_address1 IN hz_locations.address1%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
169: p_location_id IN hz_locations.location_id%TYPE,
170: p_address1 IN hz_locations.address1%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
170: p_address1 IN hz_locations.address1%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
178: p_county IN hz_locations.county%TYPE,
171: p_address2 IN hz_locations.address2%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
178: p_county IN hz_locations.county%TYPE,
179: p_country IN hz_locations.country%TYPE,
172: p_address3 IN hz_locations.address3%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
178: p_county IN hz_locations.county%TYPE,
179: p_country IN hz_locations.country%TYPE,
180: p_validated_flag IN csf_ext_locations.validated_flag%TYPE,
173: p_address4 IN hz_locations.address4%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
178: p_county IN hz_locations.county%TYPE,
179: p_country IN hz_locations.country%TYPE,
180: p_validated_flag IN csf_ext_locations.validated_flag%TYPE,
181: p_override_flag IN csf_ext_locations.override_flag%TYPE,
174: p_city IN hz_locations.city%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
178: p_county IN hz_locations.county%TYPE,
179: p_country IN hz_locations.country%TYPE,
180: p_validated_flag IN csf_ext_locations.validated_flag%TYPE,
181: p_override_flag IN csf_ext_locations.override_flag%TYPE,
182: p_timezone_id IN hz_locations.timezone_id%TYPE,
175: p_postal_code IN hz_locations.postal_code%TYPE,
176: p_state IN hz_locations.state%TYPE,
177: p_province IN hz_locations.province%TYPE,
178: p_county IN hz_locations.county%TYPE,
179: p_country IN hz_locations.country%TYPE,
180: p_validated_flag IN csf_ext_locations.validated_flag%TYPE,
181: p_override_flag IN csf_ext_locations.override_flag%TYPE,
182: p_timezone_id IN hz_locations.timezone_id%TYPE,
183: x_return_status OUT NOCOPY VARCHAR2,
178: p_county IN hz_locations.county%TYPE,
179: p_country IN hz_locations.country%TYPE,
180: p_validated_flag IN csf_ext_locations.validated_flag%TYPE,
181: p_override_flag IN csf_ext_locations.override_flag%TYPE,
182: p_timezone_id IN hz_locations.timezone_id%TYPE,
183: x_return_status OUT NOCOPY VARCHAR2,
184: x_msg_count OUT NOCOPY NUMBER,
185: x_msg_data OUT NOCOPY VARCHAR2
186: );