1 PACKAGE hr_loc_ins AUTHID CURRENT_USER AS
2 /* $Header: hrlocrhi.pkh 120.1 2005/07/18 06:20:20 bshukla noship $ */
3 -- ----------------------------------------------------------------------------
4 -- |------------------------< set_base_key_value >----------------------------|
5 -- ----------------------------------------------------------------------------
6 -- {Start of Comments}
7 -- Description:
8 -- This procedure is called to register the next ID value from the database
9 -- sequence.
10 --
11 -- Prerequisites:
12 --
13 -- In Parameters:
14 -- Primary Key
15 --
16 -- Post Success:
17 --
18 -- Post Failure:
19 --
20 -- Developer Implementation Notes:
21 -- None.
22 --
23 -- Access Status:
24 -- Internal Development Use Only.
25 --
26 -- {End of Comments}
27 -- ----------------------------------------------------------------------------
28 procedure set_base_key_value
29 (p_location_id in number);
30 --
31 --
32 -- ----------------------------------------------------------------------------
33 -- |---------------------------------< ins >----------------------------------|
34 -- ----------------------------------------------------------------------------
35 -- {Start Of Comments}
36 --
37 -- Description:
38 -- This procedure is the record interface for the insert process
39 -- for the specified entity. The role of this process is to insert a fully
40 -- validated row, into the HR schema passing back to the calling process,
41 -- any system generated values (e.g. primary and object version number
42 -- attributes). This process is the main backbone of the ins
43 -- process. The processing of this procedure is as follows:
44 -- 1) The controlling validation process insert_validate is executed
45 -- which will execute all private and public validation business rule
46 -- processes.
47 -- 2) The pre_insert business process is then executed which enables any
48 -- logic to be processed before the insert dml process is executed.
49 -- 3) The insert_dml process will physical perform the insert dml into the
50 -- specified entity.
51 -- 4) The post_insert business process is then executed which enables any
52 -- logic to be processed after the insert dml process.
53 --
54 -- Prerequisites:
55 -- The main parameters to the this process have to be in the record
56 -- format.
57 --
58 -- In Parameters:
59 --
60 -- Post Success:
61 -- A fully validated row will be inserted into the specified entity
62 -- without being committed.
63 --
64 -- Post Failure:
65 -- If an error has occurred, an error message will be supplied with the work
66 -- rolled back.
67 --
68 -- Developer Implementation Notes:
69 -- None.
70 --
71 -- Access Status:
72 -- Internal Development Use Only.
73 --
74 -- {End Of Comments}
75 -- ----------------------------------------------------------------------------
76 PROCEDURE ins
77 (
78 p_rec IN OUT NOCOPY hr_loc_shd.g_rec_type
79 ,p_effective_date IN DATE
80 ,p_operating_unit_id IN NUMBER
81 );
82 --
83 -- ----------------------------------------------------------------------------
84 -- |---------------------------------< ins >----------------------------------|
85 -- ----------------------------------------------------------------------------
86 -- {Start Of Comments}
87 --
88 -- Description:
89 -- This procedure is the attribute interface for the insert
90 -- process for the specified entity and is the outermost layer. The role
91 -- of this process is to insert a fully validated row into the HR schema
92 -- passing back to the calling process, any system generated values
93 -- (e.g. object version number attributes).The processing of this
94 -- procedure is as follows:
95 -- 1) The attributes are converted into a local record structure by
96 -- calling the convert_args function.
97 -- 2) After the conversion has taken place, the corresponding record ins
98 -- interface process is executed.
99 -- 3) OUT parameters are then set to their corresponding record attributes.
100 --
101 -- Prerequisites:
102 --
103 -- In Parameters:
104 --
105 -- Post Success:
106 -- A fully validated row will be inserted for the specified entity
107 -- without being committed.
108 --
109 -- Post Failure:
110 -- If an error has occurred, an error message will be supplied with the work
111 -- rolled back.
112 --
113 -- Developer Implementation Notes:
114 -- None.
115 --
116 -- Access Status:
117 -- Internal Development Use Only.
118 --
119 -- {End Of Comments}
120 -- ----------------------------------------------------------------------------
121 PROCEDURE ins
122 (
123 p_effective_date IN DATE,
124 p_location_id OUT NOCOPY NUMBER,
125 p_object_version_number OUT NOCOPY NUMBER,
126 p_location_code IN VARCHAR2,
127 p_timezone_code IN VARCHAR2 DEFAULT NULL,
128 p_address_line_1 IN VARCHAR2 DEFAULT NULL,
129 p_address_line_2 IN VARCHAR2 DEFAULT NULL,
130 p_address_line_3 IN VARCHAR2 DEFAULT NULL,
131 p_bill_to_site_flag IN VARCHAR2 DEFAULT 'Y',
132 p_country IN VARCHAR2 DEFAULT NULL,
133 p_description IN VARCHAR2 DEFAULT NULL,
134 p_designated_receiver_id IN NUMBER DEFAULT NULL,
135 p_in_organization_flag IN VARCHAR2 DEFAULT 'Y',
136 p_inactive_date IN DATE DEFAULT NULL,
137 p_operating_unit_id IN NUMBER DEFAULT NULL,
138 p_inventory_organization_id IN NUMBER DEFAULT NULL,
139 p_office_site_flag IN VARCHAR2 DEFAULT 'Y',
140 p_postal_code IN VARCHAR2 DEFAULT NULL,
141 p_receiving_site_flag IN VARCHAR2 DEFAULT 'Y',
142 p_region_1 IN VARCHAR2 DEFAULT NULL,
143 p_region_2 IN VARCHAR2 DEFAULT NULL,
144 p_region_3 IN VARCHAR2 DEFAULT NULL,
145 p_ship_to_location_id IN NUMBER DEFAULT NULL,
146 p_ship_to_site_flag IN VARCHAR2 DEFAULT 'Y',
147 p_style IN VARCHAR2 DEFAULT NULL,
148 p_tax_name IN VARCHAR2 DEFAULT NULL,
149 p_telephone_number_1 IN VARCHAR2 DEFAULT NULL,
150 p_telephone_number_2 IN VARCHAR2 DEFAULT NULL,
151 p_telephone_number_3 IN VARCHAR2 DEFAULT NULL,
152 p_town_or_city IN VARCHAR2 DEFAULT NULL,
153 p_loc_information13 IN VARCHAR2 DEFAULT NULL,
154 p_loc_information14 IN VARCHAR2 DEFAULT NULL,
155 p_loc_information15 IN VARCHAR2 DEFAULT NULL,
156 p_loc_information16 IN VARCHAR2 DEFAULT NULL,
157 p_loc_information17 IN VARCHAR2 DEFAULT NULL,
158 p_loc_information18 IN VARCHAR2 DEFAULT NULL,
159 p_loc_information19 IN VARCHAR2 DEFAULT NULL,
160 p_loc_information20 IN VARCHAR2 DEFAULT NULL,
161 p_attribute_category IN VARCHAR2 DEFAULT NULL,
162 p_attribute1 IN VARCHAR2 DEFAULT NULL,
163 p_attribute2 IN VARCHAR2 DEFAULT NULL,
164 p_attribute3 IN VARCHAR2 DEFAULT NULL,
165 p_attribute4 IN VARCHAR2 DEFAULT NULL,
166 p_attribute5 IN VARCHAR2 DEFAULT NULL,
167 p_attribute6 IN VARCHAR2 DEFAULT NULL,
168 p_attribute7 IN VARCHAR2 DEFAULT NULL,
169 p_attribute8 IN VARCHAR2 DEFAULT NULL,
170 p_attribute9 IN VARCHAR2 DEFAULT NULL,
171 p_attribute10 IN VARCHAR2 DEFAULT NULL,
172 p_attribute11 IN VARCHAR2 DEFAULT NULL,
173 p_attribute12 IN VARCHAR2 DEFAULT NULL,
174 p_attribute13 IN VARCHAR2 DEFAULT NULL,
175 p_attribute14 IN VARCHAR2 DEFAULT NULL,
176 p_attribute15 IN VARCHAR2 DEFAULT NULL,
177 p_attribute16 IN VARCHAR2 DEFAULT NULL,
178 p_attribute17 IN VARCHAR2 DEFAULT NULL,
179 p_attribute18 IN VARCHAR2 DEFAULT NULL,
180 p_attribute19 IN VARCHAR2 DEFAULT NULL,
181 p_attribute20 IN VARCHAR2 DEFAULT NULL,
182 p_global_attribute_category IN VARCHAR2 DEFAULT NULL,
183 p_global_attribute1 IN VARCHAR2 DEFAULT NULL,
184 p_global_attribute2 IN VARCHAR2 DEFAULT NULL,
185 p_global_attribute3 IN VARCHAR2 DEFAULT NULL,
186 p_global_attribute4 IN VARCHAR2 DEFAULT NULL,
187 p_global_attribute5 IN VARCHAR2 DEFAULT NULL,
188 p_global_attribute6 IN VARCHAR2 DEFAULT NULL,
189 p_global_attribute7 IN VARCHAR2 DEFAULT NULL,
190 p_global_attribute8 IN VARCHAR2 DEFAULT NULL,
191 p_global_attribute9 IN VARCHAR2 DEFAULT NULL,
192 p_global_attribute10 IN VARCHAR2 DEFAULT NULL,
193 p_global_attribute11 IN VARCHAR2 DEFAULT NULL,
194 p_global_attribute12 IN VARCHAR2 DEFAULT NULL,
195 p_global_attribute13 IN VARCHAR2 DEFAULT NULL,
196 p_global_attribute14 IN VARCHAR2 DEFAULT NULL,
197 p_global_attribute15 IN VARCHAR2 DEFAULT NULL,
198 p_global_attribute16 IN VARCHAR2 DEFAULT NULL,
199 p_global_attribute17 IN VARCHAR2 DEFAULT NULL,
200 p_global_attribute18 IN VARCHAR2 DEFAULT NULL,
201 p_global_attribute19 IN VARCHAR2 DEFAULT NULL,
202 p_global_attribute20 IN VARCHAR2 DEFAULT NULL,
203 p_legal_address_flag IN VARCHAR2 DEFAULT 'N',
204 p_tp_header_id IN NUMBER DEFAULT NULL,
205 p_ece_tp_location_code IN VARCHAR2 DEFAULT NULL,
206 p_business_group_id IN NUMBER DEFAULT NULL
207 );
208 --
209 END hr_loc_ins;