1 package PA_PROJECT_PUB AUTHID DEFINER as
2 /* $Header: PAPMPRPS.pls 120.24.12010000.10 2008/12/12 11:10:28 kjai ship $ */
3 /*#
4 * This package contains the public APIs for project, task and deliverable information.
5 * @rep:scope public
6 * @rep:product PA
7 * @rep:lifecycle active
8 * @rep:displayname Project Definition
9 * @rep:compatibility S
10 * @rep:category BUSINESS_ENTITY PA_PROJECT
11 * @rep:doccd 120pjapi.pdf See the Oracle Projects API's, Client Extensions, and Open Interfaces Reference
12 */
13
14 /*
15 * p_mode constants (Duplicated from EGO_USER_ATTRS_DATA_PVT to avoid
16 * Spec dependency on EGO package)
17 * ----------------
18 * Possible values for p_mode parameter in Load_Extensible_Attribute(s)
19 * : the value of the p_mode parameter affects how these APIs treat the
20 * passed-in data.For example, passing G_CREATE_MODE will
21 * cause the API to execute an Insert statement on the extension table.
22 * As a more complicated example, consider an Attribute Group called
23 * 'Emp Info' with a 'Date Logged' Attribute and a 'Current Status'
24 * Attribute. The 'Date Logged' Attribute might well have a Minimum
25 * and Maximum value range of 'SYSDATE'. Thus, if G_CREATE_MODE were
26 * passed to Validate_Row, then the API would need to verify that the
27 * value of the 'Date Logged' Attribute was the Date on the day of that
28 * insertion. Say, however, that sometime later the bug status changes,
29 * and we want to update the extension table to reflect this. In this
30 * case, we wouldn't want Validate_Row to evaluate the 'Date Logged'
31 * Attribute as if it were just being inserted, so we'd pass either
32 * G_UPDATE_MODE or G_SYNC_MODE to Validate_Row so it would know the
33 * context in which it should apply the validation rules for the row.
34 * (G_SYNC_MODE instructs the API to determine for itself whether there
35 * exists a row in the extension table for the passed-in data. If such
36 * a row exists, then it is updated; if not, a row is created and the
37 * data are inserted into it.)
38 * If no value is passed for p_mode, G_SYNC_MODE is assumed. If an
39 * invalid value is passed for p_mode, such as G_DELETE_MODE on a row
40 * that doesn't exist, an error occurs.
41 */
42 G_CREATE_MODE CONSTANT VARCHAR2(10) := 'CREATE'; --4th
43 G_UPDATE_MODE CONSTANT VARCHAR2(10) := 'UPDATE'; --2nd
44 G_DELETE_MODE CONSTANT VARCHAR2(10) := 'DELETE'; --1st
45 G_SYNC_MODE CONSTANT VARCHAR2(10) := 'SYNC'; --3rd
46
47
48 --Package constant used for package version validation
49 G_API_VERSION_NUMBER CONSTANT NUMBER := 1.0;
50 -- Package variable to indicate whether some date checks in Update_task
51 -- need to be deferred until all tasks have been processed
52 G_ParChildTsk_chks_deferred VARCHAR2(1) := 'N';
53
54
55 --Locking exception
56 ROW_ALREADY_LOCKED EXCEPTION;
57 PRAGMA EXCEPTION_INIT(ROW_ALREADY_LOCKED, -54);
58
59 G_PROJECT_NUMBER_GEN_MODE VARCHAR2(30) := PA_PROJECT_UTILS.GetProjNumMode;
60 G_PROJECT_NUMBER_TYPE VARCHAR2(30) := PA_PROJECT_UTILS.GetProjNumType;
61
62 --bug 2738747
63 G_Published_version_exists VARCHAR2(1);
64 G_IS_WP_SEPARATE_FROM_FN VARCHAR2(1);
65 G_IS_WP_VERSIONING_ENABLED VARCHAR2(1);
66 --bug 2738747
67 G_WP_STR_EXISTS VARCHAR2(1);
68
69 -- 3700247 Added global variable
70 G_DLVR_STRUCTURE_ENABLED VARCHAR2(1) := NULL;
71
72 -- bug 4199694
73 G_FLOW_MODE VARCHAR2(30);
74 G_OP_VALIDATE_FLAG VARCHAR2(1);
75
76 -- 4096218 Changed param name from G_DELETED_TASK_VER_IDS_FROM_OP to G_DELETED_TASK_IDS_FROM_OP
77 G_DELETED_TASK_IDS_FROM_OP PA_NUM_1000_NUM := PA_NUM_1000_NUM();
78
79 --DHI ER , rtarway BUG 4413568
80 G_TASK_STR_UPDATE_MODE VARCHAR2(30) := NULL;
81
82 /*--The following variables are defined to support load_tasks and fetch_tasks apis.
83 TYPE pa_vc_1000_25 IS VARRAY(1000) OF VARCHAR2(25);
84 TYPE pa_vc_1000_20 IS VARRAY(1000) OF VARCHAR2(20);
85 TYPE pa_vc_1000_10 IS VARRAY(1000) OF VARCHAR2(10);
86 TYPE pa_vc_1000_150 IS VARRAY(1000) OF VARCHAR2(150);
87 TYPE pa_vc_1000_2000 IS VARRAY(1000) OF VARCHAR2(2000);
88 TYPE pa_num_1000_num IS VARRAY(1000) OF NUMBER;
89 TYPE pa_vc_1000_4000 IS VARRAY(1000) OF VARCHAR2(4000);
90 TYPE number_table IS VARRAY(10) OF NUMBER;
91 TYPE pa_date_1000_date IS VARRAY(1000) OF DATE;
92 */
93
94 --Record and table type definitions
95 --Project record type that is used to pass data to an API
96 --Added new parameters to the project_in_rec_type
97
98 TYPE project_in_rec_type IS RECORD
99 (pm_project_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
100 pa_project_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
101 pa_project_number VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
102 project_name VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
103 long_name VARCHAR2(240) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
104 created_from_project_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
105 carrying_out_organization_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
106 public_sector_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
107 project_status_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
108 description VARCHAR2(250) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
109 start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
110 completion_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
111 distribution_rule VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
112 customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
113 project_relationship_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
114 actual_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
115 actual_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
116 early_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
117 early_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
118 late_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
119 late_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
120 scheduled_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
121 scheduled_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
122 attribute_category VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
123 attribute1 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
124 attribute2 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
125 attribute3 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
126 attribute4 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
127 attribute5 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
128 attribute6 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
129 attribute7 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
130 attribute8 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
131 attribute9 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
132 attribute10 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
133 output_tax_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
134 retention_tax_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
135 project_currency_code VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
136 allow_cross_charge_flag VARCHAR2(1):= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
137 project_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
138 project_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
139 cc_process_labor_flag VARCHAR2(1):= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
140 labor_tp_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
141 labor_tp_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
142 cc_process_nl_flag VARCHAR2(1):= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
143 nl_tp_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
144 nl_tp_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
145 cc_tax_task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
146 role_list_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
147 work_type_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
148 calendar_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
149 location_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
150 probability_member_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
151 project_value NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
152 expected_approval_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
153 cost_job_group_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
154 bill_job_group_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
155 team_template_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
156 country_code VARCHAR2(250) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
157 region VARCHAR2(250) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
158 city VARCHAR2(250) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
159 emp_bill_rate_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
160 job_bill_rate_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM ,
161 --Sakthi MCB
162 invproc_currency_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
163 revproc_currency_code VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
164 project_bil_rate_date_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
165 project_bil_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
166 project_bil_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
167 project_bil_exchange_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
168 projfunc_currency_code VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
169 projfunc_bil_rate_date_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
170 projfunc_bil_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
171 projfunc_bil_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
172 projfunc_bil_exchange_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
173 funding_rate_date_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
174 funding_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
175 funding_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
176 funding_exchange_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
177 baseline_funding_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
178 multi_currency_billing_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
179 competence_match_wt NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
180 availability_match_wt NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
181 job_level_match_wt NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
182 enable_automated_search VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
183 search_min_availability NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
184 search_org_hier_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
185 search_starting_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
186 search_country_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
187 min_cand_score_reqd_for_nom NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
188 max_num_of_sys_nom_cand NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
189 non_lab_std_bill_rt_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
190 search_country_code VARCHAR2(2) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
191 inv_by_bill_trans_curr_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
192 projfunc_cost_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
193 projfunc_cost_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
194 --Sakthi Structure
195 assign_precedes_task VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
196 split_cost_from_workplan_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
197 split_cost_from_bill_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
198 --Sakthi Structure
199 --Advertisement
200 adv_action_set_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
201 start_adv_action_set_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
202 --Advertisement
203 --Project Setup
204 priority_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
205 --Project Setup
206 --Retention
207 retn_billing_inv_format_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
208 retn_accounting_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
209 --Retention
210 -- anlee opportunity changes
211 opp_value_currency_code VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
212 -- anlee
213 -- patchset K changes
214 revaluate_funding_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
215 include_gains_losses_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
216 security_level NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
217 labor_disc_reason_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
218 non_labor_disc_reason_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
219 --sramesh Code starts for bug 2802984
220 labor_schedule_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
221 labor_schedule_discount NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
222 non_labor_bill_rate_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
223 non_labor_schedule_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
224 non_labor_schedule_discount NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
225 rev_ind_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
226 inv_ind_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
227 rev_ind_sch_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
228 inv_ind_sch_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
229 labor_sch_type VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
230 non_labor_sch_type VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
231 --sramesh Code ends for bug 2802984
232 -- End of changes
233 --PA L changes -- bug 2872708
234 asset_allocation_method VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
235 capital_event_processing VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
236 cint_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
237 cint_eligible_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
238 cint_stop_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
239 --end PA L changes -- bug 2872708
240 -- crm changes
241 Bill_To_Customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
242 Ship_To_Customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
243 -- crm changes
244 -- PA L Changes 3010538
245 process_mode VARCHAR2(30) := 'ONLINE',
246 -- FP M changes begin (venkat)
250 enable_top_task_inv_mth_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
247 sys_program_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
248 allow_multi_program_rollup VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, -- Bug # 5072032.
249 enable_top_task_customer_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
251 projfunc_attr_for_ar_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
252 -- FP M changes end (venkat)
253 --These parameters are added for Bug 3911782
254 bill_to_address_id NUMBER (15) := null,
255 ship_to_address_id NUMBER (15) := NULL ,
256 --sunkalya:federal Bug#5511353
257 date_eff_funds_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
258 --sunkalya:federal Bug#5511353
259 ar_rec_notify_flag VARCHAR2(1) := 'N', -- 7508661 : EnC
260 auto_release_pwp_inv VARCHAR2(1) := 'Y' -- 7508661 : EnC
261 );
262
263 --Project record type that is used to pass data coming out of an API
264 TYPE project_out_rec_type IS RECORD
265 (pa_project_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
266 pa_project_number VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
267 return_status VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
268 );
269
270 -- Customer Record type created for Tracking bug to all users -- AA
271 TYPE customer_in_rec_type IS RECORD
272 ( customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
273 project_relationship_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
274 Bill_To_Customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
275 Ship_To_Customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
276 bill_to_address_id NUMBER (15) := null,
277 ship_to_address_id NUMBER (15) := null,
278 CONTACT_ID NUMBER (15) := null,
279 PROJECT_CONTACT_TYPE_CODE VARCHAR (30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
280 CUSTOMER_BILL_SPLIT NUMBER := NULL,
281 ALLOW_INV_USER_RATE_TYPE_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
282 INV_RATE_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
283 INV_RATE_TYPE VARCHAR (256) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, --bug 5554475
284 INV_CURRENCY_CODE VARCHAR (15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
285 INV_EXCHANGE_RATE NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
286 enable_top_task_cust_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
287 BILL_ANOTHER_PROJECT_FLAG VARCHAR (1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, --Added later for tracking 4153629
288 RECEIVER_TASK_ID NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Added later for tracking 4153629
289 );
290
291 TYPE customer_tbl_type IS TABLE OF customer_in_rec_type
292 INDEX BY BINARY_INTEGER;
293 /** changes end for tracking **/
294
295 TYPE project_role_rec_type IS RECORD
296 (person_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
297 project_role_type VARCHAR2(20) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
298 project_role_meaning VARCHAR2(20) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, -- Bug 6408593
299 start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
300 end_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
301 );
302 TYPE project_role_tbl_type IS TABLE OF project_role_rec_type
303 INDEX BY BINARY_INTEGER;
304
305 TYPE class_category_rec_type IS RECORD
306 (class_category VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
307 class_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
308 new_class_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, --5348726 added for bug#5294891
309 code_percentage NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
310 );
311 TYPE class_category_tbl_type IS TABLE OF class_category_rec_type
312 INDEX BY BINARY_INTEGER;
313
314 TYPE task_in_rec_type IS RECORD
315 (pm_task_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
316 pa_task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
317 task_name VARCHAR2(240) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, -- Bug 6193314 Changed to 240 from 20
318 long_task_name VARCHAR2(240) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
319 pa_task_number VARCHAR2(100) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, -- Bug 6193314 Changed to 100 from 25
320 task_description VARCHAR2(250) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
321 task_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
322 task_completion_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
323 pm_parent_task_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
324 pa_parent_task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
325 address_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
326 carrying_out_organization_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
327 service_type_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
328 task_manager_person_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
329 billable_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
330 chargeable_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
331 ready_to_bill_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
332 ready_to_distribute_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
333 limit_to_txn_controls_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
337 labor_schedule_discount NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
334 labor_bill_rate_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
335 labor_std_bill_rate_schdl VARCHAR2(20) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
336 labor_schedule_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
338 non_labor_bill_rate_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
339 non_labor_std_bill_rate_schdl VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
340 non_labor_schedule_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
341 non_labor_schedule_discount NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
342 labor_cost_multiplier_name VARCHAR2(20) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
343 cost_ind_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
344 rev_ind_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
345 inv_ind_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
346 cost_ind_sch_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
347 rev_ind_sch_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
348 inv_ind_sch_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
349 labor_sch_type VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
350 non_labor_sch_type VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
351 actual_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
352 actual_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
353 early_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
354 early_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
355 late_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
356 late_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
357 scheduled_start_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
358 scheduled_finish_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
359 tasks_dff VARCHAR2(1) := 'N', --bug 6153503
360 attribute_category VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
361 attribute1 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
362 attribute2 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
363 attribute3 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
364 attribute4 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
365 attribute5 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
366 attribute6 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
367 attribute7 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
368 attribute8 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
369 attribute9 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
370 attribute10 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
371 attribute11 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,--bug 6153503
372 attribute12 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,--bug 6153503
373 attribute13 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,--bug 6153503
374 attribute14 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,--bug 6153503
375 attribute15 VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,--bug 6153503
376 allow_cross_charge_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
377 project_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
378 project_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
379 cc_process_labor_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
380 labor_tp_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
381 labor_tp_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
382 cc_process_nl_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
383 nl_tp_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
384 nl_tp_fixed_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
385 receive_project_invoice_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
386 work_type_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
387 emp_bill_rate_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM ,
388 job_bill_rate_schedule_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM ,
389 --Sakthi MCB
390 non_lab_std_bill_rt_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM ,
391 taskfunc_cost_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
392 taskfunc_cost_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
393 --Sakthi MCB
394 display_sequence NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
395 wbs_level NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
396 --Project structure
397 OBLIGATION_START_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
398 OBLIGATION_FINISH_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
399 ESTIMATED_START_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
400 ESTIMATED_FINISH_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
401 BASELINE_START_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
402 BASELINE_FINISH_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
403 CLOSED_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
404 WQ_UOM_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
408 PM_SOURCE_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
405 WQ_ITEM_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
406 STATUS_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
407 WF_STATUS_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
409 PRIORITY_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
410 MILESTONE_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
411 CRITICAL_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
412 INC_PROJ_PROGRESS_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR ,
413 LINK_TASK_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
414 CALENDAR_ID NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
415 PLANNED_EFFORT NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
416 DURATION NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
417 PLANNED_WORK_QUANTITY NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM ,
418 TASK_TYPE NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
419 --Project structure
420 labor_disc_reason_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
421 non_labor_disc_reason_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
422 --PA L changes -- bug 2872708
423 retirement_cost_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
424 cint_eligible_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
425 cint_stop_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
426 --end PA L changes -- bug 2872708
427 -- FP-M Bug # 3301192
428 pred_string VARCHAR2(4000) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
429 pred_delimiter VARCHAR2(1) DEFAULT ',',
430 -- FP M changes begin (venkat)
431 base_percent_comp_deriv_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
432 sch_tool_tsk_type_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
433 constraint_type_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
434 constraint_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
435 free_slack NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
436 total_slack NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
437 effort_driven_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
438 level_assignments_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
439 invoice_method VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
440 customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
441 gen_etc_source_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
442 -- FP M changes end (venkat)
443 -- FP M changes Start (Mapping )
444 financial_task_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
445 mapped_task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
446 mapped_task_reference VARCHAR2(150) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, --SMUKKA
447 -- FP M changes end (Mapping )
448 deliverable VARCHAR2(4000) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR, --SMUKKA
449 deliverable_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM, -- 3661788 Added In paramter
450 -- (Begin Venkat) Bug # 3450684 -----------------------------------------------
451 ext_act_duration NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
452 ext_remain_duration NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
453 ext_sch_duration NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
454 -- (End Venkat) Bug # 3450684 ------------------------------------------------
455
456 -- Progress Management Changes. Bug # 3420093.
457 ,etc_effort NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
458 ,percent_complete NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
459 -- Progress Management Changes. Bug # 3420093.
460
461 );
462
463 TYPE task_in_tbl_type IS TABLE OF task_in_rec_type
464 INDEX BY BINARY_INTEGER;
465
466 TYPE task_out_rec_type IS RECORD
467 (pa_task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
468 pm_task_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
469 return_status VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
470 --project structure
471 task_version_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
472 --project structure
473 );
474
475 TYPE task_out_tbl_type IS TABLE OF task_out_rec_type
476 INDEX BY BINARY_INTEGER;
477
478 -- Project Connect 4.0
479 TYPE struc_out_rec_type IS RECORD
480 (structure_version_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
481 structure_type VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
482 return_status VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
483 );
484 TYPE struc_out_tbl_type IS TABLE OF struc_out_rec_type
485 INDEX BY BINARY_INTEGER;
486 G_struc_out_tbl struc_out_tbl_type;
487 -- Project Connect 4.0
488
489 --project structures
490 --Adding a record type for structure data
491 TYPE structure_in_rec_type IS RECORD
492 ( pa_project_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
493 ,structure_type VARCHAR2(25) := 'FINANCIAL'
494 ,structure_version_name VARCHAR2(240) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
495 ,structure_version_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
496 ,DESCRIPTION VARCHAR2(250) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
500 ,ORIGINAL_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
497 /*,VERSION_NUMBER NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
498 ,NAME VARCHAR2(240) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
499 ,CURRENT_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
501 ,LATEST_EFF_PUBLISHED_FLAG VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
502 ,EFFECTIVE_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
503 ,PUBLISHED_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
504 ,PUBLISHED_BY_PERSON_ID NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
505 ,CURRENT_BASELINE_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
506 ,CURRENT_BASELINE_PERSON_ID NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
507 ,ORIGINAL_BASELINE_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
508 ,ORIGINAL_BASELINE_PERSON_ID NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
509 ,LOCK_STATUS_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
510 ,LOCKED_BY_PERSON_ID NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
511 ,LOCKED_DATE DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
512 ,STATUS_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
513 ,WF_STATUS_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
514 ,PM_SOURCE_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
515 ,PM_SOURCE_REFERENCE VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
516 ,CHANGE_REASON_CODE VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
517 */
518 );
519
520 TYPE structure_out_rec_type IS RECORD
521 (pa_structure_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
522 pa_structure_version_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
523 return_status VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
524 );
525
526 -- <EA Pl/SQL table data structure>
527
528 TYPE PA_EXT_ATTR_ROW_TYPE IS RECORD (
529 PROJ_ELEMENT_ID NUMBER,
530 PROJ_ELEMENT_REFERENCE VARCHAR2(30),
531 ROW_IDENTIFIER NUMBER,
532 ATTR_GROUP_INT_NAME VARCHAR2(30),
533 ATTR_GROUP_ID NUMBER,
534 ATTR_INT_NAME VARCHAR2(30),
535 ATTR_VALUE_STR VARCHAR2(150),
536 ATTR_VALUE_NUM NUMBER,
537 ATTR_VALUE_DATE DATE,
538 ATTR_DISP_VALUE VARCHAR2(150),
539 ATTR_UNIT_OF_MEASURE VARCHAR2(30),
540 USER_ROW_IDENTIFIER VARCHAR2(150),
541 TRANSACTION_TYPE VARCHAR2(30)
542 );
543
544 TYPE PA_EXT_ATTR_TABLE_TYPE IS TABLE OF PA_EXT_ATTR_ROW_TYPE
545 INDEX BY BINARY_INTEGER;
546 -- </EA Pl/SQL table data structure>
547
548 -- 3435905 FP M Changes for deliverables : Start
549
550 TYPE deliverable_in_rec_type IS RECORD
551 (deliverable_short_name VARCHAR2(100) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
552 ,deliverable_name VARCHAR2(240) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
553 ,description VARCHAR2(2000):= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
554 ,deliverable_owner_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
555 -- for bug# 3729250
556 --,carrying_out_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
557 ,status_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
558 ,deliverable_type_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
559 ,progress_weight NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
560 ,due_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
561 ,completion_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
562 ,pm_source_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
563 ,pm_deliverable_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
564 ,deliverable_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
565 ,task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
566 ,task_source_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
567 -- OKE Item parameters Starts
568 ,item_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
569 ,inventory_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
570 ,quantity NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
571 ,uom_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
572 -- for bug# 3729250
573 --,item_description VARCHAR2(2000):= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
574 ,unit_price NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
575 ,unit_number VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
576 ,currency_code VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
577 -- OKE Item parameters End
578 );
579
580 TYPE deliverable_out_rec_type IS RECORD
581 ( deliverable_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
582 ,return_status VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
583 );
584
585 TYPE action_in_rec_type IS RECORD
586 ( action_name VARCHAR2(100) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
587 ,action_owner_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
588 ,action_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
589 ,function_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
590 ,due_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
594 ,pm_action_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
591 ,completion_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
592 ,description VARCHAR2(2000) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
593 ,pm_source_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
595 -- for bug# 3729250
596 -- ,carrying_out_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
597 ,pm_deliverable_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
598 ,deliverable_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
599 -- OKE procurement parameters
600 ,financial_task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
601 -- added for bug# 3729250
602 ,financial_task_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
603 ,destination_type_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
604 ,receiving_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
605 ,receiving_location_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
606 ,po_need_by_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
607 ,vendor_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
608 ,vendor_site_code VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
609 -- ,project_currency VARCHAR2(15) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
610 ,quantity NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
611 ,uom_code VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
612 ,unit_price NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
613 ,exchange_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
614 ,exchange_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
615 ,exchange_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
616 ,expenditure_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
617 ,expenditure_org_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
618 ,expenditure_item_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
619 ,requisition_line_type_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
620 ,category_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
621 ,ready_to_procure_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
622 ,initiate_procure_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
623 -- OKE procurement parameters
624 -- OKE shipping parameters
625 ,ship_from_organization_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
626 ,ship_from_location_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
627 ,ship_to_organization_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
628 ,ship_to_location_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
629 ,demand_schedule VARCHAR2(10) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
630 ,expected_shipment_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
631 ,promised_shipment_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
632 ,volume NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
633 ,volume_uom VARCHAR2(10) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
634 ,weight NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
635 ,weight_uom VARCHAR2(10) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
636 ,ready_to_ship_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
637 ,initiate_planning_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
638 ,initiate_shipping_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
639 -- OKE shipping parameters
640 -- Billing parameters
641 ,event_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
642 ,currency VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
643 ,invoice_amount NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
644 ,revenue_amount NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
645 ,event_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
646 ,event_number NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
647 ,organization_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
648 ,bill_hold_flag VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
649 ,project_functional_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
650 ,project_functional_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
651 ,project_functional_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
652 ,project_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
653 ,project_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
654 ,project_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
655 ,funding_rate_type VARCHAR2(30) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
656 ,funding_rate_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
657 ,funding_rate NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
658 ,pm_event_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3651489 added parameter
659 -- Billing parameters
660 );
661
662
663 TYPE action_out_rec_type IS RECORD
664 (action_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
665 ,return_status VARCHAR2(1) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
666 );
667
668 -- Bug # 5072032.
669
673 , pm_parent_project_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
670 TYPE program_links_rec_type IS RECORD
671 (object_relationship_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
672 , parent_project_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
674 , task_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
675 , pm_task_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
676 , task_version_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
677 , structure_type VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
678 , sub_project_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
679 , pm_sub_project_reference VARCHAR2(25) := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
680 , comments VARCHAR2(240) := NULL);
681
682 TYPE program_links_tbl_type IS TABLE OF program_links_rec_type INDEX BY BINARY_INTEGER;
683
684 -- End of Bug # 5072032.
685
686
687 TYPE action_out_tbl_type IS TABLE OF action_out_rec_type INDEX BY BINARY_INTEGER ;
688 TYPE deliverable_in_tbl_type IS TABLE OF deliverable_in_rec_type INDEX BY BINARY_INTEGER ;
689 TYPE deliverable_out_tbl_type IS TABLE OF deliverable_out_rec_type INDEX BY BINARY_INTEGER ;
690 TYPE action_in_tbl_type IS TABLE OF action_in_rec_type INDEX BY BINARY_INTEGER ;
691
692 -- 3435905 FP M Changes for deliverables : End
693
694 --project structures
695
696 --Globals to be used by the LOAD/EXECUTE/FETCH process
697 --IN types
698 G_project_in_null_rec project_in_rec_type;
699 G_project_in_rec project_in_rec_type;
700
701 --project structure
702 G_structure_in_rec structure_in_rec_type;
703 --project structure
704
705 G_key_members_in_tbl project_role_tbl_type;
706 G_class_categories_in_tbl class_category_tbl_type;
707 G_tasks_in_tbl task_in_tbl_type;
708 -- anlee org roles changes
709 G_org_roles_in_tbl project_role_tbl_type;
710 -- <EA table to store ext attr data/>
711 G_ext_attr_in_tbl PA_EXT_ATTR_TABLE_TYPE;
712
713 --Counters
714 G_key_members_tbl_count NUMBER:=0;
715 G_class_categories_tbl_count NUMBER:=0;
716 G_tasks_tbl_count NUMBER:=0;
717 -- anlee org roles changes
718 G_org_roles_tbl_count NUMBER:=0;
719 -- <EA counter for ext attr data table/>
720 G_ext_attr_tbl_count NUMBER := 0;
721
722 --OUT types
723 G_project_out_null_rec project_out_rec_type;
724 G_project_out_rec project_out_rec_type;
725 G_tasks_out_tbl task_out_tbl_type;
726
727 --project structures
728 G_structure_out_rec structure_out_rec_type;
729 --project structures
730
731 --3435905 FP : M Global Tables Deliverables : Starts
732 G_deliverables_in_tbl deliverable_in_tbl_type ;
733 G_deliverables_out_tbl deliverable_out_tbl_type ;
734 G_deliverable_actions_in_tbl action_in_tbl_type ;
735 G_deliverable_actions_out_tbl action_out_tbl_type ;
736 G_deliverables_in_tbl_count NUMBER := 0;
737 G_dlvr_actions_in_tbl_count NUMBER := 0;
738 --3435905 FP : M Global Tables Deliverables : Ends
739 G_customers_in_tbl customer_tbl_type; -- Added for tracking bug
740
741 /*#
742 * This API creates a project in the Oracle Projects using a template or existing project.
743 * @param p_api_version_number API standard version number
744 * @param p_commit API standard (default = F): indicates if transaction will be committed
745 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
746 * @param p_msg_count API standard: number of error messages
747 * @rep:paraminfo {@rep:required}
748 * @param p_msg_data API standard: error message
749 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
750 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
751 * @rep:paraminfo {@rep:precision 1} {@rep:required}
752 * @param p_workflow_started Flag indicating whether a workflow has been started
753 * @rep:paraminfo {@rep:required}
754 * @param p_pm_product_code Identifier of the external system from which the project was imported
755 * @rep:paraminfo {@rep:precision 25}
756 * @param p_op_validate_flag Indicates whether the system performs scheduling validations. Default is Y.
757 * @rep:paraminfo {@rep:precision 1}
758 * @param p_project_in Input project details
759 * @rep:paraminfo {@rep:required}
760 * @param p_project_out Output project details
761 * @rep:paraminfo {@rep:required}
762 * @param p_customers_in Input customer details
763 * @param p_key_members The identification code for the role that the members have on the project
764 * @rep:paraminfo {@rep:required}
765 * @param p_class_categories Identifier of the categories by which the project is classified
766 * @rep:paraminfo {@rep:required}
767 * @param p_tasks_in Input task details of the project
768 * @rep:paraminfo {@rep:required}
769 * @param p_tasks_out Output task details of the project
770 * @rep:paraminfo {@rep:required}
771 * @param p_org_roles Identifier of the organization roles for project
772 * @param p_structure_in Identifier of structure data
773 * @param p_ext_attr_tbl_in Identifier of external attributes
774 * @param p_deliverables_in Input deliverable details
775 * @param p_deliverable_actions_in Input deliverable actions details
776 * @rep:scope public
777 * @rep:lifecycle active
778 * @rep:displayname Create Project
779 * @rep:category BUSINESS_ENTITY PA_PROJECT
780 * @rep:category BUSINESS_ENTITY PA_TASK
781 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
782 * @rep:compatibility S
783 */
784 PROCEDURE create_project
788 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
785 ( p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
786 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
787 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
789 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
790 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
791 ,p_workflow_started OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
792 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
793 ,p_op_validate_flag IN VARCHAR2 := 'Y' --added by rtarway 4218977
794 ,p_project_in IN project_in_rec_type
795 ,p_project_out OUT NOCOPY project_out_rec_type /*added the nocopy check for the bug 2674619*/
796 /* Added for tracking bug - add customers */
797 ,p_customers_in IN pa_project_pub.customer_tbl_type := G_customers_in_tbl
798 /*added default value 3683732*/
799 ,p_key_members IN project_role_tbl_type := G_key_members_in_tbl
800 ,p_class_categories IN class_category_tbl_type := G_class_categories_in_tbl
801 ,p_tasks_in IN task_in_tbl_type
802 ,p_tasks_out OUT NOCOPY task_out_tbl_type /*added the nocopy check for the bug 2674619*/
803 ,p_org_roles IN project_role_tbl_type := G_org_roles_in_tbl
804 --project structures
805 ,p_structure_in IN structure_in_rec_type := G_structure_in_rec
806 ,p_ext_attr_tbl_in IN PA_EXT_ATTR_TABLE_TYPE := G_ext_attr_in_tbl -- <EA added parameter for Ext Attr/>
807
808 -- ,p_structure_out OUT structure_out_rec_type
809 --project structures
810 --3435905 FP M : deliverables
811 ,p_deliverables_in IN deliverable_in_tbl_type := G_deliverables_in_tbl -- 3435905 passing default
812 -- ,p_deliverables_out OUT NOCOPY deliverable_out_tbl_type -- 3435905 removed
813 ,p_deliverable_actions_in IN action_in_tbl_type := G_deliverable_actions_in_tbl -- 3435905 passing default
814 -- ,p_deliverable_actions_out OUT NOCOPY action_out_tbl_type -- 3435905 removed
815 --3435905 FP M : deliverables
816 );
817
818 /*#
819 * This API is used to add new subtasks to a task of a project in Oracle Projects.
820 * @param p_api_version_number API standard version number
821 * @param p_commit API standard (default = F): indicates if transaction will be committed
822 * @rep:paraminfo {@rep:precision 1}
823 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
824 * @param p_msg_count API standard: number of error messages
825 * @rep:paraminfo {@rep:required}
826 * @param p_msg_data API standard: error message
827 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
828 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
829 * @rep:paraminfo {@rep:precision 1} {@rep:required}
830 * @param p_pm_product_code Identifier of the external system from which the project was imported
831 * @rep:paraminfo {@rep:precision 25}
832 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
833 * @param p_pa_project_id The reference code that uniquely identifies the project in the Oracle Projects
834 * @param p_pm_task_reference The reference code that uniquely identifies project's task in the external system
835 * @param p_pa_task_number The number that identifies the task in Oracle Projects
836 * @param p_ref_task_id The reference code that uniquely identifies the task in a project in Oracle Projects
837 * @param p_task_name The name that uniquely identifies the task within a project
838 * @param p_long_task_name Long name of the task
839 * @param p_task_description Description of the task
840 * @param p_task_start_date The start date of the task
841 * @param p_task_completion_date The completion date of the task
842 * @param p_pm_parent_task_reference The unique reference code that identifies the task's parent task
843 * @param p_pa_parent_task_id The identifier of task's parent task in Oracle Projects
844 * @param p_address_id The address of one of the customers that is logically linked to the task
845 * @param p_carrying_out_organization_id The identifier of the organization that is responsible for the project work
846 * @param p_service_type_code The type of work performed on the task
847 * @param p_task_manager_person_id The identifier of the employee who manages the task.
848 * @param p_billable_flag Flag indicating whether items charged to the task can accrue revenue
849 * @rep:paraminfo {@rep:precision 1}
850 * @param p_chargeable_flag Flag indicating whether expenditure items can be charged to the task. Only lowest level tasks can be chargeable
851 * @rep:paraminfo {@rep:precision 1}
852 * @param p_ready_to_bill_flag Flag indicating whether the task is authorized to be invoiced
853 * @rep:paraminfo {@rep:precision 1}
854 * @param p_ready_to_distribute_flag Flag indicating whether the task is authorized for revenue accrual
855 * @rep:paraminfo {@rep:precision 1}
856 * @param p_limit_to_txn_controls_flag Flag indicating whether users can only charge expenditures to the tasks that are listed in task transaction controls
857 * @rep:paraminfo {@rep:precision 1}
858 * @param p_labor_bill_rate_org_id The identifier of the organization that owns the labor standard bill rate schedule
859 * @param p_labor_std_bill_rate_schdl The labor standard bill rate schedule that is used to calculate revenue for labor expenditure items charged to the task
860 * @param p_labor_schedule_fixed_date The date used to determine the effective bill rates of the task standard labor bill rate schedule. If no
861 * fixed date is entered, the expenditure item date is used to determine the effective bill rate for the item.
862 * @param p_labor_schedule_discount The discount percent for the task standard labor bill rate schedule
866 * @param p_nl_schedule_discount The discount percent from the task standard non-labor bill rate schedule
863 * @param p_nl_bill_rate_org_id The identifier of the organization that owns the non-labor standard bill rate schedule
864 * @param p_nl_std_bill_rate_schdl The non-labor standard bill rate schedule that is used to calculate revenue for non-labor expenditure items charged to the task
865 * @param p_nl_schedule_fixed_date The fixed date used to determine the effective bill rates of the standard non-labor bill rate schedule
867 * @param p_labor_cost_multiplier_name The labor cost multiplier defined for the task of a premium project
868 * @param p_cost_ind_rate_sch_id The identifier of the default costing burden schedule
869 * @param p_rev_ind_rate_sch_id The identifier of the default revenue burden schedule
870 * @param p_inv_ind_rate_sch_id The identifier of the default invoice burden schedule
871 * @param p_cost_ind_sch_fixed_date The schedule fixed date of the firm costing burden schedule
872 * @param p_rev_ind_sch_fixed_date The schedule fixed date of the firm revenue burden schedule
873 * @param p_inv_ind_sch_fixed_date The schedule fixed date of the firm invoice burden schedule
874 * @param p_labor_sch_type The schedule type of labor expenditure items
875 * @param p_nl_sch_type The schedule type of non-labor expenditure items
876 * @param p_actual_start_date The actual start date of the project
877 * @param p_actual_finish_date The actual end date of the project
878 * @param p_early_start_date The early start date of the project. Applicable only for a project that originated in an external system.
879 * @param p_early_finish_date The early finish date of the project
880 * @param p_late_start_date The late start date of the project. Applicable only for a project that originated in an external system.
881 * @param p_late_finish_date The late finish date of the project. Applicable only for a project that originated in an external system.
882 * @param p_scheduled_start_date The scheduled start date of the project
883 * @param p_scheduled_finish_date The scheduled finish date of the project
884 * @param p_attribute_category Descriptive flexfield category
885 * @param p_attribute1 Identifies Descriptive flexfield segment
886 * @param p_attribute2 Identifies Descriptive flexfield segment
887 * @param p_attribute3 Identifies Descriptive flexfield segment
888 * @param p_attribute4 Identifies Descriptive flexfield segment
889 * @param p_attribute5 Identifies Descriptive flexfield segment
890 * @param p_attribute6 Identifies Descriptive flexfield segment
891 * @param p_attribute7 Identifies Descriptive flexfield segment
892 * @param p_attribute8 Identifies Descriptive flexfield segment
893 * @param p_attribute9 Identifies Descriptive flexfield segment
894 * @param p_attribute10 Identifies Descriptive flexfield segment
895 * @param p_allow_cross_charge_flag Flat indicating whether cross charges are allowed
896 * @param p_project_rate_date Task-level default value for project rate date
897 * @param p_project_rate_type Task-level default value for project rate type
898 * @param p_cc_process_labor_flag Flag indicating whether cross charge processing is to be performed for labor
899 * transactions charged to the project. The default value for the project template is N. The default value for a
900 * project is the value on the project template. The default value for a task is the value on the project.
901 * @rep:paraminfo {@rep:precision 1}
902 * @param p_labor_tp_schedule_id Identifier of the transfer price schedule to use for cross charged labor transactions.
903 * The default value for a project is the value on the project template. The default value for a task is the value on the project.
904 * If cc_process_labor_flag is set to Y, this field is required.
905 * @param p_labor_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining the
906 * transfer price for labor transactions. The default value for a project is the value on the project template.
907 * The default value for a task is the value on the project.
908 * @param p_cc_process_nl_flag Flag indicating cross charge processing is to be performed for non-labor transactions charged to the project.
909 * The default value for the project template is N. The default value for a project is the value on the project template.
910 * The default value for a task is the value on the project.
911 * @rep:paraminfo {@rep:precision 1}
912 * @param p_nl_tp_schedule_id Identifier of the transfer price schedule to use for cross charged non-labor transactions.
913 * The default value for a project is the value on the project template. The default value for a task is the value on the project.
914 * If cc_process_nl_flag is set to Y, this field is required
915 * @param p_nl_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining the transfer
916 * price for non-labor transactions.The default value for a project is the value on the project template. The default value for a task
917 * is the value on the project.
918 * @param p_receive_project_invoice_flag Flag indicating whether the task can receive charges from internal supplies using interproject billing
919 * @rep:paraminfo {@rep:precision 1}
920 * @param p_work_type_id Identifier of the work type
921 * @param p_emp_bill_rate_schedule_id Identifier of the employee bill rate schedule
922 * @param p_job_bill_rate_schedule_id Identifier of the job bill rate schedule
923 * @param p_non_lab_std_bill_rt_sch_id Identifier of the non-labor standard bill rate schedule
924 * @param p_taskfunc_cost_rate_type Task-level default value for project functional cost rate type
925 * @param p_taskfunc_cost_rate_date Task-level default value for project functional cost rate date
926 * @param p_structure_type Identifier of the project structure type
927 * @param p_structure_version_id Identifier of the structure version
928 * @param P_OBLIGATION_START_DATE The obligation start date of the workplan version
932 * @param P_BASELINE_START_DATE The baseline start date for the task or the workplan
929 * @param P_OBLIGATION_FINISH_DATE The obligation finish date of the workplan version
930 * @param P_ESTIMATED_START_DATE The estimated start date of the workplan version
931 * @param P_ESTIMATED_FINISH_DATE The estimated finish date of the workplan version
933 * @param P_BASELINE_FINISH_DATE The baseline finish date for the task or the workplan
934 * @param P_CLOSED_DATE The date that the element status was set to Closed. This is a task-specific attribute.
935 * @param P_WQ_UOM_CODE The unit of measure used for work quantity for a task
936 * @param P_WQ_ITEM_CODE The work item for work quantity for a task
937 * @param P_STATUS_CODE The status of the project element
938 * @param P_WF_STATUS_CODE The status of workflow associated with the element
939 * @param P_PM_SOURCE_CODE Identifier of the the source code system
940 * @param P_PRIORITY_CODE The priority of the task. This is a task-specific attribute.
941 * @param P_MILESTONE_FLAG Flag indicating whether the task version is a milestone. This is a task-specific attribute.
942 * @param P_CRITICAL_FLAG Flag that indicates if the task version is part of the critical path.
943 * @param P_INC_PROJ_PROGRESS_FLAG Project progress flag
944 * @param P_LINK_TASK_FLAG Flag indicating that a task is used for linking purposes and is not displayed in the user interface
945 * @param P_CALENDAR_ID The identifier of the work calendar used to schedule the task. This is a task-specific attribute.
946 * @param P_PLANNED_EFFORT The planned effort for the task
947 * @param P_DURATION The duration between scheduled start date and scheduled end date using work calendar.
948 * @param P_PLANNED_WORK_QUANTITY The planned work quantity for the task
949 * @param P_TASK_TYPE The task type
950 * @param p_labor_disc_reason_code Labor discount reason code
951 * @param p_non_labor_disc_reason_code Non-labor discount reason code
952 * @param p_retirement_cost_flag Flag indicating whether the task is identified for retirement cost collection
953 * @rep:paraminfo {@rep:precision 1}
954 * @param p_cint_eligible_flag Flag indicating whether the project is eligible for capitalized interest
955 * @rep:paraminfo {@rep:precision 1}
956 * @param p_cint_stop_date Stop date for capital interest calculation
957 * @param p_pa_project_id_out The unique identifier of the project in Oracle Projects
958 * @rep:paraminfo {@rep:required}
959 * @param p_pa_project_number_out A project code that uniquely identifies the project
960 * @rep:paraminfo {@rep:required}
961 * @param p_task_id Unique identifier of the the task
962 * @rep:paraminfo {@rep:required}
963 * @param p_process_mode Processing mode. Indicates whether task processing should be done online or via consurrent request
964 * @rep:paraminfo {@rep:required}
965 * @param p_pred_string The string containing the predecessor information
966 * @rep:paraminfo {@rep:precision 400} {@rep:required}
967 * @param p_pred_delimiter Delimiter that separates predecessors in the predecessor string
968 * @rep:paraminfo {@rep:precision 1} {@rep:required}
969 * @param p_base_percent_comp_deriv_code Base percent complete derivation code for the task
970 * @rep:paraminfo {@rep:precision 30} {@rep:required}
971 * @param p_sch_tool_tsk_type_code Default scheduling tool task type for the task version
972 * @rep:paraminfo {@rep:precision 30} {@rep:required}
973 * @param p_constraint_type_code Constraint type for the task version
974 * @rep:paraminfo {@rep:precision 30} {@rep:required}
975 * @param p_constraint_date Constraint date for the task version
976 * @rep:paraminfo {@rep:required}
977 * @param p_free_slack Free slack for the task version
978 * @rep:paraminfo {@rep:required}
979 * @param p_total_slack Total slack for the task version
980 * @rep:paraminfo {@rep:required}
981 * @param p_effort_driven_flag The flag that indicates whether the task is effort driven
982 * @rep:paraminfo {@rep:precision 1} {@rep:required}
983 * @param p_level_assignments_flag Flag that indicates whether the assignments on this task should be leveled
984 * @rep:paraminfo {@rep:precision 1} {@rep:required}
985 * @param p_invoice_method The invoice method for the task. Valid only for top tasks with Invoice Method enabled.
986 * @rep:paraminfo {@rep:precision 30} {@rep:required}
987 * @param p_customer_id The customer for the task. Valid only for top tasks with Customer enabled
988 * @rep:paraminfo {@rep:required}
989 * @param p_gen_etc_source_code Estimate to complete source
990 * @rep:paraminfo {@rep:precision 30} {@rep:required}
991 * @param p_financial_task_flag Flag that indicates whether the task is a financial task.
992 * This flag is valid only for partially shared structures. Tasks that are above this level are used for financial management.
993 * @rep:paraminfo {@rep:precision 1} {@rep:required}
994 * @param p_mapped_task_id Mapped task ID.This parameter is applicable only in case of split-mapped structure sharing between workplan
995 * and financial structures.
996 * @rep:paraminfo {@rep:required}
997 * @param p_mapped_task_reference Mapped task reference
998 * @rep:paraminfo {@rep:required}
999 * @param p_deliverable Deliverable reference to be associated with the task.
1000 * @rep:paraminfo {@rep:precision 4000}
1001 * @param p_deliverable_id Deliverable ID to be associated with the task
1002 * @param p_ext_act_duration From the external application, the actual duration
1003 * @rep:paraminfo {@rep:required}
1004 * @param p_ext_remain_duration From the external application, the remaining duration
1005 * @rep:paraminfo {@rep:required}
1006 * @param p_ext_sch_duration From the external application, the scheduled duration
1007 * @rep:paraminfo {@rep:required}
1008 * @param p_op_validate_flag Indicates whether the system performs scheduling validations. Default is Y.
1009 * @rep:paraminfo {@rep:precision 1}
1013 * @rep:category BUSINESS_ENTITY PA_PROJECT
1010 * @rep:scope public
1011 * @rep:lifecycle active
1012 * @rep:displayname Create Task
1014 * @rep:category BUSINESS_ENTITY PA_TASK
1015 * @rep:compatibility S
1016 */
1017 PROCEDURE add_task
1018 ( p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1019 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
1020 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1021 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
1022 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1023 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1024 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1025 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1026 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1027 ,p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1028 ,p_pa_task_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1029 --Project Structures
1030 ,p_ref_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1031 --Project Structures
1032 ,p_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1033 ,p_long_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1034 ,p_task_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1035 ,p_task_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1036 ,p_task_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1037 ,p_pm_parent_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1038 ,p_pa_parent_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1039 ,p_address_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1040 ,p_carrying_out_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1041 ,p_service_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1042 ,p_task_manager_person_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1043 ,p_billable_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1044 ,p_chargeable_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1045 ,p_ready_to_bill_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1046 ,p_ready_to_distribute_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1047 ,p_limit_to_txn_controls_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1048 ,p_labor_bill_rate_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1049 ,p_labor_std_bill_rate_schdl IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1050 ,p_labor_schedule_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1051 ,p_labor_schedule_discount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1052 ,p_nl_bill_rate_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1053 ,p_nl_std_bill_rate_schdl IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1054 ,p_nl_schedule_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1055 ,p_nl_schedule_discount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1056 ,p_labor_cost_multiplier_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1057 ,p_cost_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1058 ,p_rev_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1059 ,p_inv_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1060 ,p_cost_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1061 ,p_rev_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1062 ,p_inv_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1063 ,p_labor_sch_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1064 ,p_nl_sch_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1065 ,p_actual_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1066 ,p_actual_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1067 ,p_early_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1068 ,p_early_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1069 ,p_late_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1070 ,p_late_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1071 ,p_scheduled_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1072 ,p_scheduled_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1073 ,p_tasks_dff IN VARCHAR2 := 'N'--bug 6153503
1074 ,p_attribute_category IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1075 ,p_attribute1 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1076 ,p_attribute2 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1077 ,p_attribute3 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1078 ,p_attribute4 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1079 ,p_attribute5 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1080 ,p_attribute6 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1081 ,p_attribute7 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1082 ,p_attribute8 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1083 ,p_attribute9 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1084 ,p_attribute10 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1085 ,p_attribute11 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR--bug 6153503
1089 ,p_attribute15 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR--bug 6153503
1086 ,p_attribute12 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR--bug 6153503
1087 ,p_attribute13 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR--bug 6153503
1088 ,p_attribute14 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR--bug 6153503
1090 ,p_allow_cross_charge_flag IN VARCHAR2:= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1091 ,p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1092 ,p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1093 ,p_cc_process_labor_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1094 ,p_labor_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1095 ,p_labor_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1096 ,p_cc_process_nl_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1097 ,p_nl_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1098 ,p_nl_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1099 ,p_receive_project_invoice_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1100 ,p_work_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1101 ,p_emp_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1102 ,p_job_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1103 --Sakthi MCB
1104 ,p_non_lab_std_bill_rt_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1105 ,p_taskfunc_cost_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1106 ,p_taskfunc_cost_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1107 --Sakthi MCB
1108 --Project Structures
1109 ,p_structure_type IN VARCHAR2 := 'FINANCIAL'
1110 ,p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1111 ,P_OBLIGATION_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1112 ,P_OBLIGATION_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1113 ,P_ESTIMATED_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1114 ,P_ESTIMATED_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1115 ,P_BASELINE_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1116 ,P_BASELINE_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1117 ,P_CLOSED_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1118 ,P_WQ_UOM_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1119 ,P_WQ_ITEM_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1120 ,P_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1121 ,P_WF_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1122 ,P_PM_SOURCE_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1123 ,P_PRIORITY_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1124 ,P_MILESTONE_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1125 ,P_CRITICAL_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1126 ,P_INC_PROJ_PROGRESS_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1127 ,P_LINK_TASK_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1128 ,P_CALENDAR_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1129 ,P_PLANNED_EFFORT IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1130 ,P_DURATION IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1131 ,P_PLANNED_WORK_QUANTITY IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1132 ,P_TASK_TYPE IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1133 --Project Structures
1134 ,p_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1135 ,p_non_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1136 --PA L changes -- bug 2872708 --Add task
1137 ,p_retirement_cost_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1138 ,p_cint_eligible_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1139 ,p_cint_stop_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1140 --end PA L changes -- bug 2872708
1141 ,p_pa_project_id_out OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
1142 ,p_pa_project_number_out OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1143 ,p_task_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
1144 -- PA L Changes 3010538
1145 ,p_process_mode IN VARCHAR2 := 'ONLINE'
1146 -- FP-M Bug # 3301192
1147 ,p_pred_string IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1148 -- ,p_pred_delimiter IN VARCHAR2 DEFAULT ','
1149 ,p_pred_delimiter IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1150 -- FP M changes begin (venkat)
1151 ,p_base_percent_comp_deriv_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1152 ,p_sch_tool_tsk_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1153 ,p_constraint_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1154 ,p_constraint_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1155 ,p_free_slack IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1156 ,p_total_slack IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1157 ,p_effort_driven_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1158 ,p_level_assignments_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1159 ,p_invoice_method IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1163 -- FP M changes start (Mapping )
1160 ,p_customer_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1161 ,p_gen_etc_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1162 -- FP M changes end (venkat)
1164 ,p_financial_task_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1165 ,p_mapped_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1166 ,p_mapped_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1167 -- FP M changes end (Mapping )
1168 ,p_deliverable IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3435905
1169 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM -- 3661788 Added IN parameter
1170 -- (Begin Venkat) Bug # 3450684 ----------------------------------------------------------
1171 ,p_ext_act_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Bug no 3450684
1172 ,p_ext_remain_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Bug no 3450684
1173 ,p_ext_sch_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Bug no 3450684
1174 -- (End Venkat) Bug # 3450684 ------------------------------------------------------------
1175 ,p_op_validate_flag IN VARCHAR2 := 'Y' --added by rtarway 4218977
1176 ,p_structure_updates_flag IN VARCHAR2 := 'Y' --Added for Bug 7264422
1177 ) ;
1178
1179 /*#
1180 * This API is used to delete tasks of a project in Oracle Projects.
1181 * @param p_api_version_number API standard version number
1182 * @param p_commit API standard (default = F): indicates if transaction will be committed
1183 * @rep:paraminfo {@rep:precision 1}
1184 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
1185 * @rep:paraminfo {@rep:precision 1}
1186 * @param p_msg_count API standard: number of error messages
1187 * @rep:paraminfo {@rep:required}
1188 * @param p_msg_data API standard: error message
1189 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
1190 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
1191 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1192 * @param p_pm_product_code Identifier of the external system from which the project was imported
1193 * @rep:paraminfo {@rep:precision 25}
1194 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
1195 * @param p_pa_project_id The reference code that uniquely identifies the project in the Oracle Projects
1196 * @param p_pm_task_reference The reference code that uniquely identifies project's task in the external system
1197 * @param p_pa_task_id The reference code that uniquely identifies the task in a project in Oracle Projects
1198 * @param p_cascaded_delete_flag The flag indicating whether the whole hierarchy of task below the passed task needs
1199 * to be deleted or just the passed task id need to be deleted.The value Y indicates that whole task hierarchy will
1200 * get deleted below passed task. Default=N.
1201 * @param p_project_id The unique identifier of the project in Oracle Projects
1202 * @rep:paraminfo {@rep:required}
1203 * @param p_task_id The unique identifier of the the task
1204 * @rep:paraminfo {@rep:required}
1205 * @param p_task_version_id Identifier of task version
1206 * @param p_structure_type Identifier of the project structure type
1207 * @param p_process_mode Processing mode
1208 * @param p_structure_updates_flag When 'N' is passed, defer Process Structure Updates
1209 * @rep:scope public
1210 * @rep:lifecycle active
1211 * @rep:displayname Delete Task
1212 * @rep:category BUSINESS_ENTITY PA_PROJECT
1213 * @rep:category BUSINESS_ENTITY PA_TASK
1214 * @rep:compatibility S
1215 */
1216 PROCEDURE delete_task
1217 ( p_api_version_number IN NUMBER := 1.0 -- for bug# 3802319, earlier PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM was used
1218 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
1219 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1220 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
1221 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1222 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1223 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1224 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1225 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1226 ,p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1227 ,p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1228 ,p_cascaded_delete_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1229 ,p_project_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
1230 ,p_task_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
1231 ,p_task_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1232 ,p_structure_type IN VARCHAR2 := 'FINANCIAL'
1233 -- PA L Changes 3010538
1234 ,p_process_mode IN VARCHAR2 := 'ONLINE'
1235 ,p_structure_updates_flag IN VARCHAR2 := 'Y' -- Bug 7390781
1236 );
1237
1238 /*#
1239 * This API procedure is used to create the global data structures. Other Load-Execute-Fetch procedures
1240 * use the global data structures to create a new project.
1241 * In order to execute this API the following list of API's should be executed in the following order.
1242 * INIT_PROJECT,
1243 * LOAD_PROJECT,
1244 * LOAD_TASK,
1245 * LOAD_CLASS_CATEGORY,
1246 * LOAD_KEY_MEMBER,
1247 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
1248 * FETCH_TASK and
1249 * CLEAR_PROJECT
1250 * @rep:scope public
1251 * @rep:lifecycle active
1255 */
1252 * @rep:displayname Create Multiple Projects: Init Project
1253 * @rep:category BUSINESS_ENTITY PA_PROJECT
1254 * @rep:compatibility S
1256 PROCEDURE init_project;
1257
1258 /*#
1259 * This API is used to load a project to a global PL/SQL record.
1260 * In order to execute this API the following list of API's should be executed in the following order.:
1261 * INIT_PROJECT,
1262 * LOAD_PROJECT,
1263 * LOAD_TASK,
1264 * LOAD_CLASS_CATEGORY,
1265 * LOAD_KEY_MEMBER,
1266 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
1267 * FETCH_TASK and
1268 * CLEAR_PROJECT
1269 * @param p_api_version_number API standard version number
1270 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
1271 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
1272 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1273 * @param p_pa_project_id The reference code that uniquely identifies the project in the Oracle Projects
1274 * @param p_pa_project_number The unique Oracle Projects number for the new project
1275 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
1276 * @param p_project_name The name of the project
1277 * @param p_long_name Long name of the project
1278 * @param p_created_from_project_id The unique reference code that identifies the source template in Oracle Projects
1279 * @param p_carrying_out_organization_id The identifier of the organization that carries out the project
1280 * @param p_public_sector_flag Flag indicating whether the project is in the public sector or the private sector
1281 * @param p_project_status_code The code for the project status
1282 * @param p_description The description of the project
1283 * @param p_start_date Start date of the project
1284 * @param p_completion_date End date of the project
1285 * @param p_distribution_rule The distribution rule that specifies the contract project's revenue accrual and billing method
1286 * @param p_customer_id The identifier of the project customer in Oracle Projects
1287 * @param p_project_relationship_code The type of customer relationship that the customer has on the project
1288 * @param p_actual_start_date The actual start date of the project.
1289 * @param p_actual_finish_date The actual end date of the project.
1290 * @param p_early_start_date The early start date of the project. Applicable only for a project that originated in an external system
1291 * @param p_early_finish_date The early finish date of the project. Applicable only for a project that originated in an external system
1292 * @param p_late_start_date The late start date of the project. Applicable only for a project that originated in an external system
1293 * @param p_late_finish_date The late finish date of the project. Applicable only for a project that originated in an external system
1294 * @param p_scheduled_start_date The scheduled start date of the project.
1295 * @param p_scheduled_finish_date The scheduled finish date of the project.
1296 * @param p_attribute_category The descriptive flexfield category
1297 * @param p_attribute1 Descriptive flexfield segment
1298 * @param p_attribute2 Descriptive flexfield segment
1299 * @param p_attribute3 Descriptive flexfield segment
1300 * @param p_attribute4 Descriptive flexfield segment
1301 * @param p_attribute5 Descriptive flexfield segment
1302 * @param p_attribute6 Descriptive flexfield segment
1303 * @param p_attribute7 Descriptive flexfield segment
1304 * @param p_attribute8 Descriptive flexfield segment
1305 * @param p_attribute9 Descriptive flexfield segment
1306 * @param p_attribute10 Descriptive flexfield segment
1307 * @param p_output_tax_code Flag indicating whether tax rate defined for the project will be used for customer invoices.
1308 * @param p_retention_tax_code The tax rate defined for retention invoices.
1309 * @rep:paraminfo {@rep:precision 30}
1310 * @param p_project_currency_code Project currency code. The default value is the currency code of the set of books.
1311 * @param p_allow_cross_charge_flag Indicates whether cross charge is allowed or not.
1312 * Default Value is 'N'. This value can be overridden at any task level.
1313 * @rep:paraminfo {@rep:precision 1}
1314 * @param p_project_rate_date Task-level default value for project rate date
1315 * @param p_project_rate_type Task-level default value for project rate type
1316 * @param p_cc_process_labor_flag Flag indicating whether cross charge processing is to be performed for labor
1317 * transactions charged to the project. The default value for the project template is N. The default value for a
1318 * project is the value on the project template. The value for the project is the default value for the task.
1319 * @param p_labor_tp_schedule_id Identifier of the transfer price schedule to use for cross charged labor transactions.
1320 * The default value for a project is the value on the project template. The value for the project is the default value for the task.
1321 * If cc_process_labor_flag is set to Y, this field is required.
1322 * @param p_labor_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when
1323 * determining the transfer price for labor transactions. . The default value for a project is the value on the project template.
1324 * The value for the project is the default value for the task.
1325 * @param p_cc_process_nl_flag Flag indicating whether cross charge processing is to be performed for non-labor transactions
1326 * charged to the project. The default value for the project template is N. The default value for a project is the value on the
1327 * project template. The value for the project is the default value for the task.
1328 * @rep:paraminfo {@rep:precision 1}
1329 * @param p_nl_tp_schedule_id Identifier of the transfer price schedule to use for cross charged non labor transactions.
1330 * The default value for a project is the value on the project template. The value for the project is the default value for the task
1334 * The value for the project is the default value for the task.
1331 * If cc_process_nl_flag is set to Y, this field is required.
1332 * @param p_nl_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining
1333 * the transfer price for non labor transactions. The default value for a project is the value on the project template.
1335 * @param p_cc_tax_task_id Identifier of the task to which intercompany tax items on the intercompany payables invoice are charged
1336 * @param p_role_list_id Identifier of the role list. The role list is a list of allowable roles that are displayed when the
1337 * members are assigned.
1338 * @param p_work_type_id Identifier of the work type
1339 * @param p_calendar_id Identifier of the calendar used on the project.
1340 * @param p_location_id Identifier of the project work site location.
1341 * @param p_probability_member_id Probability of a project becoming approved. This value is used as a weighting average for reporting.
1342 * @param p_project_value The OPPORTUNITY_VALUE converted to the project functional currency
1343 * @param p_expected_approval_date The expected date of the project approval
1344 * @param p_cost_job_group_id Identifier of the job group that will be used for costing functionality
1345 * @param p_bill_job_group_id Identifier of the job group that will be used for billing functionality
1346 * @param p_emp_bill_rate_schedule_id Identifier for employee bill rate schedule
1347 * @param p_job_bill_rate_schedule_id Identifier for job bill rate schedule
1348 * @param p_invproc_currency_type Invoice processing currency type
1349 * @param p_revproc_currency_code Revenue processing currency code
1350 * @param p_project_bil_rate_date_code Exchange rate date type for determining the date to use for conversion from bill
1351 * transaction currency/ funding currency to project currency used for customer billing.
1352 * @param p_project_bil_rate_type Exchange rate type to use for conversion from bill transaction currency/ funding currency
1353 * to project currency used for customer billing.
1354 * @param p_project_bil_rate_date Exchange rate date to use for conversion from bill transaction currency/ funding currency
1355 * to project currency if Fixed Date rate date type is used for customer billing.
1356 * @param p_project_bil_exchange_rate Exchange rate to use for conversion from bill transaction currency/ funding currency
1357 * to project if User exchange rate type is used.
1358 * @param p_projfunc_currency_code Project functional currency. The default value is the value entered for the associated set of books.
1359 * @param p_projfunc_bil_rate_date_code Exchange rate date type for determining the date to use for conversion from bill
1360 * transaction currency/ funding currency to project functional currency for customer billing
1361 * @param p_projfunc_bil_rate_type Exchange rate type to use for conversion from bill transaction currency/ funding currency
1362 * to project functional currency for customer billing
1363 * @param p_projfunc_bil_rate_date Exchange rate date to use for conversion from bill transaction currency/funding currency
1364 * to project functional currency if Fixed Date rate date type is used for customer billing
1365 * @param p_projfunc_bil_exchange_rate Exchange rate for conversion from bill transaction currency or
1366 * funding currency to project functional currency if the rate type is User
1367 * @param p_funding_rate_date_code Exchange rate date type for determining the date to use for conversion from bill transaction
1368 * currency to funding currency for customer billing
1369 * @param p_funding_rate_type Exchange rate type to use for conversion from bill transaction currency to funding currency for
1370 * customer billing
1371 * @param p_funding_rate_date Exchange rate date to use for conversion from bill transaction currency to funding currency
1372 * if Fixed Date rate date type is used for customer billing
1373 * @param p_funding_exchange_rate Exchange rate to use for conversion from bill transaction currency to project or functional
1374 * currency if User exchange rate type is used
1375 * @param p_baseline_funding_flag Flag indicating whether baseline funding can be created without a revenue budget.
1376 * @rep:paraminfo {@rep:precision 1}
1377 * @param p_multi_currency_billing_flag Flag indicating whether multi-currency billing is allowed for this project
1378 * @rep:paraminfo {@rep:precision 1}
1379 * @param p_competence_match_wt Weighting value for competence match used to calculate score
1380 * @param p_availability_match_wt Weighting value for availability match used to calculate score
1381 * @param p_job_level_match_wt Weighting value for job level match used to calculate score
1382 * @param p_enable_automated_search Flag indicating whether automated candidate nomination is done for the requirements on a project
1383 * (whether the enable Automated Search check box is enabled).
1384 * @param p_search_min_availability The minimum required availability of a resource to be returned in the search result
1385 * @param p_search_org_hier_id The organization hierarchy for the search
1386 * @param p_search_starting_org_id The starting organization for the search
1387 * @param p_search_country_id The country for the search
1388 * @param p_min_cand_score_reqd_for_nom Minimum score required for a resource to be nominated as candidate on a requirement
1389 * @param p_max_num_of_sys_nom_cand Maximum number of candidates nominated
1390 * @param p_non_lab_std_bill_rt_sch_id Identifier of the non-labor standard bill rate schedule.
1391 * @param p_search_country_code Code used for country for the search
1392 * @param p_inv_by_bill_trans_curr_flag Flag indicating whether invoicing is by bill transaction currency
1393 * @rep:paraminfo {@rep:precision 1}
1394 * @param p_projfunc_cost_rate_type The default value for the project functional cost rate
1395 * @param p_projfunc_cost_rate_date The default value for the project functional cost rate date
1396 * @param p_assign_precedes_task Flag indicating whether assignment level attributes override task-level attributes
1397 * @param p_split_cost_from_wokplan_flag Split cost from bill flag
1401 * @param p_adv_action_set_id The default advertisement action set of the project or the project template
1398 * @rep:paraminfo {@rep:precision 1}
1399 * @param p_split_cost_from_bill_flag Split cost from workplan flag
1400 * @rep:paraminfo {@rep:precision 1}
1402 * @param p_start_adv_action_set_flag Flag indicating whether the advertisement action set will be started immediately after a
1403 * requirement is created
1404 * @rep:paraminfo {@rep:precision 1}
1405 * @param p_priority_code The priority code of the project.
1406 * @param p_retn_billing_inv_format_id Identifier of the retention billing invoice format.
1407 * @param p_retn_accounting_flag Flag indicating whether the retention accounting is enabled for the project
1408 * @param p_opp_value_currency_code The currency code for project opportunity value
1409 * @param p_revaluate_funding_flag Flag indicating whether the funding has to be revaluated
1410 * @rep:paraminfo {@rep:precision 1}
1411 * @param p_include_gains_losses_flag Flag indicating whether gains and losses to be included in project revenue
1412 * @rep:paraminfo {@rep:precision 1}
1413 * @param p_security_level Security level of the project. 0 indicated the project is private. 100 indicates project is public.
1414 * @param p_labor_disc_reason_code Reason code for labor discount
1415 * @param p_non_labor_disc_Reason_code Discount reason code for non-labor
1416 * @param p_asset_allocation_method The method used to allocate indirect and common costs across the assets
1417 * assigned to a grouping level
1418 * @param p_capital_event_processing Capital event processing method. Used to determine when cost and assets are grouped for
1419 * capitalization or retirement adjustment processing.
1420 * @param p_cint_rate_sch_id Identifier of the capital interest rate schedule
1421 * @param p_cint_eligible_flag Flag used to determine whether the project is eligible for capitalized interest.
1422 * @rep:paraminfo {@rep:precision 1}
1423 * @param p_cint_stop_date Stop date for capital interest calculation
1424 * @param p_bill_To_Customer_id Identifier of the bill-to customer
1425 * @param p_ship_To_Customer_id Identifier of the ship-to customer
1426 * @param p_process_mode Processing mode
1427 * @param p_sys_program_flag Flag that indicates whether the project can work as a program.
1428 * Valid values are Y and N.
1429 * @rep:paraminfo {@rep:precision 1}
1430 * @param p_enable_top_task_cust_flag Flag that indicates whether to enable Top Task Customer
1431 * for the project. Valid values are Y and N.
1432 * @rep:paraminfo {@rep:precision 1}
1433 * @param p_enable_top_task_inv_mth_flag Flag that indicates whether to enable the top task invoice
1434 * method for the project. Valid values are Y and N.
1435 * @rep:paraminfo {@rep:precision 1}
1436 * @param p_projfunc_attr_for_ar_flag This is an internal attribute.
1437 * @rep:scope public
1438 * @rep:lifecycle active
1439 * @rep:displayname Create Multiple Projects: Load Project
1440 * @rep:category BUSINESS_ENTITY PA_PROJECT
1441 * @rep:compatibility S
1442 */
1443 PROCEDURE load_project
1444 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1445 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1446 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1447 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1448 ,p_pa_project_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1449 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1450 ,p_project_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1451 ,p_long_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1452 ,p_created_from_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1453 ,p_carrying_out_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1454 ,p_public_sector_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1455 ,p_project_status_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1456 ,p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1457 ,p_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1458 ,p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1459 ,p_distribution_rule IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1460 ,p_customer_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1461 ,p_project_relationship_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1462 ,p_actual_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1463 ,p_actual_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1464 ,p_early_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1465 ,p_early_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1466 ,p_late_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1467 ,p_late_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1468 ,p_scheduled_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1469 ,p_scheduled_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1470 ,p_attribute_category IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1471 ,p_attribute1 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1472 ,p_attribute2 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1473 ,p_attribute3 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1474 ,p_attribute4 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1475 ,p_attribute5 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1476 ,p_attribute6 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1480 ,p_attribute10 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1477 ,p_attribute7 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1478 ,p_attribute8 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1479 ,p_attribute9 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1481 ,p_output_tax_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1482 ,p_retention_tax_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1483 ,p_project_currency_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1484 ,p_allow_cross_charge_flag IN VARCHAR2:= PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1485 ,p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1486 ,p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1487 ,p_cc_process_labor_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1488 ,p_labor_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1489 ,p_labor_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1490 ,p_cc_process_nl_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1491 ,p_nl_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1492 ,p_nl_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1493 ,p_cc_tax_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1494 ,p_role_list_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1495 ,p_work_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1496 ,p_calendar_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1497 ,p_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1498 ,p_probability_member_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1499 ,p_project_value IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1500 ,p_expected_approval_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1501 ,p_cost_job_group_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1502 ,p_bill_job_group_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1503 ,p_emp_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1504 ,p_job_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1505 --Sakthi MCB
1506 ,p_invproc_currency_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1507 ,p_revproc_currency_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1508 ,p_project_bil_rate_date_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1509 ,p_project_bil_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1510 ,p_project_bil_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1511 ,p_project_bil_exchange_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1512 ,p_projfunc_currency_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1513 ,p_projfunc_bil_rate_date_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1514 ,p_projfunc_bil_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1515 ,p_projfunc_bil_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1516 ,p_projfunc_bil_exchange_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1517 ,p_funding_rate_date_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1518 ,p_funding_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1519 ,p_funding_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1520 ,p_funding_exchange_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1521 ,p_baseline_funding_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1522 ,p_multi_currency_billing_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1523 ,p_competence_match_wt IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1524 ,p_availability_match_wt IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1525 ,p_job_level_match_wt IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1526 ,p_enable_automated_search IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1527 ,p_search_min_availability IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1528 ,p_search_org_hier_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1529 ,p_search_starting_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1530 ,p_search_country_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1531 ,p_min_cand_score_reqd_for_nom IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1532 ,p_max_num_of_sys_nom_cand IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1533 ,p_non_lab_std_bill_rt_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1534 ,p_search_country_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1535 ,p_inv_by_bill_trans_curr_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1536 ,p_projfunc_cost_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1537 ,p_projfunc_cost_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1538 --Sakthi MCB
1539 --Sakthi Structure
1540 ,p_assign_precedes_task IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1541 ,p_split_cost_from_wokplan_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1542 ,p_split_cost_from_bill_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1543 --Sakthi Structure
1544 --Advertisement
1545 ,p_adv_action_set_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1546 ,p_start_adv_action_set_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1547 --Advertisement
1548 --Project Setup
1549 ,p_priority_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1550 --Project Setup
1551 --Retention
1552 ,p_retn_billing_inv_format_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1556 ,p_opp_value_currency_code VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1553 ,p_retn_accounting_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1554 --Retention
1555 -- anlee opportunity changes
1557 -- anlee
1558 -- patchset K changes
1559 ,p_revaluate_funding_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1560 ,p_include_gains_losses_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1561 ,p_security_level IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1562 ,p_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1563 ,p_non_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1564 -- End of changes
1565 --PA L changes -- bug 2872708 --load_project
1566 ,p_asset_allocation_method VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1567 ,p_capital_event_processing VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1568 ,p_cint_rate_sch_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1569 ,p_cint_eligible_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1570 ,p_cint_stop_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1571 --end PA L changes -- bug 2872708
1572
1573 -- crm changes
1574 ,p_bill_To_Customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1575 ,p_ship_To_Customer_id NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1576 -- crm changes
1577 -- PA L Changes 3010538
1578 ,p_process_mode IN VARCHAR2 := 'ONLINE'
1579
1580 -- FP M changes begin (venkat)
1581 ,p_sys_program_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1582 , p_allow_multi_program_rollup IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- Bug # 5072032.
1583 ,p_enable_top_task_cust_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1584 ,p_enable_top_task_inv_mth_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1585 ,p_projfunc_attr_for_ar_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1586 -- FP M changes begin (venkat)
1587 ,p_ar_rec_notify_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 7508661 : EnC
1588 ,p_auto_release_pwp_inv IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 7508661 : EnC
1589 );
1590
1591 /*#
1592 * This Load-Execute-Fetch API is used is used to load key members to a global PL/SQL table.
1593 * In order to execute this API the following list of API's should be executed in the following order.
1594 * INIT_PROJECT,
1595 * LOAD_PROJECT,
1596 * LOAD_TASK,
1597 * LOAD_CLASS_CATEGORY,
1598 * LOAD_KEY_MEMBER,
1599 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
1600 * FETCH_TASK and
1601 * CLEAR_PROJECT
1602 * @param p_api_version_number API standard version number
1603 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
1604 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
1605 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1606 * @param p_person_id Identifier of the person
1607 * @param p_project_role_type The type of role played by the person in the project.
1608 * @param p_start_date The start date from when the person is playing a role.
1609 * Default = sysdate
1610 * @param p_end_date Project End date
1611 * @rep:scope public
1612 * @rep:lifecycle active
1613 * @rep:displayname Create Multiple Projects-Load Key Member
1614 * @rep:category BUSINESS_ENTITY PA_PROJECT
1615 * @rep:compatibility S
1616 */
1617 PROCEDURE load_key_member
1618 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1619 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1620 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1621 ,p_person_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1622 ,p_project_role_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1623 ,p_project_role_meaning IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- Bug 6408593
1624 ,p_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1625 ,p_end_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE );
1626
1627 -- anlee org role changes
1628
1629 /*#
1630 * This API is a Load-Execute-Fetch procedure used to load organization roles
1631 * from the client side to a PL/SQL table on the server side, where the roles will be used
1632 * by the Load-Execute-Fetch cycle. Please refer to the API user guide for more information
1633 * on required parameters and optional parameters of this API.
1634 * @param p_api_version_number API standard: version number
1635 * @rep:paraminfo {@rep:required}
1636 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
1637 * @rep:paraminfo {@rep:precision 1}
1638 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
1639 * @rep:paraminfo {@rep:precision 1}
1640 * @param p_resource_source_id Source identifier of the resource
1641 * @param p_project_role_type Project role type
1642 * @param p_start_date Start date of the organization role (DEFAULT = SYSDATE)
1643 * @param p_end_date End date of the organization role
1644 * @rep:scope public
1645 * @rep:lifecycle active
1646 * @rep:displayname Load Organization Role
1647 * @rep:category BUSINESS_ENTITY PA_PROJECT
1648 * @rep:compatibility S
1649 */
1650 PROCEDURE load_org_role
1651 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1652 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1653 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1657 ,p_end_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE );
1654 ,p_resource_source_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1655 ,p_project_role_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1656 ,p_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1658
1659 /*#
1660 * This Load-Execute-Fetch API is used to load class categories to a global PL/SQL table.
1661 * In order to execute this API the following list of API's should be executed in the following order.
1662 * INIT_PROJECT,
1663 * LOAD_PROJECT,
1664 * LOAD_TASK,
1665 * LOAD_CLASS_CATEGORY,
1666 * LOAD_KEY_MEMBER,
1667 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
1668 * FETCH_TASK and
1669 * CLEAR_PROJECT
1670 * @param p_api_version_number API standard version number
1671 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
1672 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
1673 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1674 * @param p_class_category Class category
1675 * @param p_class_code Yes, Class code
1676 * @param p_code_percentage Class code percentage
1677 * @rep:scope public
1678 * @rep:lifecycle active
1679 * @rep:displayname Create Multiple Projects: Load Class Category
1680 * @rep:category BUSINESS_ENTITY PA_PROJECT
1681 * @rep:compatibility S
1682 */
1683 PROCEDURE load_class_category
1684 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1685 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1686 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1687 ,p_class_category IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1688 ,p_class_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1689 ,p_new_class_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- Added for Bug 7028230
1690 ,p_code_percentage IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM );
1691
1692 /*#
1693 * This API is used to load a task to a global PL/SQL table.
1694 * In order to execute this API the following list of API's should be executed in the following order.:
1695 * INIT_PROJECT,
1696 * LOAD_PROJECT,
1697 * LOAD_TASK,
1698 * LOAD_CLASS_CATEGORY,
1699 * LOAD_KEY_MEMBER,
1700 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
1701 * FETCH_TASK and
1702 * CLEAR_PROJECT.
1703 * @param p_api_version_number API standard version number
1704 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
1705 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
1706 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1707 * @param p_pm_task_reference The reference code that uniquely identifies project's task in the external system
1708 * @param p_pa_task_id The reference code that uniquely identifies the task within a project in Oracle Projects
1709 * @param p_task_name The name that uniquely identifies the task within a project
1710 * @param p_long_task_name Long name of the task
1711 * @param p_pa_task_number The number that identifies the task in the Oracle projects
1712 * @param p_task_description Description of the task
1713 * @param p_task_start_date The start date of the task
1714 * @param p_task_completion_date The completion date of the task
1715 * @param p_pm_parent_task_reference The unique reference code that identifies the task's parent task
1716 * @param p_pa_parent_task_id The identifier of task's parent task in Oracle Projects
1717 * @param p_address_id The address of one of the customers that is logically linked to this task
1718 * @param p_carrying_out_organization_id The identifier of the organization that is responsible for the project work
1719 * @param p_service_type_code The type of work performed on the task
1720 * @param p_task_manager_person_id The identifier of the employee who manages the task
1721 * @param p_billable_flag Flag indicating whether items charged to the task can accrue revenue
1722 * @rep:paraminfo {@rep:precision 1}
1723 * @param p_chargeable_flag Flag indicating whether expenditure items can be charged to the task. Only lowest level tasks can be chargeable
1724 * @rep:paraminfo {@rep:precision 1}
1725 * @param p_ready_to_bill_flag Flag indicating whether the task is authorized to be invoiced
1726 * @rep:paraminfo {@rep:precision 1}
1727 * @param p_ready_to_distribute_flag Flag indicating whether the task is authorized for revenue accrual
1728 * @rep:paraminfo {@rep:precision 1}
1729 * @param p_limit_to_txn_controls_flag Flag indicating whether users can only charge expenditures
1730 * to the tasks that are listed in task transaction controls
1731 * @rep:paraminfo {@rep:precision 1}
1732 * @param p_labor_bill_rate_org_id The identifier of the organization that owns the labor standard bill rate schedule
1733 * @param p_labor_std_bill_rate_schdl The labor standard bill rate schedule that is used to calculate revenue for labor
1734 * expenditure items charged to the task
1735 * @param p_labor_schedule_fixed_date The date used to determine the effective bill rates of the task standard labor bill rate schedule
1736 * @param p_labor_schedule_discount The discount percent on the task standard labor bill rate schedule
1737 * @param p_nl_bill_rate_org_id The identifier of the organization that owns the non-labor standard bill rate schedule
1738 * @param p_nl_std_bill_rate_schdl The non-labor standard bill rate schedule that is used to calculate revenue
1739 * for non-labor expenditure items charged to the task
1740 * @param p_nl_schedule_fixed_date The fixed date used to determine the effective bill rates of the standard non-labor bill rate schedule.
1741 * @param p_nl_schedule_discount The discount percent on the task standard non-labor bill rate schedule
1745 * @param p_inv_ind_rate_sch_id The identifier of the default invoice burden schedule
1742 * @param p_labor_cost_multiplier_name The labor cost multiplier defined for the task of a premium project
1743 * @param p_cost_ind_rate_sch_id The identifier of the default costing burden schedule
1744 * @param p_rev_ind_rate_sch_id The identifier of the default revenue burden schedule
1746 * @param p_cost_ind_sch_fixed_date The schedule fixed date of the firm costing burden schedule
1747 * @param p_rev_ind_sch_fixed_date The schedule fixed date of the firm revenue burden schedule
1748 * @param p_inv_ind_sch_fixed_date The schedule fixed date of the firm invoice burden schedule
1749 * @param p_labor_sch_type The schedule type of labor expenditure items
1750 * @param p_nl_sch_type The schedule type of non-labor expenditure items
1751 * @param p_actual_start_date The actual start date of the project. Applicable only for a project that originated in an external system.
1752 * @param p_actual_finish_date The actual end date of the project. Applicable only for a project that originated in an external system.
1753 * @param p_early_start_date The early start date of the project. Applicable only for a project that originated in an external system.
1754 * @param p_early_finish_date The early finish date of the project. Applicable only for a project that originated in an external system.
1755 * @param p_late_start_date The late start date of the project. Applicable only for a project that originated in an external system.
1756 * @param p_late_finish_date The late finish date of the project. Applicable only for a project that originated in an external system.
1757 * @param p_scheduled_start_date The scheduled start date of the project
1758 * @param p_scheduled_finish_date The scheduled finish date of the project
1759 * @param p_attribute_category Descriptive flexfield category
1760 * @param p_attribute1 Descriptive flexfield segment
1761 * @param p_attribute2 Descriptive flexfield segment
1762 * @param p_attribute3 Descriptive flexfield segment
1763 * @param p_attribute4 Descriptive flexfield segment
1764 * @param p_attribute5 Descriptive flexfield segment
1765 * @param p_attribute6 Descriptive flexfield segment
1766 * @param p_attribute7 Descriptive flexfield segment
1767 * @param p_attribute8 Descriptive flexfield segment
1768 * @param p_attribute9 Descriptive flexfield segment
1769 * @param p_attribute10 Descriptive flexfield segment
1770 * @param p_allow_cross_charge_flag Flag indicating whether cross charges are allowed
1771 * @param p_project_rate_date Task-level default value for project rate date
1772 * @param p_project_rate_type Task-level default value for project rate type
1773 * @param p_cc_process_labor_flag Flag indicating cross charge processing is to be performed for labor transactions charged to the project.
1774 * The default value for the project template is N. The default value for a project is the value on the project template. The value for
1775 * the project is the default value for the task.
1776 * @rep:paraminfo {@rep:precision 1}
1777 * @param p_labor_tp_schedule_id Identifier of the transfer price schedule to use for cross charged labor transactions. The default value
1778 * for a project is the value on the project template. The value for the project is the default value for the task. If cc_process_labor_flag
1779 * is set to Y, this field is required
1780 * @param p_labor_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining the transfer price
1781 * for labor transactions. The default value for a project is the value on the project template. The value for the project is
1782 * the default value for the task.
1783 * @param p_cc_process_nl_flag Flag indicating cross charge processing is to be performed for non-labor transactions charged to the project.
1784 * The default value for the project template is N. The default value for a project is the value on the project template. The value for the
1785 * project is the default value for the task.
1786 * @rep:paraminfo {@rep:precision 1}
1787 * @param p_nl_tp_schedule_id Identifier of the transfer price schedule to use for cross charged non-labor transactions. The default value
1788 * for a project is the value on the project template. The value for the project is the default value for the task. If cc_process_nl_flag
1789 * is set to Y, this field is required
1790 * @param p_nl_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining the transfer price
1791 * for non-labor transactions. The default value for a project is the value on the project template. The value for the project is the default
1792 * value for the task.
1793 * @param p_receive_project_invoice_flag Flag indicating whether the task cancan receive charges from internal supplies using interproject billing
1794 * via inter project billing
1795 * @rep:paraminfo {@rep:precision 1}
1796 * @param p_work_type_id Identifier of the work type
1797 * @param p_emp_bill_rate_schedule_id Identifier of the the employee bill rate schedule
1798 * @param p_job_bill_rate_schedule_id Identifier of the the job bill rate schedule
1799 * @param p_non_lab_std_bill_rt_sch_id Identifier of the the non-labor standard bill rate schedule
1800 * @param p_taskfunc_cost_rate_type Task-level default value for the project functional cost rate type
1801 * @param p_taskfunc_cost_rate_date Task-level default value for the project functional cost rate date
1802 * @param p_display_sequence Order of display
1803 * @param p_wbs_level The level of the task in the work breakdown structure
1804 * @param P_OBLIGATION_START_DATE The obligation start date of the workplan version
1805 * @param P_OBLIGATION_FINISH_DATE The obligation finish date of the workplan version
1806 * @param P_ESTIMATED_START_DATE The estimated start date of the workplan version
1807 * @param P_ESTIMATED_FINISH_DATE The estimated finish date of the workplan version
1808 * @param P_BASELINE_START_DATE The baseline start date for the task or the workplan
1812 * @param P_WQ_ITEM_CODE The work item for work quantity for a task
1809 * @param P_BASELINE_FINISH_DATE The baseline finish date for the task or the workplan
1810 * @param P_CLOSED_DATE The date on which the element status was set to Closed. This is a task-specific attribute.
1811 * @param P_WQ_UOM_CODE The unit of measure used for work quantity for a task
1813 * @param P_STATUS_CODE The status of the project element
1814 * @param P_WF_STATUS_CODE The status of workflow associated with the element
1815 * @param P_PM_SOURCE_CODE Identifier of the source code system
1816 * @param P_PRIORITY_CODE The priority of the task. This is a task-specific attribute.
1817 * @param P_MILESTONE_FLAG Flag indicating whether the task version is a milestone. This is a task-specific attribute.
1818 * @param P_CRITICAL_FLAG Flag indicating whether the task version is part of the critical path. This is a task-specific attribute..
1819 * @param P_INC_PROJ_PROGRESS_FLAG Project progress flag
1820 * @param P_LINK_TASK_FLAG Flag indicating whether a task is used for linking purposes and is not displayed in the user interface
1821 * @param P_CALENDAR_ID The identifier of the work calendar used to schedule the task. This is a task-specific attribute.
1822 * @param P_PLANNED_EFFORT The planned effort for the task
1823 * @param P_DURATION The duration between scheduled start date and scheduled end date using the work calendar
1824 * @param P_PLANNED_WORK_QUANTITY The planned work quantity for the task
1825 * @param P_TASK_TYPE Type of task.
1826 * @param p_labor_disc_reason_code Labor discount reason code
1827 * @param p_non_labor_disc_reason_code Non-labor discount reason code
1828 * @param p_retirement_cost_flag Flag indicating whether the task is marked for retirement cost collection
1829 * @rep:paraminfo {@rep:precision 1}
1830 * @param p_cint_eligible_flag Flag indicating whether the project is eligible for capitalized interest.
1831 * @rep:paraminfo {@rep:precision 1}
1832 * @param p_cint_stop_date Stop date for capital interest calculation
1833 * @param p_pred_string The string containing the predecessor information
1834 * @rep:paraminfo {@rep:precision 400} {@rep:required}
1835 * @param p_pred_delimiter Delimiter that separates predecessors in the predecessor string
1836 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1837 * @param p_base_percent_comp_deriv_code Base percent complete derivation code for the task
1838 * @rep:paraminfo {@rep:precision 30} {@rep:required}
1839 * @param p_sch_tool_tsk_type_code Default scheduling tool task type for the task version
1840 * @rep:paraminfo {@rep:precision 30} {@rep:required}
1841 * @param p_constraint_type_code Constraint type for the task version
1842 * @rep:paraminfo {@rep:precision 30} {@rep:required}
1843 * @param p_constraint_date Constraint date for the task version
1844 * @rep:paraminfo {@rep:required}
1845 * @param p_free_slack Free slack for the task version
1846 * @rep:paraminfo {@rep:required}
1847 * @param p_total_slack Total slack for the task version
1848 * @rep:paraminfo {@rep:required}
1849 * @param p_effort_driven_flag Flag that indicates whether the task is effort driven
1850 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1851 * @param p_level_assignments_flag Flag that indicates whether the assignments on this task should be leveled
1852 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1853 * @param p_invoice_method The invoice method for the task. This parameter is valid only if invoice method at top task is enabled.
1854 * @rep:paraminfo {@rep:precision 30} {@rep:required}
1855 * @param p_customer_id The customer for the task. This parameter is valid only if customer at top task is enabled.
1856 * @rep:paraminfo {@rep:required}
1857 * @param p_gen_etc_source_code Estimate to complete source
1858 * @rep:paraminfo {@rep:precision 30} {@rep:required}
1859 * @param p_financial_task_flag Flag that indicates whether the task is a financial task or not.
1860 * This flag is valid only for partially shared structures. Tasks that are above this level are used
1861 * for financial management.
1862 * @rep:paraminfo {@rep:precision 1} {@rep:required}
1863 * @param p_mapped_task_id Mapped task ID. This parameter is applicable only in case of split-mapped structure
1864 * sharing between workplan and financial structures.
1865 * @rep:paraminfo {@rep:required}
1866 * @param p_mapped_task_reference Mapped task reference
1867 * @rep:paraminfo {@rep:precision 150} {@rep:required}
1868 * @param p_deliverable Deliverable reference to be associated with the task
1869 * @rep:paraminfo {@rep:precision 4000}
1870 * @param p_deliverable_id Deliverable ID to be associated with the task
1871 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
1872 * @param p_ext_act_duration From the external application, the actual duration
1873 * @rep:paraminfo {@rep:required}
1874 * @param p_ext_remain_duration From the external application, the remaining duration
1875 * @rep:paraminfo {@rep:required}
1876 * @param p_ext_sch_duration From the external application, the scheduled duration
1877 * @rep:paraminfo {@rep:required}
1878 * @param p_etc_effort Estimated remaining effort for the task
1879 * @rep:paraminfo {@rep:required}
1880 * @param p_percent_complete Percentage of work complete on the task.
1881 * @rep:paraminfo {@rep:required}
1882 * @rep:scope public
1883 * @rep:lifecycle active
1884 * @rep:displayname Create Multiple Tasks: Load
1885 * @rep:category BUSINESS_ENTITY PA_PROJECT
1886 * @rep:category BUSINESS_ENTITY PA_TASK
1887 * @rep:compatibility S
1888 */
1889 PROCEDURE load_task
1890 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1891 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
1892 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
1896 ,p_long_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1893 ,p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1894 ,p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1895 ,p_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1897 ,p_pa_task_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1898 ,p_task_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1899 ,p_task_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1900 ,p_task_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1901 ,p_pm_parent_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1902 ,p_pa_parent_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1903 ,p_address_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1904 ,p_carrying_out_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1905 ,p_service_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1906 ,p_task_manager_person_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1907 ,p_billable_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1908 ,p_chargeable_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1909 ,p_ready_to_bill_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1910 ,p_ready_to_distribute_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1911 ,p_limit_to_txn_controls_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1912 ,p_labor_bill_rate_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1913 ,p_labor_std_bill_rate_schdl IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1914 ,p_labor_schedule_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1915 ,p_labor_schedule_discount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1916 ,p_nl_bill_rate_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1917 ,p_nl_std_bill_rate_schdl IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1918 ,p_nl_schedule_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1919 ,p_nl_schedule_discount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1920 ,p_labor_cost_multiplier_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1921 ,p_cost_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1922 ,p_rev_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1923 ,p_inv_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1924 ,p_cost_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1925 ,p_rev_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1926 ,p_inv_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1927 ,p_labor_sch_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1928 ,p_nl_sch_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1929 , p_actual_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1930 , p_actual_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1931 , p_early_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1932 , p_early_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1933 , p_late_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1934 , p_late_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1935 , p_scheduled_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1936 , p_scheduled_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1937 ,p_tasks_dff IN VARCHAR2 := 'N'--bug 6153503
1938 ,p_attribute_category IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1939 ,p_attribute1 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1940 ,p_attribute2 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1941 ,p_attribute3 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1942 ,p_attribute4 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1943 ,p_attribute5 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1944 ,p_attribute6 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1945 ,p_attribute7 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1946 ,p_attribute8 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1947 ,p_attribute9 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1948 ,p_attribute10 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1949 --bug 6153503
1950 ,p_attribute11 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1951 ,p_attribute12 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1952 ,p_attribute13 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1953 ,p_attribute14 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1954 ,p_attribute15 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1955 --end bug 6153503
1956 ,p_allow_cross_charge_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1957 ,p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1958 ,p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1962 ,p_cc_process_nl_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1959 ,p_cc_process_labor_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1960 ,p_labor_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1961 ,p_labor_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1963 ,p_nl_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1964 ,p_nl_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1965 ,p_receive_project_invoice_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1966 ,p_work_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1967 ,p_emp_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1968 ,p_job_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1969 --Sakthi MCB
1970 ,p_non_lab_std_bill_rt_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1971 ,p_taskfunc_cost_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1972 ,p_taskfunc_cost_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1973 --Sakthi MCB
1974 ,p_display_sequence IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1975 ,p_wbs_level IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1976 --Project structure
1977 ,P_OBLIGATION_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1978 ,P_OBLIGATION_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1979 ,P_ESTIMATED_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1980 ,P_ESTIMATED_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1981 ,P_BASELINE_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1982 ,P_BASELINE_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1983 ,P_CLOSED_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
1984 ,P_WQ_UOM_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1985 ,P_WQ_ITEM_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1986 ,P_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1987 ,P_WF_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1988 ,P_PM_SOURCE_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1989 ,P_PRIORITY_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1990 ,P_MILESTONE_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1991 ,P_CRITICAL_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1992 ,P_INC_PROJ_PROGRESS_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1993 ,P_LINK_TASK_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
1994 ,P_CALENDAR_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1995 ,P_PLANNED_EFFORT IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1996 ,P_DURATION IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1997 ,P_PLANNED_WORK_QUANTITY IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1998 ,P_TASK_TYPE IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1999 --Project structure
2000 ,p_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2001 ,p_non_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2002 --PA L changes -- bug 2872708 --load_task
2003 ,p_retirement_cost_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2004 ,p_cint_eligible_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2005 ,p_cint_stop_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
2006 --end PA L changes -- bug 2872708
2007 -- FP-M Bug # 3301192
2008 ,p_pred_string IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2009 -- ,p_pred_delimiter IN VARCHAR2 DEFAULT ','
2010 ,p_pred_delimiter IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2011 -- FP M changes begin (venkat)
2012 ,p_base_percent_comp_deriv_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2013 ,p_sch_tool_tsk_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2014 ,p_constraint_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2015 ,p_constraint_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
2016 ,p_free_slack IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2017 ,p_total_slack IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2018 ,p_effort_driven_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2019 ,p_level_assignments_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2020 ,p_invoice_method IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2021 ,p_customer_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2022 ,p_gen_etc_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2023 -- FP M changes end (venkat)
2024 -- FP M changes start (Mapping )
2025 ,p_financial_task_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR --SMukka
2026 ,p_mapped_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --SMukka
2027 ,p_mapped_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR --SMukka
2028 -- FP M changes end (Mapping )
2029 ,p_deliverable IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR --3435905
2030 ,p_deliverable_id IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM -- 3661788 Added IN parameter
2031 -- (begin venkat) new params for bug #3450684 --------------------------------------
2035 -- (end venkat) new params for bug #3450684 --------------------------------------
2032 ,p_ext_act_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Bug no 3450684
2033 ,p_ext_remain_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Bug no 3450684
2034 ,p_ext_sch_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM --Bug no 3450684
2036
2037 -- Progress Management Changes. Bug # 3420093.
2038 ,p_etc_effort IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2039 ,p_percent_complete IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2040 -- Progress Management Changes. Bug # 3420093.
2041
2042 );
2043
2044 /*#
2045 * This Load-Execute-Fetch API is used to create a project and its tasks using the data that is stored in the global tables
2046 * during the Load process.
2047 * INIT_PROJECT,
2048 * LOAD_PROJECT,
2049 * LOAD_TASK,
2050 * LOAD_CLASS_CATEGORY,
2051 * LOAD_KEY_MEMBER,
2052 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
2053 * FETCH_TASK and
2054 * CLEAR_PROJECT
2055 * @param p_api_version_number API standard version number
2056 * @param p_commit API standard (default = F): indicates if transaction will be committed
2057 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2058 * @param p_msg_count API standard: number of error messages
2059 * @rep:paraminfo {@rep:required}
2060 * @param p_msg_data API standard: error message
2061 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2062 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2063 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2064 * @param p_workflow_started Indicates if a workflow has been started (Y or N)
2065 * @rep:paraminfo {@rep:required}
2066 * @param p_pm_product_code Identifier of the external system from which the project was imported
2067 * @rep:paraminfo {@rep:precision 25}
2068 * @param p_op_validate_flag Indicates whether the system performs scheduling validations. Default is Y.
2069 * @rep:paraminfo {@rep:precision 1}
2070 * @param p_pa_project_id The unique Oracle Projects identification code for the project
2071 * @rep:paraminfo {@rep:precision 25} {@rep:required}
2072 * @param p_pa_project_number The unique Oracle Projects number for the Project
2073 * @rep:paraminfo {@rep:precision 25} {@rep:required}
2074 * @rep:scope public
2075 * @rep:lifecycle active
2076 * @rep:displayname Create Multiple Projects: Execute Create Project
2077 * @rep:category BUSINESS_ENTITY PA_PROJECT
2078 * @rep:category BUSINESS_ENTITY PA_TASK
2079 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
2080 * @rep:compatibility S
2081 */
2082 PROCEDURE execute_create_project
2083 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2084 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
2085 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2086 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2087 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2088 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2089 ,p_workflow_started OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2090 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2091 ,p_op_validate_flag IN VARCHAR2 := 'Y'--added by rtarway, 4218977
2092 ,p_pa_project_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2093 ,p_pa_project_number OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2094 );
2095
2096 /*#
2097 * This Load Execute Fetch API is used to fetch output parameters related to tasks.
2098 * In order to execute this API the following list of API's should be executed in the following order.
2099 * INIT_PROJECT,
2100 * LOAD_PROJECT,
2101 * LOAD_TASK,
2102 * LOAD_CLASS_CATEGORY,
2103 * LOAD_KEY_MEMBER,
2104 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
2105 * FETCH_TASK and
2106 * CLEAR_PROJECT
2107 * @param p_api_version_number API standard version number
2108 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2109 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2110 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2111 * @param p_task_index Pointer to a single task
2112 * @param p_pa_task_id Unique id for the task to be fetched
2113 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2114 * @param p_pm_task_reference The reference code that identifies the task in the external system
2115 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2116 * @param p_task_return_status Indicates whether the API has handled the task successfully. 'S'
2117 * indicates success. E indicates a business rule violation, and U indicates that an unexpected error occurred.
2118 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2119 * @rep:scope public
2120 * @rep:lifecycle active
2121 * @rep:displayname Create Multiple Tasks: Fetch
2122 * @rep:category BUSINESS_ENTITY PA_PROJECT
2123 * @rep:category BUSINESS_ENTITY PA_TASK
2124 * @rep:compatibility S
2125 */
2126 PROCEDURE fetch_task
2127 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2128 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2129 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2130 ,p_task_index IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2131 ,p_pa_task_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2132 ,p_pm_task_reference OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2136 * This API procedure is used to clear the global structures created during the load process.
2133 ,p_task_return_status OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2134
2135 /*#
2137 * INIT_PROJECT,
2138 * LOAD_PROJECT,
2139 * LOAD_TASK,
2140 * LOAD_CLASS_CATEGORY,
2141 * LOAD_KEY_MEMBER,
2142 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
2143 * FETCH_TASK and
2144 * CLEAR_PROJECT
2145 * @rep:scope public
2146 * @rep:lifecycle active
2147 * @rep:displayname Create Multiple Projects: Clear Project
2148 * @rep:category BUSINESS_ENTITY PA_PROJECT
2149 * @rep:compatibility S
2150 */
2151 PROCEDURE clear_project;
2152
2153 /*#
2154 * This API is used to determine if you can delete a task.
2155 * @param p_api_version_number API standard version number
2156 * @rep:paraminfo {@rep:required}
2157 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2158 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2159 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2160 * @param p_msg_count API standard: number of error messages
2161 * @rep:paraminfo {@rep:required}
2162 * @param p_msg_data API standard: error message
2163 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2164 * @param p_project_id The unique identifier of the project in Oracle Projects
2165 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2166 * @param p_task_id The reference code that uniquely identifies a task within a project in Oracle Projects
2167 * @param p_pm_task_reference The reference code that identifies the task in the external system
2168 * @param p_structure_type Identifier of the project structure type
2169 * @param p_task_version_id The reference code that identifies the task in the external system
2170 * @param p_delete_task_ok_flag Flag indicating whether or not the task number can be changed
2171 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2172 * @rep:scope public
2173 * @rep:lifecycle active
2174 * @rep:displayname Verify Task Deletion
2175 * @rep:category BUSINESS_ENTITY PA_PROJECT
2176 * @rep:category BUSINESS_ENTITY PA_TASK
2177 * @rep:compatibility S
2178 */
2179 PROCEDURE Check_Delete_Task_OK
2180 ( p_api_version_number IN NUMBER
2181 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2182 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2183 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2184 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2185 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2186 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2187 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2188 , p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2189 --Project Structure changes done for bug 2765115
2190 , p_structure_type IN VARCHAR2 := 'FINANCIAL'
2191 , p_task_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2192 --END Project Structure changes done for bug 2765115
2193 , p_delete_task_ok_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2194
2195 /*#
2196 * This API is used to determine if a subtask can be added to a parent task.
2197 * @param p_api_version_number API standard version number
2198 * @rep:paraminfo {@rep:required}
2199 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2200 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2201 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2202 * @param p_msg_count API standard: number of error messages
2203 * @rep:paraminfo {@rep:required}
2204 * @param p_msg_data API standard: error message
2205 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2206 * @param p_project_id The unique identifier of the project in Oracle Projects
2207 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2208 * @param p_task_id The reference code that uniquely identifies a task within a project in Oracle Projects
2209 * @param p_pm_task_reference The reference code that identifies the task in the external system
2210 * @param p_add_subtask_ok_flag Flag indicating whether or not a subtask can be added to this task
2211 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2212 * @rep:scope public
2213 * @rep:lifecycle active
2214 * @rep:displayname Verify Subtask Addition
2215 * @rep:category BUSINESS_ENTITY PA_PROJECT
2216 * @rep:category BUSINESS_ENTITY PA_TASK
2217 * @rep:compatibility S
2218 */
2219 PROCEDURE Check_Add_Subtask_OK
2220 (p_api_version_number IN NUMBER
2221 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2222 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2223 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2224 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2225 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2226 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2227 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2228 , p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2229 , p_add_subtask_ok_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2230
2231 /*#
2232 * This API is used to determine if a new or changed task reference (PM_TASK_REFERENCE) is unique.
2233 * @param p_api_version_number API standard version number
2234 * @rep:paraminfo {@rep:required}
2238 * @param p_msg_count API standard: number of error messages
2235 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2236 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2237 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2239 * @rep:paraminfo {@rep:required}
2240 * @param p_msg_data API standard: error message
2241 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2242 * @param p_project_id The unique identifier of the project in Oracle Projects
2243 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2244 * @param p_pm_task_reference The reference code that identifies the task in the external system
2245 * @rep:paraminfo {@rep:required}
2246 * @param p_unique_task_ref_flag Flag indicating whether or not a subtask can be added to this task
2247 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2248 * @rep:scope public
2249 * @rep:lifecycle active
2250 * @rep:displayname Verify Task Reference Uniqueness
2251 * @rep:category BUSINESS_ENTITY PA_PROJECT
2252 * @rep:category BUSINESS_ENTITY PA_TASK
2253 * @rep:compatibility S
2254 */
2255 PROCEDURE Check_Unique_Task_Reference
2256 (p_api_version_number IN NUMBER
2257 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2258 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2259 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2260 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2261 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2262 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2263 , p_pm_task_reference IN VARCHAR2
2264 , p_unique_task_ref_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2265
2266 /*#
2267 * This API is used to determine if a new or changed project reference(PM_PROJECT_REFERENCE) is unique.
2268 * @param p_api_version_number API standard version number
2269 * @rep:paraminfo {@rep:required}
2270 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2271 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2272 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2273 * @param p_msg_count API standard: number of error messages
2274 * @rep:paraminfo {@rep:required}
2275 * @param p_msg_data API standard: error message
2276 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2277 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2278 * @rep:paraminfo {@rep:required}
2279 * @param p_unique_project_ref_flag Flag indicating whether or not this project reference is unique in Oracle Projects
2280 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2281 * @rep:scope public
2282 * @rep:lifecycle active
2283 * @rep:displayname Verify Project Reference Uniqueness
2284 * @rep:category BUSINESS_ENTITY PA_PROJECT
2285 * @rep:compatibility S
2286 */
2287 PROCEDURE Check_Unique_Project_Reference
2288 (p_api_version_number IN NUMBER
2289 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2290 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2291 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2292 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2293 , p_pm_project_reference IN VARCHAR2
2294 , p_unique_project_ref_flag OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2295 );
2296
2297 /*#
2298 * This API is used to determine if you can delete a project.
2299 * @param p_api_version_number API standard version number
2300 * @rep:paraminfo {@rep:required}
2301 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2302 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2303 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2304 * @param p_msg_count API standard: number of error messages
2305 * @rep:paraminfo {@rep:required}
2306 * @param p_msg_data API standard: error message
2307 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2308 * @param p_project_id The unique identifier of the project in Oracle Projects
2309 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2310 * @param p_delete_project_ok_flag Flag indicating whether or not the project can be deleted
2311 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2312 * @rep:scope public
2313 * @rep:lifecycle active
2314 * @rep:displayname Validate Project Deletion
2315 * @rep:category BUSINESS_ENTITY PA_PROJECT
2316 * @rep:compatibility S
2317 */
2318 PROCEDURE Check_Delete_Project_OK
2319 (p_api_version_number IN NUMBER
2320 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2321 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2322 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2323 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2324 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2325 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2326 , p_delete_project_ok_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2327
2328 /*#
2329 * This API is used to determine if you can move a task from one parent task to another. You
2330 * can move a task as long as it retains the same top task
2331 * @param p_api_version_number API standard version number
2332 * @rep:paraminfo {@rep:required}
2336 * @param p_msg_count API standard: number of error messages
2333 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2334 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2335 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2337 * @rep:paraminfo {@rep:required}
2338 * @param p_msg_data API standard: error message
2339 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2340 * @param p_project_id The unique identifier of the project in Oracle Projects
2341 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2342 * @param p_task_id The reference code that uniquely identifies a task within a project in Oracle Projects
2343 * @param p_pm_task_reference The reference code that identifies the task in the external system
2344 * @param p_new_parent_task_id The Oracle Projects identification code of the new parent task
2345 * @param p_pm_new_parent_task_reference The external system reference code of the new parent task
2346 * @param p_change_parent_ok_flag Flag indicating whether or not this task can be assigned to a new parent task
2347 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2348 * @rep:scope public
2349 * @rep:lifecycle active
2350 * @rep:displayname Verify Parent Change
2351 * @rep:category BUSINESS_ENTITY PA_PROJECT
2352 * @rep:category BUSINESS_ENTITY PA_TASK
2353 * @rep:compatibility S
2354 */
2355 PROCEDURE Check_Change_Parent_OK
2356 (p_api_version_number IN NUMBER
2357 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2358 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2359 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2360 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2361 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2362 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2363 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2364 , p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2365 , p_new_parent_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2366 , p_pm_new_parent_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2367 , p_change_parent_ok_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2368
2369 /*#
2370 * This API is used to determine if you can change the CARRYING_OUT_ORGANIZATION_ID field for a particular project or task.
2371 * @param p_api_version_number API standard version number
2372 * @rep:paraminfo {@rep:required}
2373 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2374 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2375 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2376 * @param p_msg_count API standard: number of error messages
2377 * @rep:paraminfo {@rep:required}
2378 * @param p_msg_data API standard: error message
2379 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2380 * @param p_project_id The unique identifier of the project in Oracle Projects
2381 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2382 * @param p_change_project_org_ok_flag The reference code that uniquely identifies a task within a project in Oracle Projects
2383 * @rep:paraminfo {@rep:required}
2384 * @rep:scope public
2385 * @rep:lifecycle active
2386 * @rep:displayname Validate Project Organization Change
2387 * @rep:category BUSINESS_ENTITY PA_PROJECT
2388 * @rep:category BUSINESS_ENTITY PA_TASK
2389 * @rep:compatibility S
2390 */
2391 PROCEDURE Check_Change_Project_Org_OK
2392 (p_api_version_number IN NUMBER
2393 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2394 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2395 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2396 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2397 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2398 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2399 , p_change_project_org_ok_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2400
2401 /*#
2402 * This API is used to determine if a new or changed task number is unique within a project.
2403 * @param p_api_version_number API standard version number
2404 * @rep:paraminfo {@rep:required}
2405 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2406 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2407 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2408 * @param p_msg_count API standard: number of error messages
2409 * @rep:paraminfo {@rep:required}
2410 * @param p_msg_data API standard: error message
2411 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2412 * @param p_project_id The unique identifier of the project in Oracle Projects
2413 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2414 * @param p_task_number The number that identifies the task in Oracle Projects
2415 * @rep:paraminfo {@rep:required}
2416 * @param p_unique_task_number_flag Flag indicating whether or not this task number is unique in the project within Oracle Projects
2417 * @rep:scope public
2418 * @rep:lifecycle active
2419 * @rep:displayname Verify Task Number Uniqueness
2420 * @rep:category BUSINESS_ENTITY PA_PROJECT
2421 * @rep:category BUSINESS_ENTITY PA_TASK
2422 * @rep:compatibility S
2423 */
2424 PROCEDURE Check_Unique_Task_Number
2425 (p_api_version_number IN NUMBER
2426 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2430 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2427 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2428 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2429 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2431 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2432 , p_task_number IN VARCHAR2
2433 , p_unique_task_number_flag OUT NOCOPY VARCHAR2 ); --File.Sql.39 bug 4440895
2434
2435 /*#
2436 * This API is used to determine if you can change a tasks number.
2437 * @param p_api_version_number API standard version number
2438 * @rep:paraminfo {@rep:required}
2439 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2440 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2441 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2442 * @param p_msg_count API standard: number of error messages
2443 * @rep:paraminfo {@rep:required}
2444 * @param p_msg_data API standard: error message
2445 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2446 * @param p_project_id The unique identifier of the project in Oracle Projects
2447 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2448 * @param p_task_id The reference code that uniquely identifies a task within a project in Oracle Projects
2449 * @param p_pm_task_reference The reference code that identifies the task in the external system
2450 * @param p_task_number_change_Ok_flag Flag indicating whether or not the task number can be changed
2451 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2452 * @rep:scope public
2453 * @rep:lifecycle active
2454 * @rep:displayname Verify Task Number Change
2455 * @rep:category BUSINESS_ENTITY PA_PROJECT
2456 * @rep:category BUSINESS_ENTITY PA_TASK
2457 * @rep:compatibility S
2458 */
2459 PROCEDURE Check_Task_Number_Change_Ok
2460 ( p_api_version_number IN NUMBER
2461 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2462 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2463 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2464 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2465 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2466 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2467 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2468 , p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2469 , p_task_number_change_Ok_flag OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2470 );
2471
2472 /*#
2473 * This API procedure pushes project and task information from your external system to Oracle Projects to reflect any
2474 * changes you have made in the external system.
2475 * @param p_api_version_number API standard version number
2476 * @param p_commit API standard (default = F): indicates if transaction will be committed
2477 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2478 * @param p_msg_count API standard: number of error messages
2479 * @rep:paraminfo {@rep:required}
2480 * @param p_msg_data API standard: error message
2481 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2482 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2483 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2484 * @param p_workflow_started Flag indicating whether a workflow has been started
2485 * @rep:paraminfo {@rep:required}
2486 * @param p_pm_product_code Identifier of the external system from which the project was imported
2487 * @rep:paraminfo {@rep:precision 25}
2488 * @param p_op_validate_flag Indicates whether the system performs scheduling validations.
2489 * @rep:paraminfo {@rep:precision 1}
2490 * @param p_project_in Input project details
2491 * @rep:paraminfo {@rep:required}
2492 * @param p_project_out Output project details
2493 * @rep:paraminfo {@rep:required}
2494 * @param p_customers_in Input customer details
2495 * @param p_key_members The identifier for the role that the members have on the project
2496 * @rep:paraminfo {@rep:required}
2497 * @param p_class_categories Identifier of the the categories by which the project is classified
2498 * @rep:paraminfo {@rep:required}
2499 * @param p_tasks_in Input task details of the project
2500 * @rep:paraminfo {@rep:required}
2501 * @param p_tasks_out Output task details of the project
2502 * @rep:paraminfo {@rep:required}
2503 * @param p_org_roles Identifier of the organization roles for project
2504 * @param p_structure_in Identifier of structure data
2505 * @param p_ext_attr_tbl_in Table of external attributes
2506 * @param p_pass_entire_structure Flag indicating whether to pass entire structure.If you use the UPDATE_PROJECT API to
2507 * update structure tasks, and the financial and workplan
2508 * structures are either shared or split, this parameter
2509 * enables updates in one structure to pass to the
2510 * other structure.This enables you to take advantage
2511 * of bulk processing. When workplan and financial
2512 * structures are shared or split, this parameter
2513 * needs to be passed as 'Y.' When this happens, the
2514 * entire structure needs to be passed. Default = 'N'
2515 * @rep:paraminfo {@rep:precision 1}
2516 * @param p_deliverables_in Input deliverable details
2517 * @param p_deliverable_actions_in Input deliverable action details
2518 * @param p_update_mode This parameter can have the following
2519 * two values: PA_TASKS or PA_STRUCTURES. The default value is
2520 * PA_STRUCTURES. If the value is PA_TASKS, other users can update
2521 * task attributes in the structure at one time. (This excludes
2522 * the ability to update task-level deliverable attributes and task
2526 * @rep:paraminfo {@rep:precision 20}
2523 * attachments.) If the value is PA_STRUCTURES, the structure version
2524 * is locked during updates so that no other user can perform changes
2525 * to the structure.
2527 * @rep:scope public
2528 * @rep:lifecycle active
2529 * @rep:displayname Update Project
2530 * @rep:category BUSINESS_ENTITY PA_PROJECT
2531 * @rep:category BUSINESS_ENTITY PA_TASK
2532 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
2533 * @rep:compatibility S
2534 */
2535 PROCEDURE update_project
2536 ( p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2537 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
2538 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
2539 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2540 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2541 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2542 ,p_workflow_started OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2543 ,p_pm_product_code IN VARCHAR2
2544 ,p_op_validate_flag IN VARCHAR2 := 'Y' --added by rtarway 4218977
2545 ,p_project_in IN pa_project_pub.project_in_rec_type
2546 ,p_project_out OUT NOCOPY pa_project_pub.project_out_rec_type /*added the nocopy check for bug 2674619*/
2547 /* Added for tracking bug - add customers */
2548 ,p_customers_in IN pa_project_pub.customer_tbl_type := G_customers_in_tbl
2549 /*added default values for p_key_members and p_class_categories 3683732*/
2550 ,p_key_members IN pa_project_pub.project_role_tbl_type := G_key_members_in_tbl
2551 ,p_class_categories IN pa_project_pub.class_category_tbl_type := G_class_categories_in_tbl
2552 ,p_tasks_in IN pa_project_pub.task_in_tbl_type
2553 ,p_tasks_out OUT NOCOPY pa_project_pub.task_out_tbl_type /*added the nocopy check for bug 2674619*/
2554 -- anlee org role changes
2555 ,p_org_roles IN pa_project_pub.project_role_tbl_type := G_org_roles_in_tbl
2556 --project structures
2557 ,p_structure_in IN structure_in_rec_type := G_structure_in_rec
2558 ,p_ext_attr_tbl_in IN PA_EXT_ATTR_TABLE_TYPE := G_ext_attr_in_tbl
2559 -- ,p_structure_out OUT structure_out_rec_type
2560 ,p_pass_entire_structure IN VARCHAR2 := 'N' -- bug 3548473 : BUg 3627124
2561 --project structures
2562 --3435905 FP M : deliverables
2563 ,p_deliverables_in IN deliverable_in_tbl_type := G_deliverables_in_tbl -- 3435905 passing default
2564 -- ,p_deliverables_out OUT NOCOPY deliverable_out_tbl_type -- 3435905 removed out parameter
2565 ,p_deliverable_actions_in IN action_in_tbl_type := G_deliverable_actions_in_tbl -- 3435905 passing default
2566 -- ,p_deliverable_actions_out OUT NOCOPY action_out_tbl_type -- 3435905 removed out parameter
2567 --3435905 FP M : deliverables
2568 ,p_update_mode in varchar2 := 'PA_UPD_WBS_ATTR' --DHI ER, BUG 4413568 --bug4534919
2569 );
2570
2571 /*#
2572 * This API is used to update existing tasks of a project in Oracle Projects.
2573 * @param p_api_version_number API standard version number
2574 * @param p_commit API standard (default = F): indicates if transaction will be committed
2575 * @rep:paraminfo {@rep:precision 1}
2576 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2577 * @param p_msg_count API standard: number of error messages
2578 * @rep:paraminfo {@rep:required}
2579 * @param p_msg_data API standard: error message
2580 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2581 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2582 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2583 * @param p_ref_task_id The reference code that uniquely identifies the reference to a task within a project in Oracle Projects
2584 * @param p_pm_product_code Identifier of the external system from which the project was imported
2585 * @rep:paraminfo {@rep:precision 25}
2586 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
2587 * @param p_pa_project_id The reference code that uniquely identifies the project in the Oracle Projects
2588 * @param p_pm_task_reference The reference code that uniquely identifies project's task in the external system
2589 * @param p_task_number The number that identifies the task in Oracle Projects
2590 * @rep:paraminfo {@rep:precision 25} {@rep:required}
2594 * @param p_task_description Description of the task
2591 * @param p_pa_task_id The reference code that uniquely identifies the task within a project in Oracle Projects
2592 * @param p_task_name The name that uniquely identifies the task within a project
2593 * @param p_long_task_name Long name of the task
2595 * @param p_task_start_date The start date of the task
2596 * @param p_task_completion_date The completion date of the task
2597 * @param p_pm_parent_task_reference The unique reference code that identifies the task's parent task
2598 * @param p_pa_parent_task_id The identifier of task's parent task in Oracle Projects
2599 * @param p_address_id The address of one of the customers that is logically linked to this task
2600 * @param p_carrying_out_organization_id The identifier of the organization that is responsible for the project work
2601 * @param p_service_type_code The type of work performed on the task
2602 * @param p_task_manager_person_id The identifier of the employee who manages the task
2603 * @param p_billable_flag Flag indicating whether items charged to the task can accrue revenue
2604 * @rep:paraminfo {@rep:precision 1}
2605 * @param p_chargeable_flag Flag indicating whether expenditure items can be charged to the task. Only lowest level tasks can be chargeable
2606 * @rep:paraminfo {@rep:precision 1}
2607 * @param p_ready_to_bill_flag Flag indicating whether the task is authorized to be invoiced
2608 * @rep:paraminfo {@rep:precision 1}
2609 * @param p_ready_to_distribute_flag Flag indicating whether the task is authorized for revenue accrual
2610 * @rep:paraminfo {@rep:precision 1}
2611 * @param p_limit_to_txn_controls_flag Flag indicating whether users can only charge expenditures to
2612 * the tasks that are listed in task transaction controls
2613 * @rep:paraminfo {@rep:precision 1}
2614 * @param p_labor_bill_rate_org_id The identifier of the organization that owns the labor standard bill rate schedule
2615 * @param p_labor_std_bill_rate_schdl The labor standard bill rate schedule that is used to calculate revenue for labor
2616 * expenditure items charged to the task
2617 * @param p_labor_schedule_fixed_date The date used to determine the effective bill rates of the task standard labor bill rate schedule
2618 * @param p_labor_schedule_discount The discount percent for the task standard labor bill rate schedule
2619 * @param p_nl_bill_rate_org_id The identifier of the organization that owns the non-labor standard bill rate schedule
2620 * @param p_nl_std_bill_rate_schdl The non-labor standard bill rate schedule that is used to calculate revenue for non-labor
2621 * expenditure items charged to the task
2622 * @param p_nl_schedule_fixed_date The fixed date used to determine the effective bill rates of the standard non-labor bill rate schedule
2623 * @param p_nl_schedule_discount The discount percent for the task standard non-labor bill rate schedule
2624 * @param p_labor_cost_multiplier_name The labor cost multiplier defined for the task of a premium project
2625 * @param p_cost_ind_rate_sch_id The identifier of the default costing burden schedule
2626 * @param p_rev_ind_rate_sch_id The identifier of the default revenue burden schedule
2627 * @param p_inv_ind_rate_sch_id The identifier of the default invoice burden schedule
2628 * @param p_cost_ind_sch_fixed_date The schedule fixed date of the firm costing burden schedule
2629 * @param p_rev_ind_sch_fixed_date The schedule fixed date of the firm revenue burden schedule
2630 * @param p_inv_ind_sch_fixed_date The schedule fixed date of the firm invoice burden schedule
2631 * @param p_labor_sch_type The schedule type of labor expenditure items
2632 * @param p_nl_sch_type The schedule type of non-labor expenditure items
2633 * @param p_actual_start_date The actual start date of the project
2634 * @param p_actual_finish_date The actual end date of the project. Applicable only for a project that originated in an external system.
2635 * @param p_early_start_date The early start date of the project. Applicable only for a project that originated in an external system.
2636 * @param p_early_finish_date The early finish date of the project. Applicable only for a project that originated in an external system.
2637 * @param p_late_start_date The late start date of the project. Applicable only for a project that originated in an external system.
2638 * @param p_late_finish_date The late finish date of the project. Applicable only for a project that originated in an external system.
2639 * @param p_scheduled_start_date The scheduled start date of the project
2640 * @param p_scheduled_finish_date The scheduled finish date of the project
2641 * @param p_attribute_category Descriptive flexfield category
2642 * @param p_attribute1 Identifies Descriptive flexfield
2643 * @param p_attribute2 Identifies Descriptive flexfield
2644 * @param p_attribute3 Identifies Descriptive flexfield
2645 * @param p_attribute4 Identifies Descriptive flexfield
2646 * @param p_attribute5 Identifies Descriptive flexfield
2650 * @param p_attribute9 Identifies Descriptive flexfield
2647 * @param p_attribute6 Identifies Descriptive flexfield
2648 * @param p_attribute7 Identifies Descriptive flexfield
2649 * @param p_attribute8 Identifies Descriptive flexfield
2651 * @param p_attribute10 Identifies Descriptive flexfield
2652 * @param p_allow_cross_charge_flag Flag indicating whether cross charges are allowed
2653 * @param p_project_rate_date Task-level default value for project rate date
2654 * @param p_project_rate_type Task-level default value for project rate type
2655 * @param p_cc_process_labor_flag Flag indicating whether cross charge processing is to be performed for labor transactions charged
2656 * to the project. The default value for the project template is N. The default value for a project is the value on the project template.
2657 * The default value for a task is the value on the project.
2658 * @rep:paraminfo {@rep:precision 1}
2659 * @param p_labor_tp_schedule_id Identifier of the transfer price schedule to use for cross charged labor transactions. The default value
2660 * for a project is the value on the project template. The default value for a task is the value on the project. If cc_process_labor_flag is
2661 * set to Y, this field is required.
2662 * @param p_labor_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining the transfer price
2663 * for labor transactions. The default value for a project is the value on the project template. The default value for a task is the value on
2664 * the project.
2665 * @param p_cc_process_nl_flag Flag indicating whether cross charge processing is to be performed for non-labor transactions charged to the project.
2666 * The default value for the project template is N. The default value for a project is the value on the project template. The default value for a
2667 * task is the value on the project.
2668 * @rep:paraminfo {@rep:precision 1}
2669 * @param p_nl_tp_schedule_id Identifier of the transfer price schedule to use for cross charged non-labor transactions. The default value for a
2670 * project is the value on the project template. The default value for a task is the value on the project. If cc_process_nl_flag is set to Y,
2671 * this field is required.
2672 * @param p_nl_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining the transfer price for
2673 * non-labor transactions. The default value for a project is the value on the project template. The default value for a task is the value on the project.
2674 * @param p_receive_project_invoice_flag Flag indicating whether the task can receive charges from internal supplies using inter project billing
2675 * @rep:paraminfo {@rep:precision 1}
2676 * @param p_work_type_id Identifier of the work type
2677 * @param p_emp_bill_rate_schedule_id Identifier of the employee bill rate schedule
2678 * @param p_job_bill_rate_schedule_id Identifier of the job bill rate schedule
2679 * @param p_non_lab_std_bill_rt_sch_id Identifier of the non-labor standard bill rate schedule
2680 * @param p_taskfunc_cost_rate_type Task-level default value for project functional cost rate type
2681 * @param p_taskfunc_cost_rate_date Task-level default value for project functional cost rate date
2682 * @param p_structure_type Identifier of the project structure type
2683 * @param p_structure_version_id Identifier of the structure version.
2684 * @param P_OBLIGATION_START_DATE The obligation start date of the workplan version
2685 * @param P_OBLIGATION_FINISH_DATE The obligation finish date of the workplan version
2686 * @param P_ESTIMATED_START_DATE The estimated start date of the workplan version
2687 * @param P_ESTIMATED_FINISH_DATE The estimated finish date of the workplan version
2688 * @param P_BASELINE_START_DATE Baseline start date for the task or the workplan
2689 * @param P_BASELINE_FINISH_DATE Baseline finish date for the task or the workplan
2690 * @param P_CLOSED_DATE The date that the element status was set to Closed. This is a task-specific attribute.
2691 * @param P_WQ_UOM_CODE The unit of measure used for work quantity for a task
2692 * @param P_WQ_ITEM_CODE The work item for work quantity for a task
2693 * @param P_STATUS_CODE The status of the project element
2694 * @param P_WF_STATUS_CODE The status of workflow associated with the element
2695 * @param P_PM_SOURCE_CODE Identifier of the the source code system
2696 * @param P_PRIORITY_CODE The priority of the task. This is a task-specific attribute.
2697 * @param P_MILESTONE_FLAG Flag indicating whether the task version is a milestone. This is a task-specific attribute.
2698 * @param P_CRITICAL_FLAG Flag indicating whether the task version is part of the critical path
2699 * @param P_INC_PROJ_PROGRESS_FLAG Project progress flag
2700 * @param P_LINK_TASK_FLAG Flag indicating whether a task is used for linking purposes and is therefore not displayed in the user interface
2701 * @param P_CALENDAR_ID The identifier of the work calendar used to schedule the task. This is a task-specific attribute.
2702 * @param P_PLANNED_EFFORT The planned effort for the task
2703 * @param P_DURATION The number of days between scheduled start date and scheduled end date using the work calendar
2704 * @param P_PLANNED_WORK_QUANTITY The planned work quantity for the task
2705 * @param P_TASK_TYPE The task type
2706 * @param p_labor_disc_reason_code Labor discount reason code
2707 * @param p_non_labor_disc_reason_code Non-labor discount reason code
2708 * @param p_retirement_cost_flag Flag indicating whether the task is identified for retirement cost collection.
2709 * @rep:paraminfo {@rep:precision 1}
2710 * @param p_cint_eligible_flag Flag indicating whether the project is eligible for capitalized interest
2711 * @rep:paraminfo {@rep:precision 1}
2712 * @param p_cint_stop_date Stop date for capital interest calculation
2713 * @param p_out_pa_task_id Identifier of the output task
2714 * @rep:paraminfo {@rep:required}
2715 * @param p_out_pm_task_reference Unique identifier for the task in the external system
2716 * @rep:paraminfo {@rep:required}
2720 * @rep:paraminfo {@rep:precision 400} {@rep:required}
2717 * @param p_update_task_structure Task structure
2718 * @param p_process_mode Processing mode
2719 * @param p_pred_string The string containing the predecessors information
2721 * @param p_pred_delimiter Delimiter that separates predecessor in the predecessor string
2722 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2723 * @param p_base_percent_comp_deriv_code Base percent complete derivation code for the task
2724 * @rep:paraminfo {@rep:precision 30} {@rep:required}
2725 * @param p_sch_tool_tsk_type_code Default scheduling tool task type for the task version
2726 * @rep:paraminfo {@rep:precision 30} {@rep:required}
2727 * @param p_constraint_type_code Constraint type for the task version
2728 * @rep:paraminfo {@rep:precision 30} {@rep:required}
2729 * @param p_constraint_date Constraint date for the task version
2730 * @rep:paraminfo {@rep:required}
2731 * @param p_free_slack Free slack for the task version
2732 * @rep:paraminfo {@rep:required}
2733 * @param p_total_slack Total slack for task version
2734 * @rep:paraminfo {@rep:required}
2735 * @param p_effort_driven_flag The flag that indicates whether the task is effort driven
2736 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2737 * @param p_level_assignments_flag Flag that indicates whether the assignments
2738 * on this task should be leveled
2739 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2740 * @param p_invoice_method The invoice method for the task. This parameter is valid only if invoice
2741 * method at top task is enabled.
2742 * @rep:paraminfo {@rep:precision 30} {@rep:required}
2743 * @param p_customer_id The customer for the task. This parameter is valid only if customer at top task is enabled.
2744 * @rep:paraminfo {@rep:required}
2745 * @param p_gen_etc_source_code Estimate to complete source
2746 * @rep:paraminfo {@rep:precision 30} {@rep:required}
2747 * @param p_financial_task_flag The flag that indicates
2748 * whether the task is a financial task or not. This flag
2749 * is valid only for partially shared structures. Tasks
2750 * that are above this level are used for financial management.
2751 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2752 * @param p_mapped_task_id Mapped task ID. This is parameter only in case of split-mapped structure
2753 * sharing between workplan and financial structures.
2754 * @rep:paraminfo {@rep:required}
2755 * @param p_mapped_task_reference Mapped task reference
2756 * @rep:paraminfo {@rep:required}
2757 * @param p_deliverable Deliverable reference to be associated with the task
2758 * @rep:paraminfo {@rep:precision 4000}
2759 * @param p_ext_act_duration From the external application, the actual duration
2760 * @rep:paraminfo {@rep:required}
2761 * @param p_ext_remain_duration From the external application, the remaining duration
2762 * @rep:paraminfo {@rep:required}
2763 * @param p_ext_sch_duration From the external application, the scheduled duration
2764 * @rep:paraminfo {@rep:required}
2765 * @param p_etc_effort Estimated remaining effort for the task
2766 * @rep:paraminfo {@rep:required}
2767 * @param p_percent_complete Percentage of work complete on the task
2768 * @rep:paraminfo {@rep:required}
2769 * @param p_is_wp_seperate_from_fn Flag that indicates whether Workplan structure is shared with financial structure or not. Default='X'
2770 * @param p_calling_api The calling API name. (Default = 'UPDATE_TASK')
2771 * @param p_op_validate_flag Flag indicating whether the system performs scheduling validations. Default is Y.
2772 * @rep:paraminfo {@rep:precision 1}
2773 * @rep:category BUSINESS_ENTITY PA_PROJECT
2774 * @rep:category BUSINESS_ENTITY PA_TASK
2775 * @rep:scope public
2776 * @rep:lifecycle active
2777 * @rep:displayname Update Task
2778 * @rep:compatibility S
2779 */
2780 PROCEDURE update_task
2781 ( p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2782 p_commit IN VARCHAR2 := FND_API.G_FALSE,
2783 p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE,
2784 p_msg_count OUT NOCOPY NUMBER, --File.Sql.39 bug 4440895
2785 p_msg_data OUT NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
2786 p_return_status OUT NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
2787 --Project Structures
2788 p_ref_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2789 --Project Structures
2790 p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2791 p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2792 p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2793 p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2794 p_task_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2795 p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2796 p_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2797 p_long_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2798 p_task_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2799 p_task_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2800 p_task_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2801 p_pm_parent_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2802 p_pa_parent_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2803 p_address_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2807 p_billable_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2804 p_carrying_out_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2805 p_service_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2806 p_task_manager_person_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2808 p_chargeable_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2809 p_ready_to_bill_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2810 p_ready_to_distribute_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2811 p_limit_to_txn_controls_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2812 p_labor_bill_rate_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2813 p_labor_std_bill_rate_schdl IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2814 p_labor_schedule_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2815 p_labor_schedule_discount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2816 p_nl_bill_rate_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2817 p_nl_std_bill_rate_schdl IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2818 p_nl_schedule_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2819 p_nl_schedule_discount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2820 p_labor_cost_multiplier_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2821 p_cost_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2822 p_rev_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2823 p_inv_ind_rate_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2824 p_cost_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2825 p_rev_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2826 p_inv_ind_sch_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2827 p_labor_sch_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2828 p_nl_sch_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2829 p_actual_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2830 p_actual_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2831 p_early_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2832 p_early_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2833 p_late_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2834 p_late_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2835 p_scheduled_start_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2836 p_scheduled_finish_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2837 p_tasks_dff IN VARCHAR2 := 'N', --bug 6153503
2838 p_attribute_category IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2839 p_attribute1 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2840 p_attribute2 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2841 p_attribute3 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2842 p_attribute4 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2843 p_attribute5 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2844 p_attribute6 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2845 p_attribute7 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2846 p_attribute8 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2847 p_attribute9 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2848 p_attribute10 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2849 --bug 6153503
2850 p_attribute11 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2851 p_attribute12 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2852 p_attribute13 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2853 p_attribute14 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2854 p_attribute15 IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2855 --end bug 6153503
2856 p_allow_cross_charge_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2857 p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2858 p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2859 p_cc_process_labor_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2860 p_labor_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2861 p_labor_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2862 p_cc_process_nl_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2863 p_nl_tp_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2864 p_nl_tp_fixed_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2865 p_receive_project_invoice_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2866 p_work_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2867 p_emp_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2871 p_taskfunc_cost_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2868 p_job_bill_rate_schedule_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2869 --Sakthi MCB
2870 p_non_lab_std_bill_rt_sch_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2872 p_taskfunc_cost_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2873 --Sakthi MCB
2874 --Project Structures
2875 p_structure_type IN VARCHAR2 := 'FINANCIAL',
2876 p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2877 P_OBLIGATION_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2878 P_OBLIGATION_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2879 P_ESTIMATED_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2880 P_ESTIMATED_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2881 P_BASELINE_START_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2882 P_BASELINE_FINISH_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2883 P_CLOSED_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2884 P_WQ_UOM_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2885 P_WQ_ITEM_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2886 P_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2887 P_WF_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2888 P_PM_SOURCE_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2889 P_PRIORITY_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2890 P_MILESTONE_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2891 P_CRITICAL_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2892 P_INC_PROJ_PROGRESS_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2893 P_LINK_TASK_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2894 P_CALENDAR_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2895 P_PLANNED_EFFORT IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2896 P_DURATION IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2897 P_PLANNED_WORK_QUANTITY IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2898 P_TASK_TYPE IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2899 --Project Structures
2900 p_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2901 p_non_labor_disc_reason_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2902 --PA L changes -- bug 2872708 --update_task
2903 p_retirement_cost_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2904 p_cint_eligible_flag VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
2905 p_cint_stop_date DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE,
2906 --end PA L changes -- bug 2872708
2907 p_out_pa_task_id OUT NOCOPY NUMBER, --File.Sql.39 bug 4440895
2908 p_out_pm_task_reference OUT NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
2909 p_update_task_structure IN VARCHAR2 := 'Y' -- Added new parameter for performance changes. Bug 2931183
2910 -- PA L Changes 3010538
2911 ,p_process_mode IN VARCHAR2 := 'ONLINE'
2912 -- FP-M Bug # 3301192
2913 ,p_pred_string VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2914 -- ,p_pred_delimiter VARCHAR2 DEFAULT ','
2915 ,p_pred_delimiter VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2916 -- FP M changes begin (venkat)
2917 ,p_base_percent_comp_deriv_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2918 ,p_sch_tool_tsk_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2919 ,p_constraint_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2920 ,p_constraint_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
2921 ,p_free_slack IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2922 ,p_total_slack IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2923 ,p_effort_driven_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2924 ,p_level_assignments_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2925 ,p_invoice_method IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2926 ,p_customer_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2927 ,p_gen_etc_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2928 -- FP M changes end (venkat)
2929 -- FP M changes start (Mapping )
2930 ,p_financial_task_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2931 ,p_mapped_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2932 ,p_mapped_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
2933 -- FP M changes end (Mapping )
2934 ,p_deliverable IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR --3435905
2935 -- (Begin venkat) Bug #3450684 --------------------------------------------------------------------
2936 ,p_ext_act_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2937 ,p_ext_remain_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2938 ,p_ext_sch_duration IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2939 -- (End venkat) Bug #3450684 --------------------------------------------------------------------
2940
2941 -- Progress Management Changes. Bug # 3420093.
2942 ,p_etc_effort IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2943 ,p_percent_complete IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2947 ,p_op_validate_flag IN VARCHAR2 := 'Y' --added by rtarway 4218977
2944 -- Progress Management Changes. Bug # 3420093.
2945 ,p_is_wp_seperate_from_fn IN VARCHAR2 := 'X' -- Added for Bug # 3451073
2946 ,p_calling_api IN VARCHAR2 := 'UPDATE_TASK' -- Added for Bug # 4199694
2948 );
2949
2950 /*#
2951 * This API procedure is used to update an existing project, including changing or adding project data,
2952 * adding new tasks, and updating existing tasks. This API does not delete tasks; rather, it uses the
2953 * data stored in the global tables during the Load process.
2954 * In order to execute this API the following list of API's should be executed in the following order.
2955 * INIT_PROJECT,
2956 * LOAD_PROJECT,
2957 * LOAD_TASK,
2958 * LOAD_CLASS_CATEGORY,
2959 * LOAD_KEY_MEMBER,
2960 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
2961 * FETCH_TASK and
2962 * CLEAR_PROJECT
2963 * @param p_api_version_number API standard version number
2964 * @param p_commit API standard (default = F): indicates if transaction will be committed
2965 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
2966 * @param p_op_validate_flag Indicates whether the system performs scheduling validations. Default is Y.
2967 * @rep:paraminfo {@rep:precision 1}
2968 * @param p_msg_count API standard: number of error messages
2969 * @rep:paraminfo {@rep:required}
2970 * @param p_msg_data API standard: error message
2971 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
2972 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
2973 * @rep:paraminfo {@rep:precision 1} {@rep:required}
2974 * @param p_workflow_started Indicates if a workflow has been started (Y or N)
2975 * @rep:paraminfo {@rep:required}
2976 * @param p_pm_product_code Identifier of the external system from which the project was imported
2977 * @rep:paraminfo {@rep:precision 25}
2978 * @param p_pass_entire_structure In situations where structures are completely shared,
2979 * this parameter enables updates to one structure to pass to the other structure(s). Default = 'N'.
2980 * @rep:paraminfo {@rep:precision 1}
2981 * @param p_update_mode Update mode. This parameter can have the following two
2982 * values:PA_TASKS or PA_STRUCTURES. The default value is PA_STRUCTURES.
2983 * If the value is PA_TASKS, other users can update task attributes in the
2984 * structure at one time. (This excludes the ability to update
2985 * task-level deliverable attributes and task attachments). If the value is
2986 * PA_STRUCTURES, the structure version is locked during updates
2987 * so that no other user can perform changes to the structure.
2988 * @rep:paraminfo {@rep:precision 20}
2989 * @rep:scope public
2990 * @rep:lifecycle active
2991 * @rep:displayname Create Multiple Projects: Execute Update Project
2992 * @rep:category BUSINESS_ENTITY PA_PROJECT
2993 * @rep:category BUSINESS_ENTITY PA_TASK
2994 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
2995 * @rep:compatibility S
2996 */
2997 PROCEDURE execute_update_project
2998 ( p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2999 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
3000 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3001 ,p_op_validate_flag IN VARCHAR2 := 'Y'--added by rtarway, bug 4218977
3002 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3003 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3004 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3005 ,p_workflow_started OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3006 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3007 ,p_pass_entire_structure IN VARCHAR2 := 'N' -- Added for bug 3696234 : Bug 3627124
3008 ,p_update_mode IN VARCHAR2 := 'PA_UPD_WBS_ATTR'--DHI ER BUG 4413568 --bug 4534919
3009 );
3010
3011 /*#
3012 * This API procedure is used to delete a project and its tasks from Oracle Projects.
3013 * @param p_api_version_number API standard version number
3014 * @param p_commit API standard (default = F): indicates if transaction will be committed
3015 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3016 * @param p_msg_count API standard: number of error messages
3017 * @rep:paraminfo {@rep:required}
3018 * @param p_msg_data API standard: error message
3022 * @param p_pm_product_code Identifier of the external system from which the project was imported
3019 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
3020 * @param p_return_status API standard: return of the API (success/failure/unexpected error)
3021 * @rep:paraminfo {@rep:precision 1} {@rep:required}
3023 * @rep:paraminfo {@rep:precision 25}
3024 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
3025 * @param p_pa_project_id The unique identifier of the project in Oracle Projects
3026 * @rep:scope public
3027 * @rep:lifecycle active
3028 * @rep:displayname Delete Project
3029 * @rep:category BUSINESS_ENTITY PA_PROJECT
3030 * @rep:compatibility S
3031 */
3032 PROCEDURE delete_project
3033 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3034 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
3035 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3036 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3037 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3038 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3039 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3040 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3041 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM );
3042
3043
3044 PROCEDURE approve_project
3045 ( p_api_version_number IN NUMBER
3046 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
3047 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3048 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3049 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3050 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3051 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3052 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3053 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM );
3054
3055
3056 /*#
3057 * This is a Load-Execute-Fetch procedure used to load tasks to a global
3058 * PL/SQL table.
3059 * In order to execute this API,the following list of API's should be executed in the following order.:
3060 * INIT_PROJECT,
3061 * LOAD_PROJECT,
3062 * LOAD_TASKS,
3063 * LOAD_CLASS_CATEGORY,
3064 * LOAD_KEY_MEMBER,
3065 * EXECUTE_CREATE_PROJECT/EXECUTE_UPDATE_PROJECT,
3066 * FETCH_TASK and
3067 * CLEAR_PROJECT
3068 * @param p_api_version_number API standard: version number
3069 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3070 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3071 * @rep:paraminfo {@rep:precision 1} {@rep:required}
3072 * @param p_pm_task_reference The reference code that uniquely identifies the project task in the external system
3073 * @param p_pa_task_id The reference code that uniquely identifies the task in a project in Oracle Projects
3074 * @param p_task_name The name that uniquely identifies a task in a project
3075 * @param p_long_task_name The long name of a task
3076 * @param p_pa_task_number The number that indicates the task in the Oracle Projects
3077 * @param p_task_description Description of the task
3078 * @param p_task_start_date The date on which the task starts
3079 * @param p_task_completion_date The date on which the task is completed
3080 * @param p_pm_parent_task_reference The unique reference code that identifies the task's parent task
3081 * @param p_pa_parent_task_id Identifier of the task's parent task in Oracle Projects
3082 * @param p_address_id The address identifier of one of the customers that is logically linked to this task
3083 * @param p_carrying_out_organization_id The identifier of the organization that is responsible for the project work
3084 * @param p_service_type_code The type of work performed on the task
3085 * @param p_task_manager_person_id The identifier of the employee who manages the task
3086 * @param p_billable_flag Default flag for items charged to the task that indicates whether the item can accrue revenue (Y or N)
3087 * @rep:paraminfo {@rep:precision 1}
3088 * @param p_chargeable_flag Flag that indicates if expenditure items can be charged to the task. Only lowest tasks can be charged
3089 * @rep:paraminfo {@rep:precision 1}
3090 * @param p_ready_to_bill_flag Flag that indicates if the task is authorized to be invoiced
3091 * @rep:paraminfo {@rep:precision 1}
3092 * @param p_ready_to_distribute_flag Flag that indicates if the task is authorized for revenue accrual
3093 * @rep:paraminfo {@rep:precision 1}
3094 * @param p_limit_to_txn_controls_flag Flag that indicates if users can only charge expenditures to the task that are listed in
3095 * task transaction controls
3096 * @rep:paraminfo {@rep:precision 1}
3097 * @param p_labor_bill_rate_org_id The identifier of the organization that owns the labor standard bill rate schedule
3098 * @param p_labor_std_bill_rate_schdl The labor standard bill rate schedule that is used to calculate revenue for labor expenditure
3099 * items charged to the task
3100 * @param p_labor_schedule_fixed_date The date used to determine the effective bill rates of the task standard labor bill rate schedule.
3101 * @param p_labor_schedule_discount The percentage to be discounted from the task standard labor bill rate schedule
3102 * @param p_nl_bill_rate_org_id The identifier of the organization that owns the non-labor standard bill rate schedule
3103 * @param p_nl_std_bill_rate_schdl The non-labor standard bill rate schedule that is used to calculate revenue for non-labor
3104 * expenditure items charged to the task
3108 * @param p_cost_ind_rate_sch_id The identifier of default costing burden schedule
3105 * @param p_nl_schedule_fixed_date The fixed date used to determine the effective bill rates of the standard non-labor bill rate schedule
3106 * @param p_nl_schedule_discount The percentage to be discounted from the task standard non-labor bill rate schedule
3107 * @param p_labor_cost_multiplier_name The labor cost multiplier defined for the task of a premium project
3109 * @param p_rev_ind_rate_sch_id The identifier of default revenue burden schedule
3110 * @param p_inv_ind_rate_sch_id The identifier of default invoice burden schedule
3111 * @param p_cost_ind_sch_fixed_date The schedule fixed date of firm costing burden schedule
3112 * @param p_rev_ind_sch_fixed_date The schedule fixed date of firm revenue burden schedule
3113 * @param p_inv_ind_sch_fixed_date The schedule fixed date of firm invoice burden schedule
3114 * @param p_labor_sch_type The schedule type of labor expenditure items
3115 * @param p_nl_sch_type The schedule type of non labor expenditure items
3116 * @param p_actual_start_date The actual start date of the project. Applicable only for a project that originated in
3117 * an external system.
3118 * @param p_actual_finish_date The actual end date of the project. Applicable only for a project that originated in
3119 * an external system.
3120 * @param p_early_start_date The early start date of the project. Applicable only for a project that originated in an external system.
3121 * @param p_early_finish_date The early finish date of the project. Applicable only for a project that originated in an external
3122 * system.
3123 * @param p_late_start_date The late start date of the project. Applicable only for a project that originated in an external system.
3124 * @param p_late_finish_date The late finish date of the project. Applicable only for a project that originated in an external system.
3125 * @param p_scheduled_start_date The scheduled start date of the project
3126 * @param p_scheduled_finish_date The scheduled finish date of the project
3127 * @param p_attribute_category Descriptive flexfield category
3128 * @param p_attribute1 Descriptive flexfield attribute
3129 * @param p_attribute2 Descriptive flexfield attribute
3130 * @param p_attribute3 Descriptive flexfield attribute
3131 * @param p_attribute4 Descriptive flexfield attribute
3132 * @param p_attribute5 Descriptive flexfield attribute
3133 * @param p_attribute6 Descriptive flexfield attribute
3134 * @param p_attribute7 Descriptive flexfield attribute
3135 * @param p_attribute8 Descriptive flexfield attribute
3136 * @param p_attribute9 Descriptive flexfield attribute
3137 * @param p_attribute10 Descriptive flexfield attribute
3138 * @param p_allow_cross_charge_flag Flag indicating if cross-charge is allowed
3139 * @param p_project_rate_date Task level default value for project rate date
3140 * @param p_project_rate_type Task level default value for project rate type
3141 * @param p_cc_process_labor_flag Flag that indicates if cross-charge processing is to be performed for labor
3142 * transactions charged to the project. The default value for the project template is N.
3143 * @rep:paraminfo {@rep:precision 1}
3144 * @param p_labor_tp_schedule_id Identifier of the transfer price schedule to use for cross-charged labor transactions.
3145 * If P_CC_PROCESS_LABOR_FLAG is set to Y, this field is required.
3146 * @param p_labor_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when
3147 * determining the transfer price for labor transactions.
3148 * @param p_cc_process_nl_flag Flag that indicates if cross-charge processing is to be performed for non-labor transactions
3149 * charged to the project. The default value for the project template is N.
3150 * @rep:paraminfo {@rep:precision 1}
3151 * @param p_nl_tp_schedule_id Identifier of the transfer price schedule to use for cross-charged non labor transactions.
3152 * If P_CC_PROCESS_NL_FLAG is set to Y, this field is required.
3153 * @param p_nl_tp_fixed_date Fixed date to find the effective rate of the bill rate or burden schedule when determining
3154 * the transfer price for non-labor transactions.
3155 * @param p_receive_project_invoice_flag Flag that indicates if the task can receive charges from internal supplies
3156 * using inter-project billing
3157 * @rep:paraminfo {@rep:precision 1}
3158 * @param p_work_type_id Identifier for predefined types of work
3159 * @param p_emp_bill_rate_schedule_id Identifier of the employee bill rate schedule
3160 * @param p_job_bill_rate_schedule_id Identifier of the job bill rate schedule
3161 * @param p_non_lab_std_bill_rt_sch_id Identifier of the non-labor standard bill rate schedule
3162 * @param p_taskfunc_cost_rate_type Task level default value for project functional cost rate type
3163 * @param p_taskfunc_cost_rate_date Task level default value for project functional cost rate date
3164 * @param p_display_sequence Order of display
3165 * @param p_wbs_level The level of the task in the work breakdown structure
3166 * @param p_milestone Flag that indicates if the task version is a milestone. This is a task-specific attribute.
3170 * @param p_critical_flag Flag that indicates if the task version is part of the critical path.
3167 * @param p_duration The duration between scheduled start date and scheduled end date using the calendar
3168 * @param p_duration_unit The unit of duration between scheduled start date and scheduled end date using the calendar
3169 * @param p_login_user_name The logged in user name
3171 * This is a task-specific attribute.
3172 * @param p_sub_project_id The unique identifier of the sub project associated with the task
3173 * @param p_progress_status_code The progress status code
3174 * @param p_progress_comments Progress comments
3175 * @param p_progress_asof_date The cycle date on which progress information can be entered
3176 * @param p_progress_description Progress description
3177 * @param p_predecessors The predecessor for specified task. This parameter is applicable for workplan tasks.
3178 * @param p_priority_code The priority of the task. This is a task-specific attribute.
3179 * @param p_wbs_number Outline number for the task
3180 * @param P_ESTIMATED_START_DATE The estimated start date of the workplan version
3181 * @param P_ESTIMATED_FINISH_DATE The estimated finish date of the workplan version
3182 * @param p_estimate_to_complete Estimated time to complete the task
3183 * @param p_language Language in which the task details are stored
3184 * @param p_delimiter Delimiter that separates predecessors in the predecessor string
3185 * @param p_structure_version_id Unique identifier of the workplan structure
3186 * @param P_OBLIGATION_START_DATE The obligation start date of the workplan version
3187 * @param P_OBLIGATION_FINISH_DATE The obligation finish date of the workplan version
3188 * @param P_BASELINE_START_DATE Baseline start date for the task or the workplan
3189 * @param P_BASELINE_FINISH_DATE Baseline finish date for the task or the workplan
3190 * @param P_CLOSED_DATE The date that the element status was set to Closed. This is a task-specific attribute.
3191 * @param P_WQ_UOM_CODE The unit of measure used for work quantity for a task
3192 * @param P_WQ_ITEM_CODE The work item for work quantity for a task
3193 * @param P_STATUS_CODE The status of the project element.
3194 * @param P_WF_STATUS_CODE The status of workflow associated with the element
3195 * @param P_PM_SOURCE_CODE Identifier of the source code system
3196 * @param P_INC_PROJ_PROGRESS_FLAG Flag indicating the project progress
3197 * @param P_LINK_TASK_FLAG Flag indicating whether a task is used for linking purposes and is not displayed in the user interface
3198 * @param P_CALENDAR_ID The identifier of the calendar used to schedule the task. This is a task-specific attribute.
3199 * @param P_PLANNED_EFFORT The planned effort for the task
3200 * @param P_PLANNED_WORK_QUANTITY The planned work quantity for the task
3201 * @param P_TASK_TYPE Type of task
3202 * @param p_labor_disc_reason_code Labor discount reason code
3203 * @param p_non_labor_disc_reason_code Non-labor discount reason code
3204 * @param p_retirement_cost_flag Flag indicating whether the task is identified for retirement cost collection
3205 * @rep:paraminfo {@rep:precision 1}
3206 * @param p_cint_eligible_flag Flag indicating whether the project is eligible for capitalized interest
3207 * @rep:paraminfo {@rep:precision 1}
3208 * @param p_cint_stop_date Stop date for capital interest calculation
3209 * @param p_pred_string The string containing the predecessor information
3210 * @rep:paraminfo {@rep:precision 400} {@rep:required}
3211 * @param p_pred_delimiter Delimiter that separates predecessors in the predecessor string
3212 * @rep:paraminfo {@rep:precision 1} {@rep:required}
3213 * @param p_deliverable Deliverable reference to be associated with the task
3214 * @rep:paraminfo {@rep:precision 4000}
3215 * @param p_deliverable_id Deliverable identifier to be associated with a task
3216 * @param p_base_percent_comp_deriv_code Base percent complete derivation code for the task
3217 * @rep:paraminfo {@rep:precision 30} {@rep:required}
3218 * @param p_sch_tool_tsk_type_code Default scheduling tool task type for the task version
3219 * @rep:paraminfo {@rep:precision 30} {@rep:required}
3220 * @param p_constraint_type_code Constraint type for the task version
3221 * @rep:paraminfo {@rep:precision 30} {@rep:required}
3222 * @param p_constraint_date Constraint date for the task version
3223 * @rep:paraminfo {@rep:required}
3224 * @param p_free_slack Free slack for the task version
3225 * @rep:paraminfo {@rep:required}
3226 * @param p_total_slack Total slack for the task version
3227 * @rep:paraminfo {@rep:required}
3228 * @param p_effort_driven_flag Flag that indicates whether the task is effort driven
3229 * @rep:paraminfo {@rep:precision 1} {@rep:required}
3230 * @param p_level_assignments_flag Flag that indicates whether the assignments on this task should be leveled
3231 * @rep:paraminfo {@rep:precision 1} {@rep:required}
3232 * @param p_invoice_method The invoice method for the task. This parameter is valid only if invoice method at top task is enabled.
3233 * @rep:paraminfo {@rep:precision 30} {@rep:required}
3234 * @param p_customer_id The customer for the task. This parameter is valid only if customer at top task is enabled.
3235 * @rep:paraminfo {@rep:required}
3236 * @param p_gen_etc_source_code Estimate to complete source
3237 * @rep:paraminfo {@rep:precision 30} {@rep:required}
3238 * @param p_financial_task_flag Flag that indicates whether the task is a financial task. This flag
3239 * is valid only for partially shared structures. Tasks that are above this level are used for financial management.
3240 * @rep:paraminfo {@rep:precision 1} {@rep:required}
3241 * @param p_mapped_task_id Mapped task identifier. This parameter is applicable only in case of split-mapped structure
3242 * sharing between workplan and financial structures.
3243 * @rep:paraminfo {@rep:required}
3244 * @param p_mapped_task_reference Mapped task reference
3245 * @rep:paraminfo {@rep:required}
3246 * @param p_ext_act_duration The actual duration from the external application
3250 * @param p_ext_sch_duration The scheduled duration from the external application
3247 * @rep:paraminfo {@rep:required}
3248 * @param p_ext_remain_duration The remaining duration from the external application
3249 * @rep:paraminfo {@rep:required}
3251 * @rep:paraminfo {@rep:required}
3252 * @param p_etc_effort Estimated remaining effort for the task
3253 * @rep:paraminfo {@rep:required}
3254 * @param p_percent_complete Percentage of work complete on the task
3255 * @rep:paraminfo {@rep:required}
3256 * @rep:scope public
3257 * @rep:lifecycle active
3258 * @rep:displayname Load Tasks
3259 * @rep:category BUSINESS_ENTITY PA_PROJECT
3260 * @rep:category BUSINESS_ENTITY PA_TASK
3261 * @rep:compatibility S
3262 */
3263 PROCEDURE load_tasks
3264 (
3265 p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3266 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3267 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3268 ,p_pm_task_reference IN PA_VC_1000_150
3269 ,p_pa_task_id IN PA_NUM_1000_NUM
3270 ,p_task_name IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR) -- bug 6193314 .modified from PA_VC_1000_150
3271 ,p_long_task_name IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3272 ,p_pa_task_number IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3273 ,p_task_description IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3274 ,p_task_start_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3275 ,p_task_completion_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3276 ,p_pm_parent_task_reference IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3277 ,p_pa_parent_task_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3278 ,p_address_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3279 ,p_carrying_out_organization_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3280 ,p_service_type_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3281 ,p_task_manager_person_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3282 ,p_billable_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3283 ,p_chargeable_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3284 ,p_ready_to_bill_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3285 ,p_ready_to_distribute_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3286 ,p_limit_to_txn_controls_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3287 ,p_labor_bill_rate_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3288 ,p_labor_std_bill_rate_schdl IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3289 ,p_labor_schedule_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3290 ,p_labor_schedule_discount IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3291 ,p_nl_bill_rate_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3292 ,p_nl_std_bill_rate_schdl IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3293 ,p_nl_schedule_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3294 ,p_nl_schedule_discount IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3295 ,p_labor_cost_multiplier_name IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3296 ,p_cost_ind_rate_sch_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3297 ,p_rev_ind_rate_sch_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3298 ,p_inv_ind_rate_sch_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3299 ,p_cost_ind_sch_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3300 ,p_rev_ind_sch_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3301 ,p_inv_ind_sch_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3302 ,p_labor_sch_type IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3303 ,p_nl_sch_type IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3304 ,p_actual_start_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3305 ,p_actual_finish_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3306 ,p_early_start_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3307 ,p_early_finish_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3308 ,p_late_start_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3309 ,p_late_finish_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3310 ,p_scheduled_start_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3311 ,p_scheduled_finish_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3312 ,p_attribute_category IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3313 ,p_attribute1 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3317 ,p_attribute5 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3314 ,p_attribute2 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3315 ,p_attribute3 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3316 ,p_attribute4 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3318 ,p_attribute6 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3319 ,p_attribute7 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3320 ,p_attribute8 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3321 ,p_attribute9 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3322 ,p_attribute10 IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3323 ,p_allow_cross_charge_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3324 ,p_project_rate_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3325 ,p_project_rate_type IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3326 ,p_cc_process_labor_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3327 ,p_labor_tp_schedule_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3328 ,p_labor_tp_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3329 ,p_cc_process_nl_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3330 ,p_nl_tp_schedule_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3331 ,p_nl_tp_fixed_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3332 ,p_receive_project_invoice_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3333 ,p_work_type_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3334 ,p_emp_bill_rate_schedule_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3335 ,p_job_bill_rate_schedule_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3336 --Sakthi MCB
3337 ,p_non_lab_std_bill_rt_sch_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3338 ,p_taskfunc_cost_rate_type IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3339 ,p_taskfunc_cost_rate_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3340 --Sakthi MCB
3341 ,p_display_sequence IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3342 ,p_wbs_level IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3343 ,p_milestone IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3344 ,p_duration IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3345 ,p_duration_unit IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3346 ,p_login_user_name IN PA_VC_1000_150:= PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3347 ,p_critical_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3348 ,p_sub_project_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3349 ,p_progress_status_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3350 ,p_progress_comments IN PA_VC_1000_4000 := PA_VC_1000_4000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3351 ,p_progress_asof_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3352 ,p_progress_description IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3353 ,p_predecessors IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3354 ,p_priority_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3355 ,p_wbs_number IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3356 ,p_estimated_start_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3357 ,p_estimated_finish_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3358 ,p_estimate_to_complete IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3359 ,p_language IN VARCHAR2 default 'US'
3360 ,p_delimiter IN VARCHAR2 default ','
3361 ,p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3362 -- ,p_calling_mode IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3363 -- Bug 2683364
3364 ,P_OBLIGATION_START_DATE IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3365 ,P_OBLIGATION_FINISH_DATE IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3366 ,P_BASELINE_START_DATE IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3367 ,P_BASELINE_FINISH_DATE IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3368 ,P_CLOSED_DATE IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3369 ,P_WQ_UOM_CODE IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3370 ,P_WQ_ITEM_CODE IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3371 ,P_STATUS_CODE IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3372 ,P_WF_STATUS_CODE IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3376 ,P_CALENDAR_ID IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3373 ,P_PM_SOURCE_CODE IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3374 ,P_INC_PROJ_PROGRESS_FLAG IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3375 ,P_LINK_TASK_FLAG IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3377 ,P_PLANNED_EFFORT IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3378 ,P_PLANNED_WORK_QUANTITY IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3379 ,P_TASK_TYPE IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3380 -- Bug 2683364
3381 ,p_labor_disc_reason_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3382 ,p_non_labor_disc_reason_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3383 --PA L changes -- bug 2872708 --load_tasks
3384 ,p_retirement_cost_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3385 ,p_cint_eligible_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3386 ,p_cint_stop_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3387 --end PA L changes -- bug 2872708
3388 -- FP-M Bug # 3301192
3389 ,p_pred_string IN PA_VC_1000_4000 := PA_VC_1000_4000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3390 -- ,p_pred_delimiter IN PA_VC_1000_10 := PA_VC_1000_10(',')
3391 ,p_pred_delimiter IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3392 -- FP M : Deliverable
3393 --,p_deliverable IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR --3435905
3394 ,p_deliverable IN PA_VC_1000_4000 := PA_VC_1000_4000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3395 ,p_deliverable_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) -- 3661788 Added IN paramter
3396 -- FP M changes begin (venkat)
3397 ,p_base_percent_comp_deriv_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3398 ,p_sch_tool_tsk_type_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3399 ,p_constraint_type_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3400 ,p_constraint_date IN PA_DATE_1000_DATE:= PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
3401 ,p_free_slack IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3402 ,p_total_slack IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3403 ,p_effort_driven_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3404 ,p_level_assignments_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3405 ,p_invoice_method IN PA_VC_1000_4000 := PA_VC_1000_4000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3406 ,p_customer_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3407 ,p_gen_etc_source_code IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3408 -- FP M changes end (venkat)
3409
3410 -- FP M changes start (Mapping )
3411 -- ,p_financial_task_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3412 -- ,p_mapped_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3413 -- ,p_mapped_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3414 ,p_financial_task_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3415 ,p_mapped_task_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3416 ,p_mapped_task_reference IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
3417 -- FP M changes end (Mapping ) -- FP M changes end (Mapping )
3418
3419 -- (begin venkat) new params for bug #3450684 ----------------------------------------------
3420 ,p_ext_act_duration IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3421 ,p_ext_remain_duration IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3422 ,p_ext_sch_duration IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3423 -- (end venkat) new params for bug #3450684 -------------------------------------------------
3424
3425 -- Progress Management Changes. Bug # 3420093.
3426 ,p_etc_effort IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3427 ,p_percent_complete IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3428 -- Progress Management Changes. Bug # 3420093.
3429
3430 );
3431
3432 /*#
3433 * This is a wrapper API for FETCH_TASK to handle multiple calls to FETCH_TASK.
3434 * @param p_api_version_number API standard: version number
3435 * @rep:paraminfo {@rep:required}
3436 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3437 * @rep:paraminfo {@rep:precision 1}
3438 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3439 * @rep:paraminfo {@rep:precision 1}
3440 * @param p_task_index Points to a single task
3441 * @rep:paraminfo {@rep:required}
3442 * @param p_pa_task_id Unique identifier for the task to be fetched
3443 * @rep:paraminfo {@rep:precision 15}
3444 * @param p_task_version_id Task version identifier
3445 * @param p_pm_task_reference The reference code that identifies the task in the external system
3446 * @rep:paraminfo {@rep:precision 25}
3447 * @param p_task_return_status Flag indicating whether the API has handled the task successfully. S indicates
3451 * @rep:lifecycle active
3448 * success, E indicates a business rule violation, and U indicates that an unexpected error occurred
3449 * @rep:paraminfo {@rep:precision 1}
3450 * @rep:scope public
3452 * @rep:displayname Fetch Tasks
3453 * @rep:category BUSINESS_ENTITY PA_PROJECT
3454 * @rep:category BUSINESS_ENTITY PA_TASK
3455 * @rep:compatibility S
3456 */
3457 PROCEDURE fetch_tasks
3458 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3459 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3460 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3461 ,p_task_index IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
3462 ,p_pa_task_id OUT NOCOPY PA_NUM_1000_NUM --File.Sql.39 bug 4440895
3463 ,p_task_version_id OUT NOCOPY PA_NUM_1000_NUM --File.Sql.39 bug 4440895
3464 ,p_pm_task_reference OUT NOCOPY PA_VC_1000_150 --File.Sql.39 bug 4440895
3465 ,p_task_return_status OUT NOCOPY PA_VC_1000_150 --File.Sql.39 bug 4440895
3466 );
3467
3468 -- <EA Load API>
3469 /**
3470 P_API_VERSION_NUMBER
3471 P_INIT_MSG_LIST
3472 P_COMMIT
3473 X_RETURN_STATUS
3474 P_TRANSACTION_TYPE
3475 P_TASK_ID
3476 P_TASK_REFERENCE
3477 P_ATTR_GRP_INTERNAL_NAME
3478 P_ATTR_GRP_ID
3479 P_ATTR_GRP_ROW_INDEX
3480 P_ATTR_INTERNAL_NAME
3481 P_ATTR_VALUE_STR
3482 P_ATTR_VALUE_NUM
3483 P_ATTR_VALUE_NUM_UOM
3484 P_ATTR_VALUE_DATE
3485 P_ATTR_DISP_VALUE
3486 **/
3487
3488 /*#
3489 * This API loads a single attribute value for a given attribute group for the specified
3490 * project and task. Please refer the API User Guide to find more on required parameters
3491 * and optional parameters of this API.
3492 * @param P_API_VERSION_NUMBER API standard version number
3493 * @param P_INIT_MSG_LIST API standard (default = F): indicates if message stack will be initialized
3494 * @rep:paraminfo {@rep:precision 1}
3495 * @param P_COMMIT API standard (default = F): indicates if transaction will be committed
3496 * @rep:paraminfo {@rep:precision 1}
3497 * @param X_RETURN_STATUS API standard: return of the API (success/failure/unexpected error)
3498 * @rep:paraminfo {@rep:precision 1}
3499 * @param P_TRANSACTION_TYPE The mode of processing for a logical attribute group row.
3500 * The value should correspond to the following constants:
3501 * PA_PROJECT_PUB: G_DELETE_MODE, G_UPDATE_MODE, G_SYNC_MODE (which either creates or
3502 * updates, as appropriate), and G_CREATE_MODE. Rows are processed in the
3503 * order in which they are displayed (deletion, updates and synchronization, and creation).
3504 * @param P_TASK_ID Identifier of the task, if known. Required only if
3505 * a task-level extensible attribute is provided.
3506 * @param P_TASK_REFERENCE Unique task reference, if task identifier is unknown.
3507 * Required only if a task-level extensible attribute is provided.
3508 * @param P_ATTR_GRP_INTERNAL_NAME Internal name of the attribute group to which the current row belongs
3509 * @param P_ATTR_GRP_ID Identifier of the attribute group to which the current row belongs
3510 * @param P_ATTR_GRP_ROW_INDEX Logical row identifier
3511 * @rep:paraminfo {@rep:required}
3512 * @param P_ATTR_INTERNAL_NAME Internal name of the current row attribute
3513 * @param P_ATTR_VALUE_STR The value of the current row attribute if its data type is String
3514 * @param P_ATTR_VALUE_NUM The value of the current row attribute if its data type is Number
3515 * @param P_ATTR_VALUE_NUM_UOM The unit of measure selected to display number attributes
3516 * @param P_ATTR_VALUE_DATE The value for the current row attribute if its data type is Date
3517 * @param P_ATTR_DISP_VALUE The value for the current row attribute (as a String, regardless
3518 * of its data type) if the attribute has a value set with separate display and internal values
3519 * (for example, value sets with validation type set to Independent or Table).
3520 * @rep:scope public
3521 * @rep:lifecycle active
3522 * @rep:displayname Load Extensible Attribute
3523 * @rep:category BUSINESS_ENTITY PA_PROJECT
3524 * @rep:category BUSINESS_ENTITY PA_TASK
3525 * @rep:compatibility S
3526 */
3527 PROCEDURE load_extensible_attribute(P_API_VERSION_NUMBER IN NUMBER := 1.0,
3528 P_INIT_MSG_LIST IN VARCHAR2 := FND_API.G_FALSE,
3529 P_COMMIT IN VARCHAR2 := FND_API.G_FALSE,
3530 X_RETURN_STATUS OUT NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
3531 P_TRANSACTION_TYPE IN VARCHAR2 := PA_PROJECT_PUB.G_SYNC_MODE,
3532 P_TASK_ID IN NUMBER := NULL,
3533 P_TASK_REFERENCE IN VARCHAR2 := NULL,
3534 P_ATTR_GRP_INTERNAL_NAME IN VARCHAR2 := NULL,
3535 P_ATTR_GRP_ID IN NUMBER := NULL,
3536 P_ATTR_GRP_ROW_INDEX IN NUMBER := NULL,
3537 P_ATTR_INTERNAL_NAME IN VARCHAR2 := NULL,
3538 P_ATTR_VALUE_STR IN VARCHAR2 := NULL,
3539 P_ATTR_VALUE_NUM IN NUMBER := NULL,
3540 P_ATTR_VALUE_NUM_UOM IN VARCHAR2 := NULL,
3541 P_ATTR_VALUE_DATE IN DATE := NULL,
3542 P_ATTR_DISP_VALUE IN VARCHAR2 := NULL
3543 );
3544
3545 /*#
3546 * This is a bulk load API that loads the attribute values in a batch of 1000 attributes per
3550 * @rep:paraminfo {@rep:precision 1}
3547 * API call. This procedure calls the LOAD_EXTENSIBLE_ATTRIBUTE API.
3548 * @param P_API_VERSION_NUMBER API standard: version number
3549 * @param P_INIT_MSG_LIST API standard (default = F): indicates if message stack will be initialized
3551 * @param P_COMMIT API standard (default = F): indicates if the transaction will be committed
3552 * @rep:paraminfo {@rep:precision 1}
3553 * @param X_RETURN_STATUS API standard: return status of the API (success/failure/unexpected error)
3554 * @rep:paraminfo {@rep:precision 1}
3555 * @param P_TRANSACTION_TYPE The mode of processing for a logical attribute group row.
3556 * The value should correspond to the following constants:
3557 * PA_PROJECT_PUB : G_DELETE_MODE, G_UPDATE_MODE, G_SYNC_MODE (which either creates or
3558 * updates, as appropriate), and G_CREATE_MODE. Rows are processed in the
3559 * order in which they are displayed (deletion, updates and
3560 * synchronization, and creation).
3561 * @param P_TASK_ID Identifier of the task, if known. Required only if
3562 * a task-level extensible attribute is provided.
3563 * @param P_TASK_REFERENCE Unique task reference, if task identifier is unknown.
3564 * Required only if a task-level extensible attribute is provided.
3565 * @param P_ATTR_GRP_INTERNAL_NAME Internal name of the attribute group to which the current row belongs
3566 * @param P_ATTR_GRP_ID Identifier of the attribute group to which the current row belongs
3567 * @param P_ATTR_GRP_ROW_INDEX Logical row identifier
3568 * @rep:paraminfo {@rep:required}
3569 * @param P_ATTR_INTERNAL_NAME Internal name of the current row attribute
3570 * @param P_ATTR_VALUE_STR The value of the current row attribute if its data type is String
3571 * @param P_ATTR_VALUE_NUM The value of the current row attribute if its data type is Number
3572 * @param P_ATTR_VALUE_NUM_UOM The unit of measure selected to display number attributes
3573 * @param P_ATTR_VALUE_DATE The value for the current row attribute if its data type is Date
3574 * @param P_ATTR_DISP_VALUE The value for the current row attribute (as a String, regardless
3575 * of its data type) if the attribute has a value set with separate display and internal values
3576 * (for example, value sets with validation type set to Independent or Table).
3577 * @rep:scope public
3578 * @rep:lifecycle active
3579 * @rep:displayname Load Extensible Attributes
3580 * @rep:category BUSINESS_ENTITY PA_PROJECT
3581 * @rep:category BUSINESS_ENTITY PA_TASK
3582 * @rep:compatibility S
3583 */
3584 PROCEDURE load_extensible_attributes(P_API_VERSION_NUMBER IN NUMBER,
3585 P_INIT_MSG_LIST IN VARCHAR2 := FND_API.G_FALSE,
3586 P_COMMIT IN VARCHAR2 := FND_API.G_FALSE,
3587 X_RETURN_STATUS OUT NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
3588 P_TRANSACTION_TYPE IN PA_VC_1000_10 := PA_VC_1000_10(PA_PROJECT_PUB.G_SYNC_MODE),
3589 P_TASK_ID IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(NULL),
3590 P_TASK_REFERENCE IN PA_VC_1000_150 := PA_VC_1000_150(NULL),
3591 P_ATTR_GRP_INTERNAL_NAME IN PA_VC_1000_30 := PA_VC_1000_30(NULL),
3592 P_ATTR_GRP_ID IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(NULL),
3593 P_ATTR_GRP_ROW_INDEX IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(NULL),
3594 P_ATTR_INTERNAL_NAME IN PA_VC_1000_30 := PA_VC_1000_30(NULL),
3595 P_ATTR_VALUE_STR IN PA_VC_1000_150 := PA_VC_1000_150(NULL),
3596 P_ATTR_VALUE_NUM IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(NULL),
3597 P_ATTR_VALUE_NUM_UOM IN PA_VC_1000_30 := PA_VC_1000_30(NULL),
3598 P_ATTR_VALUE_DATE IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(NULL),
3599 P_ATTR_DISP_VALUE IN PA_VC_1000_150 := PA_VC_1000_150(NULL)
3600 );
3601 -- </EA Load API>
3602
3603 --Project Structures
3604 /*#
3605 * This is a Load-Execute-Fetch procedure used to load structure data.
3606 * @param p_api_version_number API standard: version number
3607 * @rep:paraminfo {@rep:required}
3608 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3609 * @rep:paraminfo {@rep:precision 1}
3610 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3611 * @rep:paraminfo {@rep:precision 1}
3612 * @param p_pa_project_id The unique identifier of the project
3613 * @param p_structure_type Structure type
3614 * @rep:paraminfo {@rep:precision 25}
3615 * @param p_structure_version_name The name of the structure version
3616 * @param P_structure_version_id The unique identifier of the structure version
3617 * @param P_DESCRIPTION Description of the structure version
3618 * @rep:scope public
3619 * @rep:lifecycle active
3620 * @rep:displayname Load Structure
3621 * @rep:category BUSINESS_ENTITY PA_PROJECT
3622 * @rep:category BUSINESS_ENTITY PA_TASK
3623 * @rep:compatibility S
3624 */
3625 PROCEDURE load_structure
3626 ( p_api_version_number IN NUMBER
3627 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3628 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3629 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3633 ,P_DESCRIPTION IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3630 ,p_structure_type IN VARCHAR2 := 'FINANCIAL'
3631 ,p_structure_version_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3632 ,P_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3634 /*,P_VERSION_NUMBER IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3635 ,P_NAME IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3636 ,P_CURRENT_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3637 ,P_ORIGINAL_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3638 ,P_LATEST_EFF_PUBLISHED_FLAG IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3639 ,P_EFFECTIVE_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
3640 ,P_PUBLISHED_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
3641 ,P_PUBLISHED_BY_PERSON_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3642 ,P_CURRENT_BASELINE_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
3643 ,P_CURRENT_BASELINE_PERSON_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3644 ,P_ORIGINAL_BASELINE_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
3645 ,P_ORIGINAL_BASELINE_PERSON_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3646 ,P_LOCK_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3647 ,P_LOCKED_BY_PERSON_ID IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3648 ,P_LOCKED_DATE IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
3649 ,P_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3650 ,P_WF_STATUS_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3651 ,P_PM_SOURCE_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3652 ,P_PM_SOURCE_REFERENCE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3653 ,P_CHANGE_REASON_CODE IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3654 */
3655 );
3656
3657
3658 /*#
3659 * This API is used to delete a workplan structure version from Oracle Projects.
3660 * @param p_api_version_number API standard: version number
3661 * @rep:paraminfo {@rep:required}
3662 * @param p_commit API standard (default = F): indicates if the transaction will be committed
3663 * @rep:paraminfo {@rep:precision 1}
3664 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3665 * @rep:paraminfo {@rep:precision 1}
3666 * @param p_msg_count API standard: number of error messages
3667 * @rep:paraminfo {@rep:required}
3668 * @param p_msg_data API standard: error message
3669 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
3670 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3671 * @rep:paraminfo {@rep:precision 1}
3672 * @param p_structure_version_id The unique identifier of the workplan structure
3673 * @rep:paraminfo {@rep:required}
3674 * @param p_record_version_number The unique identifier of the published workplan structure version
3675 * @rep:scope public
3676 * @rep:lifecycle active
3677 * @rep:displayname Delete Structure Version
3678 * @rep:category BUSINESS_ENTITY PA_PROJECT
3679 * @rep:category BUSINESS_ENTITY PA_TASK
3680 * @rep:compatibility S
3681 */
3682 PROCEDURE delete_structure_version
3683 ( p_api_version_number IN NUMBER := 1.0 -- for bug# 3802759
3684 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
3685 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3686 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3687 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3688 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3689 ,p_structure_version_id IN NUMBER
3690 ,p_record_version_number IN NUMBER
3691 );
3692
3693 /*#
3694 * This PL/SQL procedure is used to publish, submit, rework, reject, or approve
3695 * a workplan structure and thereby change its status code. The valid status codes are:STRUCTURE_WORKING,
3696 * STRUCTURE_PUBLISHED, STRUCTURE_SUBMITTED, STRUCTURE_REJECTED, and STRUCTURE_APPROVED.
3697 * @param p_api_version_number API standard: version number
3698 * @rep:paraminfo {@rep:required}
3699 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3700 * @rep:paraminfo {@rep:precision 1}
3701 * @param p_commit API standard (default = F): indicates if the transaction will be committed
3702 * @rep:paraminfo {@rep:precision 1}
3703 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3704 * @rep:paraminfo {@rep:precision 1}
3705 * @param p_msg_count API standard: number of error messages
3706 * @rep:paraminfo {@rep:required}
3707 * @param p_msg_data API standard: error message
3708 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
3709 * @param p_structure_version_id The unique identifier of the workplan structure
3710 * @rep:paraminfo {@rep:required}
3711 * @param p_pa_project_id The unique identifier of the project
3712 * @rep:paraminfo {@rep:required}
3713 * @param p_status_code The workplan status code. The valid values: STRUCTURE_WORKING, STRUCTURE_PUBLISHED,
3714 * STRUCTURE_SUBMITTED, STRUCTURE_REJECTED, and STRUCTURE_APPROVED
3715 * @rep:paraminfo {@rep:required}
3716 * @param p_process_mode Process mode
3717 * @rep:paraminfo {@rep:precision 30}
3721 * @rep:displayname Change Structure Status
3718 * @param p_published_struct_ver_id The unique identifier of the published workplan structure version
3719 * @rep:scope public
3720 * @rep:lifecycle active
3722 * @rep:category BUSINESS_ENTITY PA_PROJECT
3723 * @rep:category BUSINESS_ENTITY PA_TASK
3724 * @rep:compatibility S
3725 */
3726 PROCEDURE change_structure_status
3727 (p_api_version_number IN NUMBER := 1.0 -- for bug# 3802319
3728 , p_init_msg_list IN VARCHAR2 := 'F'
3729 , p_commit IN VARCHAR2 := 'F'
3730 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3731 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3732 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3733 , p_structure_version_id IN NUMBER
3734 , p_pa_project_id IN NUMBER
3735 , p_status_code IN VARCHAR2
3736 , p_process_mode IN VARCHAR2 := 'ONLINE'
3737 , p_published_struct_ver_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3738
3739 );
3740
3741
3742 /*#
3743 * This API is used to baseline a workplan structure version.
3744 * @param p_api_version_number API standard: version number
3745 * @rep:paraminfo {@rep:required}
3746 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3747 * @rep:paraminfo {@rep:precision 1}
3748 * @param p_commit API standard (default = F): indicates if the transaction will be committed
3749 * @rep:paraminfo {@rep:precision 1}
3750 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3751 * @rep:paraminfo {@rep:precision 1}
3752 * @param p_msg_count API standard: number of error messages
3753 * @rep:paraminfo {@rep:required}
3754 * @param p_msg_data API standard: error message
3755 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
3756 * @param p_structure_version_id The unique identifier of the workplan structure
3757 * @rep:paraminfo {@rep:required}
3758 * @param p_pa_project_id The unique identifier of the project
3759 * @rep:paraminfo {@rep:required}
3760 * @rep:scope public
3761 * @rep:lifecycle active
3762 * @rep:displayname Baseline Structure Version
3763 * @rep:category BUSINESS_ENTITY PA_PROJECT
3764 * @rep:category BUSINESS_ENTITY PA_TASK
3765 * @rep:compatibility S
3766 */
3767 PROCEDURE baseline_structure
3768 (p_api_version_number IN NUMBER
3769 , p_init_msg_list IN VARCHAR2 := 'F'
3770 , p_commit IN VARCHAR2 := 'F'
3771 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3772 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3773 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3774 , p_structure_version_id IN NUMBER
3775 , p_pa_project_id IN NUMBER
3776
3777 );
3778
3779 --Project Structures
3780
3781 --Project Connect 4.0
3782 --------------------------------------------------------------------------------
3783 --Name: fetch_structure_version
3784 --Type: Procedure
3785 --Description: This procedure can be used to get the structure version ids
3786 -- to the client side as part part of the LOAD/EXECUTE/FETCH cycle.
3787 --
3788 --Called subprograms:
3789 --
3790 --
3791 --
3792 --History:
3793 -- 03-DEC-2002 Created
3794 --
3795
3796 /*#
3797 * This API is a Load-Execute-Fetch procedure that returns
3798 * structure version identifiers of workplan and financial structures.
3799 * @param p_api_version_number API standard: version number
3800 * @rep:paraminfo {@rep:required}
3801 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3802 * @rep:paraminfo {@rep:precision 1}
3803 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3804 * @rep:paraminfo {@rep:precision 1}
3805 * @param p_structure_type Structure type
3806 * @param p_pa_structure_version_id The unique identifier of the structure
3807 * @rep:paraminfo {@rep:required}
3808 * @param p_struc_return_status Structure status
3809 * @rep:scope public
3810 * @rep:lifecycle active
3811 * @rep:displayname Fetch Structure Version
3812 * @rep:category BUSINESS_ENTITY PA_PROJECT
3813 * @rep:category BUSINESS_ENTITY PA_TASK
3814 * @rep:compatibility S
3815 */
3816 PROCEDURE fetch_structure_version
3817 ( p_api_version_number IN NUMBER
3818 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3819 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3820 ,p_structure_type IN VARCHAR2 := 'FINANCIAL'
3821 ,p_pa_structure_version_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3822 ,p_struc_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3823 )
3824 ;
3825 --Project Connect 4.0
3826
3827
3828 /*#
3829 * This API is a Load-Execute-Fetch procedure that returns version identifier
3830 * for a task.
3831 * @param p_api_version_number API standard: version number
3832 * @rep:paraminfo {@rep:required}
3833 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3834 * @rep:paraminfo {@rep:precision 1}
3835 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3836 * @rep:paraminfo {@rep:precision 1}
3837 * @param p_task_index Points to a single task
3841 * @rep:paraminfo {@rep:precision 1}
3838 * @param p_task_version_id Task version identifier
3839 * @param p_task_return_status Flag indicating whether the API has handled the task successfully. S indicates
3840 * success, E indicates a business rule violation, and U indicates that an unexpected error occurred
3842 * @rep:scope public
3843 * @rep:lifecycle active
3844 * @rep:displayname Fetch Task Version
3845 * @rep:category BUSINESS_ENTITY PA_PROJECT
3846 * @rep:category BUSINESS_ENTITY PA_TASK
3847 * @rep:compatibility S
3848 */
3849 PROCEDURE fetch_task_version
3850 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3851 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3852 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3853 ,p_task_index IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3854 ,p_task_version_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3855 ,p_task_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3856 );
3857
3858 --bug 2765115
3859
3860 /*#
3861 * This API is used to get the task version identifier of a task for a particular
3862 * workplan structure version.
3863 * @param p_api_version_number API standard: version number
3864 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3865 * @rep:paraminfo {@rep:precision 1}
3866 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3867 * @rep:paraminfo {@rep:precision 1}
3868 * @param p_pa_project_id The unique identifier of a project
3869 * @param p_pa_task_id The unique identifier of a task
3870 * @param p_pa_structure_version_id The unique identifier of a workplan structure
3871 * @param p_task_version_id Task version identifier
3872 * @rep:scope public
3873 * @rep:lifecycle active
3874 * @rep:displayname Get Task Version
3875 * @rep:category BUSINESS_ENTITY PA_PROJECT
3876 * @rep:category BUSINESS_ENTITY PA_TASK
3877 * @rep:compatibility S
3878 */
3879 PROCEDURE get_task_version
3880 ( p_api_version_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3881 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
3882 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3883 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3884 ,p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3885 ,p_pa_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3886 ,p_task_version_id OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3887 );
3888 --bug 2765115
3889
3890 -- FP M changes begin (venkat)
3891
3892 /*#
3893 * This API is used to change the current working version of a workplan structure.
3894 * @param p_api_version_number API standard: version number
3895 * @rep:paraminfo {@rep:required}
3896 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3897 * @rep:paraminfo {@rep:precision 1}
3898 * @param p_commit API standard (default = F): indicates if the transaction will be committed
3899 * @rep:paraminfo {@rep:precision 1}
3900 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3901 * @rep:paraminfo {@rep:precision 1}
3902 * @param p_msg_count API standard: number of error messages
3903 * @rep:paraminfo {@rep:required}
3904 * @param p_msg_data API standard: error message
3905 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
3906 * @param p_structure_version_id The unique identifier of the workplan structure
3907 * @rep:paraminfo {@rep:required}
3908 * @param p_pa_project_id The unique identifier of the project
3909 * @rep:paraminfo {@rep:required}
3910 * @rep:scope public
3911 * @rep:lifecycle active
3912 * @rep:displayname Change Current Working Version
3913 * @rep:category BUSINESS_ENTITY PA_PROJECT
3914 * @rep:category BUSINESS_ENTITY PA_TASK
3915 * @rep:compatibility S
3916 */
3917 PROCEDURE change_current_working_version
3918 (p_api_version_number IN NUMBER
3919 , p_init_msg_list IN VARCHAR2 := 'F'
3920 , p_commit IN VARCHAR2 := 'F'
3921 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3922 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3923 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3924 , p_structure_version_id IN NUMBER
3925 , p_pa_project_id IN NUMBER
3926 );
3927 -- FP M changes end (venkat)
3928
3929 -- Progress Management Changes. Bug # 3420093.
3930
3931 /*#
3932 * This API is used to apply the latest progress information on the
3933 * current working version of a workplan structure.
3934 * @param p_api_version API standard: version number
3935 * @rep:paraminfo {@rep:required}
3936 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3937 * @rep:paraminfo {@rep:precision 1}
3938 * @param p_commit API standard (default = F): indicates if the transaction will be committed
3939 * @rep:paraminfo {@rep:precision 1}
3940 * @param p_pa_project_id The unique identifier of the project
3941 * @rep:paraminfo {@rep:required}
3942 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
3943 * @rep:paraminfo {@rep:precision 25}
3944 * @param p_working_str_version_id Identifier of the working version of a workplan structure
3945 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
3949 * @param p_msg_data API standard: error message
3946 * @rep:paraminfo {@rep:precision 1}
3947 * @param p_msg_count API standard: number of error messages
3948 * @rep:paraminfo {@rep:required}
3950 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
3951 * @rep:scope public
3952 * @rep:lifecycle active
3953 * @rep:displayname Apply Latest Progress
3954 * @rep:category BUSINESS_ENTITY PA_PROJECT
3955 * @rep:category BUSINESS_ENTITY PA_TASK
3956 * @rep:compatibility S
3957 */
3958 PROCEDURE apply_lp_prog_on_cwv(
3959 p_api_version IN NUMBER :=1.0
3960 ,p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE
3961 ,p_commit IN VARCHAR2 :=FND_API.G_FALSE
3962 ,p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3963 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
3964 ,p_working_str_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3965 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3966 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
3967 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
3968 );
3969
3970 -- Progress Management Changes. Bug # 3420093.
3971
3972 -- 3435905 FP M Changes for Deliverables : Start
3973
3974 /*#
3975 * This API is used to load one deliverable into a PL/SQL table.
3976 * @param p_api_version API standard: version number
3977 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
3978 * @param p_debug_mode Indicates to the system whether to display debug messages
3979 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
3980 * @rep:paraminfo {@rep:required}
3981 * @param p_deliverable_name Deliverable name
3982 * @rep:paraminfo {@rep:required}
3983 * @param p_deliverable_short_name Deliverable short name
3984 * @rep:paraminfo {@rep:required}
3985 * @param p_deliverable_type_id Identifier of the deliverable type
3986 * @param p_deliverable_owner_id Deliverable owner identifier
3987 * @param p_description Deliverable description
3988 * @param p_status_code Deliverable status
3989 * @param p_due_date Deliverable due date
3990 * @param p_completion_date Deliverable completion date
3991 * @param p_progress_weight Progress weight
3992 * @param p_pm_source_code Identifier of the source code system
3993 * @param px_deliverable_id Unique identifier of the deliverable in Oracle Projects
3994 * @rep:paraminfo {@rep:required}
3995 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
3996 * @rep:paraminfo {@rep:required}
3997 * @param p_task_id Task identifier of the task associated with the deliverable
3998 * @param p_task_source_reference Task reference of the task associated with the deliverable
3999 * @param p_item_id The item identifier. Applies only to item-based deliverables.
4000 * @param P_inventory_org_id The inventory organization identifier of the item. Applies only to item-based deliverables.
4001 * @param p_quantity The quantity of the item. Applies only to item-based deliverables.
4002 * @param p_uom_code The unit of measure code of the deliverable. Applies only to item-based deliverables.
4003 * @rep:paraminfo {@rep:precision 30}
4004 * @param p_unit_price The unit price of the deliverable. Applies only to item-based deliverables.
4005 * @param p_unit_number The unit number of the deliverable. Required when an item-based deliverable
4006 * is unit number-enabled.
4007 * @rep:paraminfo {@rep:precision 30}
4008 * @param p_currency_code The currency code of the deliverable. Applies only to item-based deliverables.
4009 * @rep:paraminfo {@rep:precision 15}
4010 * @rep:scope public
4011 * @rep:lifecycle active
4012 * @rep:displayname Load Deliverable
4013 * @rep:category BUSINESS_ENTITY PA_PROJECT
4014 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4015 * @rep:compatibility S
4016 */
4017 PROCEDURE load_deliverable
4018 ( p_api_version IN NUMBER := 1.0
4019 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4020 , p_debug_mode IN VARCHAR2 := 'N'
4021 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4022 , p_deliverable_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4023 , p_deliverable_short_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4024 , p_deliverable_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4025 , p_deliverable_owner_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4026 , p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4027 , p_status_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4028 , p_due_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4029 , p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4030 , p_progress_weight IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4031 , p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4032 , px_deliverable_id IN OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
4033 , p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4034 -- for bug# 3729250
4035 -- , p_carrying_out_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4036 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4037 , p_task_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4038 , p_item_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4039 , P_inventory_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4043 -- , p_item_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4040 , p_quantity IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4041 , p_uom_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4042 -- for bug# 3729250
4044 , p_unit_price IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4045 -- for bug# 3729250
4046 , p_unit_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4047 , p_currency_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4048 ) ;
4049
4050
4051
4052 /*#
4053 * This API is used to load deliverables into a PL/SQL table.
4054 * @param p_api_version API standard: version number
4055 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4056 * @param p_debug_mode Indicates to the system whether to display debug messages
4057 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4058 * @rep:paraminfo {@rep:required}
4059 * @param p_deliverable_name Deliverable name
4060 * @rep:paraminfo {@rep:required}
4061 * @param p_deliverable_short_name Deliverable short name
4062 * @rep:paraminfo {@rep:required}
4063 * @param p_deliverable_type_id Identifier of the deliverable type
4064 * @param p_deliverable_owner_id Deliverable owner identifier
4065 * @param p_description Deliverable description
4066 * @param p_status_code Deliverable status
4067 * @param p_due_date Deliverable due date
4068 * @param p_completion_date Deliverable completion date
4069 * @param p_progress_weight Progress weight
4070 * @param p_pm_source_code Identifier of the source code system
4071 * @param px_deliverable_id Unique identifier of the deliverable in Oracle Projects
4072 * @rep:paraminfo {@rep:required}
4073 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
4074 * @rep:paraminfo {@rep:required}
4075 * @param p_task_id Task identifier of the task associated with the deliverable
4076 * @param p_task_source_reference Task reference of the task associated with the deliverable
4077 * @param p_item_id The item identifier. Applies only to item-based deliverables.
4078 * @param P_inventory_org_id The inventory organization identifier of the item. Applies only to item-based deliverables.
4079 * @param p_quantity The quantity of the item. Applies only to item-based deliverables.
4080 * @param p_uom_code The unit of measure code of the deliverable. Applies only to item-based deliverables.
4081 * @rep:paraminfo {@rep:precision 30}
4082 * @param p_unit_price The unit price of the deliverable. Applies only to item-based deliverables.
4083 * @param p_unit_number The unit number of the deliverable. Required when an item-based deliverable
4084 * is unit number-enabled.
4085 * @rep:paraminfo {@rep:precision 30}
4086 * @param p_currency_code The currency code of the deliverable. Applies only to item-based deliverables.
4087 * @rep:paraminfo {@rep:precision 15}
4088 * @rep:scope public
4089 * @rep:lifecycle active
4090 * @rep:displayname Load Deliverables
4091 * @rep:category BUSINESS_ENTITY PA_PROJECT
4092 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4093 * @rep:compatibility S
4094 */
4095 PROCEDURE load_deliverables
4096 ( p_api_version IN NUMBER := 1.0
4097 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4098 , p_debug_mode IN VARCHAR2 := 'N'
4099 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4100 , p_deliverable_name IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4101 --, p_deliverable_name IN PA_VC_1000_240 := PA_VC_1000_240(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4102 -- , p_deliverable_short_name IN PA_VC_1000_100 := PA_VC_1000_100(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4103 , p_deliverable_short_name IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4104 , p_deliverable_type_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4105 , p_deliverable_owner_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4106 , p_description IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4107 , p_status_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4108 , p_due_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4109 , p_completion_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4110 , p_progress_weight IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4111 , p_pm_source_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4112 , px_deliverable_id IN OUT NOCOPY PA_NUM_1000_NUM --File.Sql.39 bug 4440895
4113 , p_pm_deliverable_reference IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4114 -- for bug# 3729250
4115 -- , p_carrying_out_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4116 , p_task_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4117 , p_task_source_reference IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4118 , p_item_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4119 , P_inventory_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4120 , p_quantity IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4121 , p_uom_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4122 -- for bug# 3729250
4123 -- , p_item_description IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4127 -- , p_currency_code IN PA_VC_1000_15 := PA_VC_1000_15(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4124 , p_unit_price IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4125 -- for bug# 3729250
4126 , p_unit_number IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4128 , p_currency_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4129 ) ;
4130
4131 /*
4132 * This API is used to load a single deliverable action in the PL/SQL table for
4133 * deliverable actions.
4134 * @param p_api_version_number API standard: version number
4135 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4136 * @param p_debug_mode Indicates to the system whether to display debug messages
4137 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4138 * @param p_action_name Unique identifier of the project in the external system
4139 * @param p_action_id Unique identifier of the deliverable action
4140 * @param p_action_owner_id Action owner identifier
4141 * @param p_function_code Deliverable action function code
4142 * @param p_due_date Due date of the deliverable action
4143 * @param p_description Description of the action
4144 * @param p_completion_date Completion date
4145 * @param p_pm_source_code Unique identifier of the external system
4146 * @param p_pm_action_reference Unique identifier of the deliverable action in the external system
4147 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
4148 * @param p_deliverable_id Unique identifier of the deliverable in Oracle Projects
4149 * @rep:paraminfo {@rep:required}
4150 * @param p_financial_task_reference Unique identifier of the financial task
4151 * @param p_financial_task_id Identifier of the financial task
4152 * @param p_destination_type_code The destination type code of the deliverable action
4153 * @rep:paraminfo {@rep:precision 30}
4154 * @param p_receiving_org_id The identifier of the inventory organization that will receive the item
4155 * @param p_receiving_location_id The location (address) identifier where the item will be received. The
4156 * RECEIVING_LO CATION_ID must be related to the RECEIVING_ORG_ID.
4157 * @param p_po_need_by_date The date by which the purchase order is needed
4158 * @param p_vendor_id The identifier of the vendor that will supply the object
4159 * @param p_vendor_site_code The location (address) identifier of the vendor from where the object will be supplied.
4160 * @param p_Quantity Quantity for procurement deliverable action
4161 * @param p_uom_code The unit of measure code for procurement deliverable action
4162 * @rep:paraminfo {@rep:precision 30}
4163 * @param p_unit_price The unit price of the object. The unit price is needed only for non-item
4164 * deliverable procurement actions.
4165 * @param p_exchange_rate_type Exchange rate type for procurement deliverable actions
4166 * @param p_exchange_rate_date Exchange rate date for procurement deliverable actions
4167 * @param p_exchange_rate Exchange rate for procurement deliverable actions
4168 * @param p_expenditure_type The expenditure type is needed only for non-item based deliverable procurement actions.
4169 * @param p_expenditure_org_id Expenditure organization for procurement deliverable actions
4170 * @param p_expenditure_item_date Expenditure item date for procurement deliverable actions
4171 * @param p_requisition_line_type_id The requisition line type can only have a type of AMOUNT
4172 * The requisition line type is needed only for non-item based deliverable procurement actions
4173 * @param p_category_id The item category identifier is needed only for non-item based deliverable procurement actions
4174 * @param p_ready_to_procure_flag Flag that indicates whether an item is ready to be procured
4175 * @rep:paraminfo {@rep:precision 1}
4176 * @param p_initiate_procure_flag Flag that indicates whether a procurement action should be initiated
4177 * @rep:paraminfo {@rep:precision 1}
4178 * @param p_ship_from_organization_id The inventory organization identifier of the inventory organization that will ship the item
4179 * @param p_ship_from_location_id The location (address) identifier where the item will be shipped.
4180 * The SHIP_FROM_LOCATION_ID must be related to the SHIP_FROM_ORG_ID.
4181 * @param p_ship_to_organization_id The customer account identifier to which the item will be shipped.
4182 * @param p_ship_to_location_id The customer location (address) identifier to where the item will be shipped
4183 * The SHIP_TO_LOCATION_ID must be related to the SHIP_TO_ORG_ID
4184 * @param p_demand_schedule Demand schedule
4185 * @rep:paraminfo {@rep:precision 10}
4186 * @param p_expected_shipment_date Expected shipment date
4187 * @param p_promised_shipment_date Promised shipment date
4188 * @param p_volume The volume of each object to be shipped. The volume is needed only for non-item shipping.
4189 * @param p_volume_uom The volume unit of measure of each object to be shipped.
4190 * The volume unit of measure is needed only for non-item shipping.
4191 * @rep:paraminfo {@rep:precision 10}
4192 * @param p_weight The weight of each object to be shipped. The weight is needed only for non-item shipping.
4193 * @param p_weight_uom The weight unit of measure of each object to be shipped. The weight unit of
4194 * measure is needed only for non-item shipping.
4195 * @rep:paraminfo {@rep:precision 10}
4196 * @param p_ready_to_ship_flag Flag that indicates whether an item is ready to be shiped
4197 * @rep:paraminfo {@rep:precision 1}
4198 * @param p_initiate_planning_flag Flag that indicates whether planning should be initiated
4199 * @rep:paraminfo {@rep:precision 1}
4200 * @param p_initiate_shipping_flag Flag that indicates whether shipping should be initiated
4201 * @rep:paraminfo {@rep:precision 1}
4205 * @rep:paraminfo {@rep:precision 30}
4202 * @param p_event_type Billing event type
4203 * @rep:paraminfo {@rep:precision 30}
4204 * @param p_currency Currency code for the billing event
4206 * @param p_invoice_amount Invoice amount for the billing
4207 * @param p_revenue_amount Revenue amount for the billing event
4208 * @param p_event_date Event date for the billing event.
4209 * @param p_event_number Event number for the billing event.
4210 * @param p_organization_id Organization identifier of the organization associated with the billing event
4211 * @param p_bill_hold_flag Flag that indicates whether a billing event is on hold
4212 * @rep:paraminfo {@rep:precision 1}
4213 * @param p_project_functional_rate_type Rate type for project functional currency for the billing event
4214 * @rep:paraminfo {@rep:precision 30}
4215 * @param p_project_functional_rate_date Rate date for project functional currency for the billing event
4216 * @param p_project_functional_rate Rate for project functional currency for the billing event
4217 * @param p_project_rate_type Rate type for project currency for the billing event
4218 * @rep:paraminfo {@rep:precision 30}
4219 * @param p_project_rate_date Rate date for project currency for the billing event
4220 * @param p_project_rate Rate for project currency for the billing event
4221 * @param p_funding_rate_type Rate type for funding currency for the billing event
4222 * @rep:paraminfo {@rep:precision 30}
4223 * @param p_funding_rate_date Rate date for funding currency for the billing event
4224 * @param p_funding_rate Rate for funding currency for the billing event
4225 * @param p_pm_event_reference The unique identifier of the billing event in the external system
4226 * @rep:paraminfo {@rep:precision 25}
4227 * @rep:scope public
4228 * @rep:lifecycle active
4229 * @rep:displayname Load Deliverable Action
4230 * @rep:category BUSINESS_ENTITY PA_PROJECT
4231 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4232 * @rep:compatibility S
4233 */
4234 PROCEDURE load_action
4235 ( p_api_version IN NUMBER := 1.0
4236 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4237 , p_debug_mode IN VARCHAR2 := 'N'
4238 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4239 , p_action_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4240 , p_action_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4241 , p_action_owner_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4242 , p_function_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4243 , p_due_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4244 , p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4245 , p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4246 , p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4247 , p_pm_action_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4248 -- for bug# 3729250
4249 -- , p_carrying_out_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4250 , p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4251 , p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4252 -- added for bug# 3729250
4253 , p_financial_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4254 , p_financial_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4255 , p_destination_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4256 , p_receiving_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4257 , p_receiving_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4258 , p_po_need_by_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4259 , p_vendor_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4260 , p_vendor_site_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4261 -- , p_project_currency IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4262 , p_Quantity IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4263 , p_uom_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4264 , p_unit_price IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4265 , p_exchange_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4266 , p_exchange_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4267 , p_exchange_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM /* Bug # 3590235 */
4268 , p_expenditure_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4269 , p_expenditure_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4270 , p_expenditure_item_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4271 , p_requisition_line_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4272 , p_category_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4273 , p_ready_to_procure_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4274 , p_initiate_procure_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4275 , p_ship_from_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4276 , p_ship_from_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4277 , p_ship_to_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4278 , p_ship_to_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4279 , p_demand_schedule IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4283 , p_volume_uom IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4280 , p_expected_shipment_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4281 , p_promised_shipment_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4282 , p_volume IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4284 , p_weight IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4285 , p_weight_uom IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4286 , p_ready_to_ship_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4287 , p_initiate_planning_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4288 , p_initiate_shipping_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4289 , p_event_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4290 , p_currency IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4291 , p_invoice_amount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4292 , p_revenue_amount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4293 , p_event_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4294 , p_event_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4295 , p_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4296 , p_bill_hold_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4297 , p_project_functional_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4298 , p_project_functional_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4299 , p_project_functional_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4300 , p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4301 , p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4302 , p_project_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4303 , p_funding_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4304 , p_funding_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4305 , p_funding_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4306 , p_pm_event_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3651489 added parameter
4307 );
4308
4309 /*
4310 * This API is used to load deliverable actions in the PL/SQL table for
4311 * deliverable actions.
4312 * @param p_api_version_number API standard: version number
4313 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4314 * @param p_debug_mode Indicates to the system whether to display debug messages
4315 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4316 * @param p_action_name Unique identifier of the project in the external system
4317 * @param p_action_id Unique identifier of the deliverable action
4318 * @param p_action_owner_id Action owner identifier
4319 * @param p_function_code Deliverable action function code
4320 * @param p_due_date Due date of the deliverable action
4321 * @param p_description Description of the action
4322 * @param p_completion_date Completion date
4323 * @param p_pm_source_code Unique identifier of the external system
4324 * @param p_pm_action_reference Unique identifier of the deliverable action in the external system
4325 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
4326 * @param p_deliverable_id Unique identifier of the deliverable in Oracle Projects
4327 * @rep:paraminfo {@rep:required}
4328 * @param p_financial_task_reference Unique identifier of the financial task
4329 * @param p_financial_task_id Identifier of the financial task
4330 * @param p_destination_type_code The destination type code of the deliverable action
4331 * @rep:paraminfo {@rep:precision 30}
4332 * @param p_receiving_org_id The identifier of the inventory organization that will receive the item
4333 * @param p_receiving_location_id The location (address) identifier where the item will be received. The
4334 * RECEIVING_LO CATION_ID must be related to the RECEIVING_ORG_ID.
4335 * @param p_po_need_by_date The date by which the purchase order is needed
4336 * @param p_vendor_id The identifier of the vendor that will supply the object
4337 * @param p_vendor_site_code The location (address) code of the vendor from where the object will be supplied
4338 * @param p_Quantity Quantity for procurement deliverable action
4339 * @param p_uom_code The unit of measure code for procurement deliverable action
4340 * @rep:paraminfo {@rep:precision 30}
4341 * @param p_unit_price The unit price of the object. The unit price is needed only for non-item
4342 * deliverable procurement actions.
4343 * @param p_exchange_rate_type Exchange rate type for procurement deliverable actions
4344 * @param p_exchange_rate_date Exchange rate date for procurement deliverable actions
4345 * @param p_exchange_rate Exchange rate for procurement deliverable actions
4346 * @param p_expenditure_type The expenditure type is needed only for non-item based deliverable procurement actions.
4347 * @param p_expenditure_org_id Expenditure organization for procurement deliverable actions
4348 * @param p_expenditure_item_date Expenditure item date for procurement deliverable actions
4349 * @param p_requisition_line_type_id The requisition line type can only have a type of AMOUNT
4350 * The requisition line type is needed only for non-item based deliverable procurement actions
4351 * @param p_category_id The item category identifier is needed only for non-item based deliverable procurement actions.
4352 * @param p_ready_to_procure_flag Flag that indicates whether an item is ready to be procured
4353 * @rep:paraminfo {@rep:precision 1}
4357 * @param p_ship_from_location_id The location (address) identifier where the item will be shipped.
4354 * @param p_initiate_procure_flag Flag that indicates whether a procurement action should be initiated
4355 * @rep:paraminfo {@rep:precision 1}
4356 * @param p_ship_from_organization_id The inventory organization identifier of the inventory organization that will ship the item
4358 * The SHIP_FROM_LOCATION_ID must be related to the SHIP_FROM_ORG_ID.
4359 * @param p_ship_to_organization_id The customer account identifier to which the item will be shipped
4360 * @param p_ship_to_location_id The customer location (address) identifier to where the item will be shipped.
4361 * The SHIP_TO_LOCATION_ID must be related to the SHIP_TO_ORG_ID.
4362 * @param p_demand_schedule Demand schedule.
4363 * @rep:paraminfo {@rep:precision 10}
4364 * @param p_expected_shipment_date Expected shipment date
4365 * @param p_promised_shipment_date Promised shipment date
4366 * @param p_volume The volume of each object to be shipped. The volume is needed only for non-item shipping.
4367 * @param p_volume_uom The volume unit of measure of each object to be shipped.
4368 * The volume unit of measure is needed only for non-item shipping.
4369 * @rep:paraminfo {@rep:precision 10}
4370 * @param p_weight The weight of each object to be shipped. The weight is needed only for non-item shipping.
4371 * @param p_weight_uom The weight unit of measure of each object to be shipped. The weight unit of
4372 * measure is needed only for non-item shipping.
4373 * @rep:paraminfo {@rep:precision 10}
4374 * @param p_ready_to_ship_flag Flag that indicates whether an item is ready to be shiped
4375 * @rep:paraminfo {@rep:precision 1}
4376 * @param p_initiate_planning_flag Flag that indicates whether planning should be initiated
4377 * @rep:paraminfo {@rep:precision 1}
4378 * @param p_initiate_shipping_flag Flag that indicates whether shipping should be initiated
4379 * @rep:paraminfo {@rep:precision 1}
4380 * @param p_event_type Billing event type
4381 * @rep:paraminfo {@rep:precision 30}
4382 * @param p_currency Currency code for the billing event
4383 * @rep:paraminfo {@rep:precision 30}
4384 * @param p_invoice_amount Invoice amount for the billing
4385 * @param p_revenue_amount Revenue amount for the billing event
4386 * @param p_event_date Event date for the billing event
4387 * @param p_event_number Event number for the billing event
4388 * @param p_organization_id Organization identifier of the organization associated with the billing event
4389 * @param p_bill_hold_flag Flag that indicates whether a billing event is on hold
4390 * @rep:paraminfo {@rep:precision 1}
4391 * @param p_project_functional_rate_type Rate type for project functional currency for the billing event
4392 * @rep:paraminfo {@rep:precision 30}
4393 * @param p_project_functional_rate_date Rate date for project functional currency for the billing event
4394 * @param p_project_functional_rate Rate for project functional currency for the billing event
4395 * @param p_project_rate_type Rate type for project currency for the billing event
4396 * @rep:paraminfo {@rep:precision 30}
4397 * @param p_project_rate_date Rate date for project currency for the billing event
4398 * @param p_project_rate Rate for project currency for the billing event
4399 * @param p_funding_rate_type Rate type for funding currency for the billing event
4400 * @rep:paraminfo {@rep:precision 30}
4401 * @param p_funding_rate_date Rate date for funding currency for the billing event
4402 * @param p_funding_rate Rate for funding currency for the billing event
4403 * @param p_pm_event_reference The unique identifier of the billing event in the external system
4404 * @rep:paraminfo {@rep:precision 25}
4405 * @rep:scope public
4406 * @rep:lifecycle active
4407 * @rep:displayname Load Deliverable Actions
4408 * @rep:category BUSINESS_ENTITY PA_PROJECT
4409 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4410 * @rep:compatibility S
4411 */
4412 PROCEDURE load_actions
4413 ( p_api_version IN NUMBER := 1.0
4414 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4415 , p_debug_mode IN VARCHAR2 := 'N'
4416 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4417 --, p_action_name IN PA_VC_1000_240 := PA_VC_1000_240(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4418 , p_action_name IN PA_VC_1000_150 := PA_VC_1000_150(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4419 , p_action_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4420 , p_action_owner_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4421 , p_function_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4422 , p_due_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4423 , p_description IN PA_VC_1000_2000 := PA_VC_1000_2000(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4424 , p_completion_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4425 , p_pm_source_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4426 , p_pm_action_reference IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4427 -- for bug# 3729250
4428 -- , p_carrying_out_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4429 , p_pm_deliverable_reference IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4430 , p_deliverable_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4431 -- added for bug# 3729250
4432 , p_financial_task_reference IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4433 , p_financial_task_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4434 , p_destination_type_code IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4435 , p_receiving_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4436 , p_receiving_location_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4437 , p_po_need_by_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4438 , p_vendor_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4439 , p_vendor_site_code IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4440 -- , p_project_currency IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4441 , p_Quantity IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4442 , p_uom_code IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4443 , p_unit_price IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4444 , p_exchange_rate_type IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4445 , p_exchange_rate_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4446 , p_exchange_rate IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) /* Bug # 3590235 */
4447 , p_expenditure_type IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4448 , p_expenditure_org_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4449 , p_expenditure_item_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4450 , p_requisition_line_type_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4451 , p_category_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4452 -- , p_ready_to_procure_flag IN PA_VC_1000_1 := PA_VC_1000_1(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4453 -- , p_initiate_procure_flag IN PA_VC_1000_1 := PA_VC_1000_1(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4454 , p_ready_to_procure_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4455 , p_initiate_procure_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4456 , p_ship_from_organization_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4457 , p_ship_from_location_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4458 , p_ship_to_organization_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4459 , p_ship_to_location_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4460 , p_demand_schedule IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4461 , p_expected_shipment_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4462 , p_promised_shipment_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4463 , p_volume IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4464 , p_volume_uom IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4465 , p_weight IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4466 , p_weight_uom IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4467 -- , p_ready_to_ship_flag IN PA_VC_1000_1 := PA_VC_1000_1(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4468 -- , p_initiate_planning_flag IN PA_VC_1000_1 := PA_VC_1000_1(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4469 -- , p_initiate_shipping_flag IN PA_VC_1000_1 := PA_VC_1000_1(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4470 , p_ready_to_ship_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4471 , p_initiate_planning_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4472 , p_initiate_shipping_flag IN PA_VC_1000_10 := PA_VC_1000_10(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4473 , p_event_type IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4474 , p_currency IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4475 , p_invoice_amount IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4476 , p_revenue_amount IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4477 , p_event_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4478 , p_event_number IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4479 , p_organization_id IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4480 , p_bill_hold_flag IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4481 , p_project_functional_rate_type IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4482 , p_project_functional_rate_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4483 , p_project_functional_rate IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4484 , p_project_rate_type IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4485 , p_project_rate_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4486 , p_project_rate IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4487 , p_funding_rate_type IN PA_VC_1000_30 := PA_VC_1000_30(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR)
4488 , p_funding_rate_date IN PA_DATE_1000_DATE := PA_DATE_1000_DATE(PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE)
4489 , p_funding_rate IN PA_NUM_1000_NUM := PA_NUM_1000_NUM(PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM)
4490 , p_pm_event_reference IN PA_VC_1000_25 := PA_VC_1000_25(PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR) -- 3651489 added parameter
4491 );
4492
4493 /*#
4494 * This API is used to create a deliverable for a project.
4495 * @param p_api_version API standard: version number
4496 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4497 * @param p_commit API standard (default = F): indicates if the transaction will be committed
4498 * @param p_debug_mode Indicates to the system whether to display debug messages
4499 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4500 * @rep:paraminfo {@rep:required}
4501 * @param p_deliverable_name Deliverable name
4502 * @rep:paraminfo {@rep:required}
4503 * @param p_deliverable_short_name Deliverable short name
4504 * @rep:paraminfo {@rep:required}
4505 * @param p_deliverable_type_id Identifier of the deliverable type
4506 * @param p_deliverable_owner_id Deliverable owner identifier
4507 * @param p_description Deliverable description
4508 * @param p_status_code Deliverable status
4509 * @param p_due_date Deliverable due date
4510 * @param p_completion_date Deliverable completion date
4511 * @param p_progress_weight Progress weight
4512 * @param px_deliverable_id Unique identifier of the deliverable in Oracle Projects
4513 * @rep:paraminfo {@rep:required}
4514 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
4515 * @rep:paraminfo {@rep:required}
4516 * @param p_task_id Task identifier of the task associated with the deliverable
4517 * @param p_task_source_reference Task reference of the task associated with the deliverable
4518 * @param p_project_id Unique identifier of the project
4519 * @param p_proj_source_reference Unique identifier of the project in the external system
4520 * @param p_action_in_tbl Table of deliverable actions that need to be created
4521 * @param x_action_out_tbl Table of successfully processed actions
4522 * @param p_item_id The identifier of the item. Applies only to item-based deliverables.
4523 * @param P_inventory_org_id The inventory organization identifier of the item. Applies only to item-based deliverables.
4524 * @param p_quantity The quantity of the item. Applies only to item-based deliverables.
4525 * @param p_uom_code The unit of measure code of the deliverable. Applies only to item-based deliverables.
4526 * @rep:paraminfo {@rep:precision 30}
4527 * @param p_unit_price The unit price of the deliverable. Applies only to item-based deliverables.
4528 * @param p_unit_number The unit number of the deliverable. Required when an item-based deliverable
4529 * is unit number enabled.
4530 * @rep:paraminfo {@rep:precision 30}
4531 * @param p_currency_code The currency code of the deliverable. Applies only to item-based deliverables.
4532 * @rep:paraminfo {@rep:precision 15}
4533 * @param p_pm_source_code Identifier of the external system
4534 * @param x_msg_count API standard: number of error messages
4535 * @param x_msg_data API standard: error message
4536 * @rep:scope public
4537 * @rep:lifecycle active
4538 * @rep:displayname Create Deliverable
4539 * @rep:category BUSINESS_ENTITY PA_PROJECT
4540 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4541 * @rep:compatibility S
4542 */
4543 PROCEDURE create_deliverable
4544 ( p_api_version IN NUMBER := 1.0
4545 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4546 , p_commit IN VARCHAR2 := FND_API.G_FALSE
4547 , p_debug_mode IN VARCHAR2 := 'N'
4548 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4549 , p_deliverable_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4550 , p_deliverable_short_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4551 , p_deliverable_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4552 , p_deliverable_owner_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4553 , p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4554 , p_status_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4555 , p_due_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4556 , p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4557 , p_progress_weight IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4558 , px_deliverable_id IN OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
4559 , p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4560 -- for bug# 3729250
4561 -- , p_carrying_out_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4562 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4563 , p_task_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4564 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4565 , p_proj_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4566 , p_action_in_tbl IN action_in_tbl_type := G_deliverable_actions_in_tbl -- 3435905 passing default
4567 , x_action_out_tbl OUT NOCOPY action_out_tbl_type --File.Sql.39 bug 4440895
4568 , p_item_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4569 , P_inventory_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4570 , p_quantity IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4571 , p_uom_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4572 -- for bug# 3729250
4573 -- , p_item_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4574 , p_unit_price IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4575 -- for bug# 3729250
4576 , p_unit_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4577 , p_currency_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4578 , p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR /* Bug no. 3651113 */
4579 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
4580 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4581 ) ;
4582
4583
4584 /*#
4585 * This API is used to create a deliverable action for a deliverable.
4586 * @param p_api_version API standard: version number
4587 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4588 * @param p_debug_mode Indicates to the system whether to display debug messages
4589 * @param p_commit API standard (default = F): indicates if the transaction will be committed
4590 * @param p_action_name Deliverable action name
4591 * @param p_action_owner_id Action owner identifier
4592 * @param p_function_code Deliverable action function code
4593 * @param p_due_date Due date of the deliverable action
4594 * @param p_description Description of the action
4595 * @param p_completion_date Completion date
4596 * @param p_pm_source_code Unique identifier of the external system
4597 * @param p_pm_action_reference Unique identifier of the deliverable action in the external system
4598 * @param p_deliverable_reference Unique identifier of the deliverable in the external system
4599 * @param p_deliverable_id Unique identifier of the deliverable in Oracle Projects
4600 * @rep:paraminfo {@rep:required}
4601 * @param p_pm_proj_reference Unique identifier of the project in the external system
4602 * @param p_project_id Unique identifier of the project
4603 * @param p_financial_task_reference Unique identifier of the financial task
4607 * @param p_receiving_org_id The identifier of the inventory organization that will receive the item
4604 * @param p_financial_task_id Identifier of the financial task
4605 * @param p_destination_type_code The destination type code of the deliverable action
4606 * @rep:paraminfo {@rep:precision 30}
4608 * @param p_receiving_location_id The location (address) where the item will be received. The
4609 * RECEIVING_LO CATION_ID must be related to the RECEIVING_ORG_ID
4610 * @param p_po_need_by_date The date by which the purchase order is needed
4611 * @param p_vendor_id The identifier of the vendor that will supply the object
4612 * @param p_vendor_site_code The location (address) code of the vendor from where the object will be supplied
4613 * @param p_Quantity Quantity for procurement deliverable action
4614 * @param p_uom_code The unit of measure code for procurement deliverable action
4615 * @rep:paraminfo {@rep:precision 30}
4616 * @param p_unit_price The unit price of the object. The unit price is needed only for non-item
4617 * deliverable procurement actions.
4618 * @param p_exchange_rate_type Exchange rate type for procurement deliverable actions
4619 * @param p_exchange_rate_date Exchange rate date for procurement deliverable actions
4620 * @param p_exchange_rate Exchange rate for procurement deliverable actions
4621 * @param p_expenditure_type The expenditure type is needed only for non-item-based deliverable procurement actions.
4622 * @param p_expenditure_org_id Expenditure organization identifier for procurement deliverable actions
4623 * @param p_expenditure_item_date Expenditure item date for procurement deliverable actions
4624 * @param p_requisition_line_type_id The requisition line type identifier. This can only have a type of AMOUNT.
4625 * The requisition line type is needed only for non-item-based deliverable procurement actions.
4626 * @param p_category_id The item category identifier is needed only for non-item-based deliverable procurement actions.
4627 * @param p_ready_to_procure_flag Flag that indicates if an idem is ready to be procured
4628 * @rep:paraminfo {@rep:precision 1}
4629 * @param p_initiate_procure_flag Flag that indicates if a procurement action should be initiated
4630 * @rep:paraminfo {@rep:precision 1}
4631 * @param p_ship_from_organization_id The inventory org identifier of the inventory organization that will ship the item
4632 * @param p_ship_from_location_id The location (address) identifier where the item will be shipped to.
4633 * The SHIP_FROM_LOCATION_ID must be related to the P_SHIP_FROM_ORGANIZATION_ID .
4634 * @param p_ship_to_organization_id The customer account identifier to which the item will be shipped to
4635 * @param p_ship_to_location_id The customer location (address) identifier where the item will be shipped to.
4636 * The SHIP_TO_LOCATION_ID must be related to the P_SHIP_TO_ORGANIZATION_ID .
4637 * @param p_demand_schedule Demand schedule
4638 * @rep:paraminfo {@rep:precision 10}
4639 * @param p_expected_shipment_date Expected shipment date
4640 * @param p_promised_shipment_date Promised shipment date
4641 * @param p_volume The volume of each object to be shipped. The volume is needed only for non-item shipping.
4642 * @param p_volume_uom The volume unit of measure of each object to be shipped.
4643 * The volume unit of measure is needed only for non-item shipping.
4644 * @rep:paraminfo {@rep:precision 10}
4645 * @param p_weight The weight of each object to be shipped. The weight is needed only for non-item shipping.
4646 * @param p_weight_uom The weight unit of measure of each object to be shipped. The weight unit of
4647 * measure is needed only for non-item shipping.
4648 * @rep:paraminfo {@rep:precision 10}
4649 * @param p_ready_to_ship_flag Flag that indicates if an item is ready to shipped
4650 * @rep:paraminfo {@rep:precision 1}
4651 * @param p_initiate_planning_flag Flag that indicates if planning should be initiated
4652 * @rep:paraminfo {@rep:precision 1}
4653 * @param p_initiate_shipping_flag Flag that indicates if shipping should be initiated
4654 * @rep:paraminfo {@rep:precision 1}
4655 * @param p_event_type Billing event type
4656 * @rep:paraminfo {@rep:precision 30}
4657 * @param p_currency Currency code for the billing event
4658 * @rep:paraminfo {@rep:precision 30}
4659 * @param p_invoice_amount Invoice amount for the billing
4660 * @param p_revenue_amount Revenue amount for the billing event
4661 * @param p_event_date Event date for the billing event
4662 * @param p_event_number Event number for the billing event
4663 * @param p_organization_id Organization identifier of the organization associated with the billing event
4664 * @param p_bill_hold_flag Flag that indicates if a billing event is on hold
4665 * @rep:paraminfo {@rep:precision 1}
4666 * @param p_project_functional_rate_type Rate type for project functional currency for the billing event
4667 * @rep:paraminfo {@rep:precision 30}
4668 * @param p_project_functional_rate_date Rate date for project functional currency for the billing event
4669 * @param p_project_functional_rate Rate for project functional currency for the billing event
4670 * @param p_project_rate_type Rate type for project currency for the billing event
4671 * @rep:paraminfo {@rep:precision 30}
4672 * @param p_project_rate_date Rate date for project currency for the billing event
4673 * @param p_project_rate Rate for project currency for the billing event
4674 * @param p_funding_rate_type Rate type for funding currency for the billing event
4675 * @rep:paraminfo {@rep:precision 30}
4676 * @param p_funding_rate_date Rate date for funding currency for the billing event
4677 * @param p_funding_rate Rate for funding currency for the billing event
4678 * @param p_pm_event_reference The unique identifier of the billing event in the external system
4679 * @rep:paraminfo {@rep:precision 25}
4680 * @param x_action_out Table of successfully processed actions
4681 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4685 * @rep:scope public
4682 * @rep:paraminfo {@rep:required}
4683 * @param x_msg_count API standard: number of error messages
4684 * @param x_msg_data API standard: error message
4686 * @rep:lifecycle active
4687 * @rep:displayname Create Deliverable Action
4688 * @rep:category BUSINESS_ENTITY PA_PROJECT
4689 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4690 * @rep:compatibility S
4691 */
4692 PROCEDURE create_deliverable_action
4693 ( p_api_version IN NUMBER := 1.0
4694 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4695 , p_debug_mode IN VARCHAR2 := FND_API.G_FALSE
4696 , p_commit IN VARCHAR2 := FND_API.G_FALSE
4697 , p_action_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4698 , p_action_owner_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4699 , p_function_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4700 , p_due_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4701 , p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4702 , p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4703 , p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4704 , p_pm_action_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4705 -- for bug# 3729250
4706 -- , p_carrying_out_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4707 , p_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4708 , p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4709 -- added for bug# 3729250
4710 , p_pm_proj_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4711 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4712 -- added for bug# 3729250
4713 , p_financial_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4714 , p_financial_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4715 , p_destination_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4716 , p_receiving_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4717 , p_receiving_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4718 , p_po_need_by_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4719 , p_vendor_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4720 , p_vendor_site_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4721 -- , p_project_currency IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4722 , p_Quantity IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4723 , p_uom_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4724 , p_unit_price IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4725 , p_exchange_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4726 , p_exchange_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4727 , p_exchange_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4728 , p_expenditure_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4729 , p_expenditure_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4730 , p_expenditure_item_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4731 , p_requisition_line_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4732 , p_category_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4733 , p_ready_to_procure_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4734 , p_initiate_procure_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4735 , p_ship_from_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4736 , p_ship_from_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4737 , p_ship_to_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4738 , p_ship_to_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4739 , p_demand_schedule IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4740 , p_expected_shipment_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4741 , p_promised_shipment_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4742 , p_volume IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4743 , p_volume_uom IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4744 , p_weight IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4745 , p_weight_uom IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4746 , p_ready_to_ship_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4747 , p_initiate_planning_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4748 , p_initiate_shipping_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4749 , p_event_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4750 , p_currency IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3749462 changed data type
4751 , p_invoice_amount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4752 , p_revenue_amount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4753 , p_event_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4754 , p_event_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4755 , p_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4756 , p_bill_hold_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4760 , p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4757 , p_project_functional_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4758 , p_project_functional_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4759 , p_project_functional_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4761 , p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4762 , p_project_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4763 , p_funding_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4764 , p_funding_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4765 , p_funding_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4766 , p_pm_event_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3651489 added parameter
4767 , x_action_out OUT NOCOPY action_out_tbl_type
4768 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4769 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
4770 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4771 );
4772
4773
4774 /*#
4775 * This API is used to update attributes of a deliverable for a project.
4776 * @param p_api_version API standard: version number
4777 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4778 * @param p_commit API standard (default = F): indicates if the transaction will be committed
4779 * @param p_debug_mode Indicates to the system whether to display debug messages
4780 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4781 * @rep:paraminfo {@rep:required}
4782 * @param p_deliverable_name Deliverable name
4783 * @rep:paraminfo {@rep:required}
4784 * @param p_deliverable_short_name Deliverable short name
4785 * @rep:paraminfo {@rep:required}
4786 * @param p_deliverable_type_id Identifier of the deliverable type
4787 * @param p_deliverable_owner_id Deliverable owner identifier
4788 * @param p_description Deliverable description
4789 * @param p_status_code Deliverable status code
4790 * @param p_due_date Deliverable due date
4791 * @param p_completion_date Deliverable completion date
4792 * @param p_progress_weight Progress weight
4793 * @param px_deliverable_id Unique identifier of the deliverable in Oracle Projects
4794 * @rep:paraminfo {@rep:required}
4795 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
4796 * @rep:paraminfo {@rep:required}
4797 * @param p_task_id Task identifier of the task associated with the deliverable
4798 * @param p_task_source_reference Task reference of the task associated with the deliverable
4799 * @param p_project_id Unique identifier of the project
4800 * @param p_proj_source_reference Unique identifier of the project in the external system
4801 * @param p_action_in_tbl Table of deliverable actions that need to be created
4802 * @param x_action_out_tbl Table of successfully processed actions
4803 * @param p_item_id The identifier of the item. Applies only to item-based deliverables.
4804 * @param P_inventory_org_id The inventory organization identifier of the item. Applies only to item-based deliverables.
4805 * @param p_quantity The quantity of the item. Applies only to item-based deliverables.
4806 * @param p_uom_code The unit of measure code of the deliverable. Applies only to item-based deliverables.
4807 * @rep:paraminfo {@rep:precision 30}
4808 * @param p_unit_price The unit price of the deliverable. Applies only to item-based deliverables.
4809 * @param p_unit_number The unit number of the deliverable. Required when an item-based deliverable
4810 * is unit number-enabled.
4811 * @rep:paraminfo {@rep:precision 30}
4812 * @param p_currency_code The currency code of the deliverable. Applies only to item-based deliverables.
4813 * @rep:paraminfo {@rep:precision 15}
4814 * @param p_pm_source_code Identifier of the external system
4815 * @param x_msg_count API standard: number of error messages
4816 * @param x_msg_data API standard: error message
4817 * @rep:scope public
4818 * @rep:lifecycle active
4819 * @rep:displayname Update Deliverable
4820 * @rep:category BUSINESS_ENTITY PA_PROJECT
4821 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4822 * @rep:compatibility S
4823 */
4824 PROCEDURE update_deliverable
4825 ( p_api_version IN NUMBER := 1.0
4826 , p_init_msg_list IN VARCHAR2 := 'F'
4827 , p_commit IN VARCHAR2 := FND_API.G_FALSE
4828 , p_debug_mode IN VARCHAR2 := 'N'
4829 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4830 , p_deliverable_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4831 , p_deliverable_short_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4832 , p_deliverable_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4833 , p_deliverable_owner_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4834 , p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4835 , p_status_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4836 , p_due_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4837 , p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4838 , p_progress_weight IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4839 , px_deliverable_id IN OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
4840 , p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4841 -- for bug# 3729250
4842 -- , p_carrying_out_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4846 , p_proj_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4843 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4844 , p_task_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4845 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4847 , p_action_in_tbl IN action_in_tbl_type := G_deliverable_actions_in_tbl -- 3435905 passing default
4848 , x_action_out_tbl OUT NOCOPY action_out_tbl_type --File.Sql.39 bug 4440895
4849 , p_item_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4850 , P_inventory_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4851 , p_quantity IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4852 , p_uom_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4853 -- for bug# 3729250
4854 -- , p_item_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4855 , p_unit_price IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4856 -- for bug# 3729250
4857 , p_unit_number IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4858 , p_currency_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4859 , p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR /* Bug no. 3651113 */
4860 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
4861 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
4862 ) ;
4863
4864
4865 /*#
4866 * This API is used to update a deliverable action for a deliverable.
4867 * @param p_api_version API standard: version number
4868 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
4869 * @param p_debug_mode Indicates to the system whether to display debug messages
4870 * @param p_commit API standard (default = F): indicates if the transaction will be committed
4871 * @param p_action_name Deliverable action name
4872 * @param p_action_owner_id Action owner identifier
4873 * @param p_function_code Deliverable action function code
4874 * @param p_due_date Due date of the deliverable action
4875 * @param p_description Description of the action
4876 * @param p_completion_date Completion date
4877 * @param p_pm_source_code Unique identifier of the external system
4878 * @param p_pm_action_reference Unique identifier of the deliverable action in the external system
4879 * @param p_action_id Unique identifier of the deliverable action
4880 * @param p_deliverable_reference Unique identifier of the deliverable in the external system
4881 * @param p_deliverable_id Unique identifier of the deliverable in Oracle Projects
4882 * @rep:paraminfo {@rep:required}
4883 * @param p_pm_proj_reference Unique identifier of the project in the external system
4884 * @param p_project_id Unique identifier of the project
4885 * @param p_financial_task_reference Unique identifier of the financial task
4886 * @param p_financial_task_id Identifier of the financial task
4887 * @param p_destination_type_code The destination type code of the deliverable action
4888 * @rep:paraminfo {@rep:precision 30}
4889 * @param p_receiving_org_id The identifier of the inventory organization that will receive the item
4890 * @param p_receiving_location_id The location (address) identifier where the item will be received. The
4891 * RECEIVING_LO CATION_ID must be related to the RECEIVING_ORG_ID.
4892 * @param p_po_need_by_date The date by which the purchase order is needed
4893 * @param p_vendor_id The identifier of the vendor that will supply the object
4894 * @param p_vendor_site_code The location (address) code of the vendor from where the object will be supplied
4895 * @param p_Quantity Quantity for procurement deliverable action
4896 * @param p_uom_code The unit of measure code for procurement deliverable action
4897 * @rep:paraminfo {@rep:precision 30}
4898 * @param p_unit_price The unit price of the object. The unit price is needed only for non-item
4899 * deliverable procurement actions.
4900 * @param p_exchange_rate_type Exchange rate type for procurement deliverable actions
4901 * @param p_exchange_rate_date Exchange rate date for procurement deliverable actions
4902 * @param p_exchange_rate Exchange rate for procurement deliverable actions
4903 * @param p_expenditure_type The expenditure type. This is needed only for non-item based deliverable procurement actions.
4904 * @param p_expenditure_org_id Expenditure organization identifier for procurement deliverable actions
4905 * @param p_expenditure_item_date Expenditure item date for procurement deliverable actions
4906 * @param p_requisition_line_type_id The requisition line type identifier. This can only have a type of AMOUNT.
4907 * The requisition line type is needed only for non-item based deliverable procurement actions.
4908 * @param p_category_id The item category identifier. This is needed only for non-item based deliverable procurement actions.
4909 * @param p_ready_to_procure_flag Flag that indicates if an item is ready to be procured
4910 * @rep:paraminfo {@rep:precision 1}
4911 * @param p_initiate_procure_flag Flag that indicates if a procurement action should be initiated
4912 * @rep:paraminfo {@rep:precision 1}
4913 * @param p_ship_from_organization_id The inventory organization identifier of the inventory organization that will ship the item
4914 * @param p_ship_from_location_id The location (address) identifier where the item will be shipped.
4915 * The P_SHIP_FROM_LOCATION_ID must be related to the P_SHIP_FROM_ORGANIZATION_ID.
4916 * @param p_ship_to_organization_id The customer account identifier to which the item will be shipped
4917 * @param p_ship_to_location_id The customer location (address) identifier to where the item will be shipped
4918 * The P_SHIP_TO_LOCATION_ID must be related to the P_SHIP_TO_ORGANIZATION_ID.
4919 * @param p_demand_schedule Demand schedule
4920 * @rep:paraminfo {@rep:precision 10}
4924 * @param p_volume_uom The volume unit of measure of each object to be shipped.
4921 * @param p_expected_shipment_date Expected shipment date
4922 * @param p_promised_shipment_date Promised shipment date
4923 * @param p_volume The volume of each object to be shipped. The volume is needed only for non-item shipping.
4925 * The volume unit of measure is needed only for non-item shipping.
4926 * @rep:paraminfo {@rep:precision 10}
4927 * @param p_weight The weight of each object to be shipped. The weight is needed only for non-item shipping.
4928 * @param p_weight_uom The weight unit of measure of each object to be shipped. The weight unit of
4929 * measure is needed only for non-item shipping.
4930 * @rep:paraminfo {@rep:precision 10}
4931 * @param p_ready_to_ship_flag Flag that indicates if an item is ready to be shiped.
4932 * @rep:paraminfo {@rep:precision 1}
4933 * @param p_initiate_planning_flag Flag that indicates if planning should be initiated.
4934 * @rep:paraminfo {@rep:precision 1}
4935 * @param p_initiate_shipping_flag Flag that indicates if shipping should be initiated.
4936 * @rep:paraminfo {@rep:precision 1}
4937 * @param p_event_type Billing event type
4938 * @rep:paraminfo {@rep:precision 30}
4939 * @param p_currency Currency code for the billing event
4940 * @rep:paraminfo {@rep:precision 30}
4941 * @param p_invoice_amount Invoice amount for the billing
4942 * @param p_revenue_amount Revenue amount for the billing event
4943 * @param p_event_date Event date for the billing event
4944 * @param p_event_number Event number for the billing event
4945 * @param p_organization_id Organization identifier of the organization associated with the billing event
4946 * @param p_bill_hold_flag Flag that indicates if a billing event is on hold
4947 * @rep:paraminfo {@rep:precision 1}
4948 * @param p_project_functional_rate_type Rate type for project functional currency for the billing event
4949 * @rep:paraminfo {@rep:precision 30}
4950 * @param p_project_functional_rate_date Rate date for project functional currency for the billing event
4951 * @param p_project_functional_rate Rate for project functional currency for the billing event
4952 * @param p_project_rate_type Rate type for project currency for the billing event
4953 * @rep:paraminfo {@rep:precision 30}
4954 * @param p_project_rate_date Rate date for project currency for the billing event
4955 * @param p_project_rate Rate for project currency for the billing event
4956 * @param p_funding_rate_type Rate type for funding currency for the billing event
4957 * @rep:paraminfo {@rep:precision 30}
4958 * @param p_funding_rate_date Rate date for funding currency for the billing event
4959 * @param p_funding_rate Rate for funding currency for the billing event
4960 * @param p_pm_event_reference The unique identifier of the billing event in the external system
4961 * @rep:paraminfo {@rep:precision 25}
4962 * @param x_action_out Table of successfully processed actions
4963 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
4964 * @rep:paraminfo {@rep:required}
4965 * @param x_msg_count API standard: number of error messages
4966 * @param x_msg_data API standard: error message
4967 * @rep:scope public
4968 * @rep:lifecycle active
4969 * @rep:displayname Update Deliverable Action
4970 * @rep:category BUSINESS_ENTITY PA_PROJECT
4971 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
4972 * @rep:compatibility S
4973 */
4974 PROCEDURE update_deliverable_action
4975 ( p_api_version IN NUMBER := 1.0
4976 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
4977 , p_debug_mode IN VARCHAR2 := FND_API.G_FALSE
4978 , p_commit IN VARCHAR2 := FND_API.G_FALSE
4979 , p_action_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4980 , p_action_owner_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4981 , p_function_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4982 , p_due_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4983 , p_description IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4984 , p_completion_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
4985 , p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4986 , p_pm_action_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4987 -- added for bug# 3729250
4988 , p_action_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4989 -- for bug# 3729250
4990 -- , p_carrying_out_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4991 , p_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4992 , p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4993 -- added for bug# 3729250
4994 , p_pm_proj_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4995 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4996 , p_financial_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
4997 -- added for bug# 3729250
4998 , p_financial_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
4999 , p_destination_type_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5000 , p_receiving_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5001 , p_receiving_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5002 , p_po_need_by_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5003 , p_vendor_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5004 , p_vendor_site_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5005 -- , p_project_currency IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5009 , p_exchange_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5006 , p_Quantity IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5007 , p_uom_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5008 , p_unit_price IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5010 , p_exchange_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5011 , p_exchange_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5012 , p_expenditure_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5013 , p_expenditure_org_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5014 , p_expenditure_item_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5015 , p_requisition_line_type_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5016 , p_category_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5017 , p_ready_to_procure_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5018 , p_initiate_procure_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5019 , p_ship_from_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5020 , p_ship_from_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5021 , p_ship_to_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5022 , p_ship_to_location_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5023 , p_demand_schedule IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5024 , p_expected_shipment_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5025 , p_promised_shipment_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5026 , p_volume IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5027 , p_volume_uom IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5028 , p_weight IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5029 , p_weight_uom IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5030 , p_ready_to_ship_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5031 , p_initiate_planning_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5032 , p_initiate_shipping_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5033 , p_event_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5034 , p_currency IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3749474 changed data type
5035 , p_invoice_amount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5036 , p_revenue_amount IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5037 , p_event_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5038 , p_event_number IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5039 , p_organization_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5040 , p_bill_hold_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5041 , p_project_functional_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5042 , p_project_functional_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5043 , p_project_functional_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5044 , p_project_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5045 , p_project_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5046 , p_project_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5047 , p_funding_rate_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5048 , p_funding_rate_date IN DATE := PA_INTERFACE_UTILS_PUB.G_PA_MISS_DATE
5049 , p_funding_rate IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5050 , p_pm_event_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- 3651489 added parameter
5051 , x_action_out OUT NOCOPY action_out_tbl_type
5052 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5053 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5054 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5055 );
5056
5057 /*#
5058 * This API is used to delete a deliverable for a project.
5059 * @param p_api_version API standard: version number
5060 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5061 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5062 * @param p_pm_source_code Identifier of the external system
5063 * @param p_pm_project_reference Unique identifier of the project in the external system
5064 * @param p_project_id Unique identifier of the project in Oracle Projects
5065 * @param p_deliverable_id Unique identifier of the deliverable
5066 * @param p_pm_dlv_source_reference Unique identifier of the deliverable in the external system
5067 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5068 * @param x_msg_count API standard: number of error messages
5069 * @param x_msg_data API standard: error message
5070 * @rep:scope public
5071 * @rep:lifecycle active
5072 * @rep:displayname Delete Deliverable
5073 * @rep:category BUSINESS_ENTITY PA_PROJECT
5074 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
5075 * @rep:compatibility S
5076 */
5077 Procedure Delete_Deliverables (
5078 p_api_version IN NUMBER := 1.0
5079 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5080 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5084 -- for bug# 3729250
5081 ,p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5082 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5083 ,p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5085 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5086 ,p_pm_dlv_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5087 ,x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5088 ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5089 ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5090 );
5091
5092
5093 /*#
5094 * This API is used to delete a deliverable action for a deliverable.
5095 * @param p_api_version API standard: version number
5096 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5097 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5098 * @param p_pm_source_code Identifier of the external system
5099 * @param p_pm_project_reference Unique identifier of the project in the external system
5100 * @param p_project_id Unique identifier of the project in Oracle Projects
5101 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
5102 * @rep:paraminfo {@rep:required}
5103 * @param p_deliverable_id Unique identifier of the deliverable
5104 * @rep:paraminfo {@rep:required}
5105 * @param p_action_source_reference Unique identifier of the deliverable action in the external system
5106 * @param p_action_id Unique identifier of the deliverable action
5107 * @rep:paraminfo {@rep:required}
5108 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5109 * @param x_msg_count API standard: number of error messages
5110 * @param x_msg_data API standard: error message
5111 * @rep:scope public
5112 * @rep:lifecycle active
5113 * @rep:displayname Delete Deliverable Action
5114 * @rep:category BUSINESS_ENTITY PA_PROJECT
5115 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
5116 * @rep:compatibility S
5117 */
5118 PROCEDURE delete_deliverable_actions
5119 ( p_api_version IN NUMBER := 1.0 -- 3749480 changed default value
5120 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5121 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5122 ,p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5123 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5124 ,p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5125 -- for bug# 3729250 , changed datatype from NUMBER to VARCHAR2
5126 ,p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5127 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5128 -- for bug# 3729250 , changed datatype from NUMBER to VARCHAR2
5129 ,p_action_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5130 ,p_action_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5131 ,x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5132 ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5133 ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5134 );
5135
5136
5137 /*#
5138 * This API is used to associate a deliverable with a task.
5139 * @param p_api_version API standard: version number
5140 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5141 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5142 * @param p_debug_mode Indicates whether to display debug messages
5143 * @param p_pm_source_code Identifier of the external system
5144 * @param p_pm_project_reference Unique identifier of the project in the external system
5145 * @param p_project_id Unique identifier of the project in Oracle Projects
5146 * @param p_pm_task_reference Unique identifier of the task in the external system
5147 * @param p_task_id Unique identifier of the task
5148 * @param p_deliverable_reference Unique identifier of the deliverable in the external system
5149 * @rep:paraminfo {@rep:required}
5150 * @param p_deliverable_id Unique identifier of the deliverable
5151 * @rep:paraminfo {@rep:required}
5152 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5153 * @param x_msg_count API standard: number of error messages
5154 * @param x_msg_data API standard: error message
5155 * @rep:scope public
5156 * @rep:lifecycle active
5157 * @rep:displayname Associate Deliverable with Task
5158 * @rep:category BUSINESS_ENTITY PA_PROJECT
5159 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
5160 * @rep:category BUSINESS_ENTITY PA_TASK
5161 * @rep:compatibility S
5162 */
5163 Procedure ASSOCIATE_DLV_TO_TASK (
5164 p_api_version IN NUMBER := 1.0
5165 ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5166 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5167 ,p_debug_mode IN VARCHAR2 := FND_API.G_FALSE
5168 ,p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5169 -- added for bug# 3729250
5170 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5171 ,p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5172 -- added for bug# 3729250
5173 ,p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5174 ,p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5175 -- added for bug# 3729250
5179 ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5176 ,p_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5177 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5178 ,x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5180 ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5181 );
5182
5183 /*#
5184 * This API is used to associate a deliverable with a task assignment.
5185 * @param p_api_version API standard: version number
5186 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5187 * @param p_commit API API standard (default = F): indicates if the transaction will be committed
5188 * @param p_debug_mode Indicates whether to display debug messages
5189 * @param p_pm_source_code Identifier of the external system
5190 * @param p_pm_project_reference Unique identifier of the project in the external system
5191 * @param p_project_id Unique identifier of the project in Oracle Projects
5192 * @param p_pm_task_asgmt_reference Unique identifier of the task assignment in the external system
5193 * @param p_task_assign_id Unique identifier of the task assignment
5194 * @param p_deliverable_reference Unique identifier of the deliverable in the external system
5195 * @rep:paraminfo {@rep:required}
5196 * @param p_deliverable_id Unique identifier of the deliverable
5197 * @rep:paraminfo {@rep:required}
5198 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5199 * @param x_msg_count API standard: number of error messages
5200 * @param x_msg_data API standard: error message
5201 * @rep:scope public
5202 * @rep:lifecycle active
5203 * @rep:displayname Associate Deliverable to Task Assignment
5204 * @rep:category BUSINESS_ENTITY PA_PROJECT
5205 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
5206 * @rep:category BUSINESS_ENTITY PA_TASK_RESOURCE
5207 * @rep:compatibility S
5208 */
5209 Procedure ASSOCIATE_DLV_TO_TASK_ASSIGN (
5210 p_api_version IN NUMBER := 1.0
5211 ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5212 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5213 ,p_debug_mode IN VARCHAR2 := FND_API.G_FALSE
5214 ,p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5215 -- added for bug# 3729250
5216 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5217 ,p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5218 ,p_pm_task_asgmt_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5219 ,p_task_assign_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5220 -- added for bug# 3729250
5221 ,p_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5222 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5223 ,x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5224 ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5225 ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5226 );
5227
5228
5229 /*#
5230 * This API is used to delete a deliverable-to-task association.
5231 * @param p_api_version API standard: version number
5232 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5233 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5234 * @param p_pm_source_code Identifier of the external system
5235 * @param p_pm_project_reference Unique identifier of the project in the external system
5236 * @param p_project_id Unique identifier of the project in Oracle Projects
5237 * @param p_task_reference Unique identifier of the task in the external system
5238 * @param p_task_id Unique identifier of the task
5239 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
5240 * @rep:paraminfo {@rep:required}
5241 * @param p_deliverable_id Unique identifier of the deliverable
5242 * @rep:paraminfo {@rep:required}
5243 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5244 * @param x_msg_count API standard: number of error messages
5245 * @param x_msg_data API standard: error message
5246 * @rep:scope public
5247 * @rep:lifecycle active
5248 * @rep:displayname Delete Deliverable-Task Association
5249 * @rep:category BUSINESS_ENTITY PA_PROJECT
5250 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
5251 * @rep:category BUSINESS_ENTITY PA_TASK
5252 * @rep:compatibility S
5253 */
5254 Procedure DELETE_DLV_TO_TASK_ASSCN (
5255 p_api_version IN NUMBER :=1.0
5256 ,p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE
5257 ,p_commit IN VARCHAR2 :=FND_API.G_FALSE
5258 ,p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5259 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5260 ,p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5261 ,p_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5262 ,p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5263 ,p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5264 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5265 ,x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5266 ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5270 -- 3729250 Added procedure to spec, procedure was already defined in body
5267 ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5268 );
5269
5271 -- added p_pm_project_reference IN parameter also
5272
5273 /*#
5274 * This API is used to delete a deliverable-to-task assignment association.
5275 * @param p_api_version API standard: version number
5276 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5277 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5278 * @param p_debug_mode Indicates whether to display debug messages
5279 * @param p_pm_source_code Identifier of the external system
5280 * @param p_project_id Unique identifier of the project in Oracle Projects
5281 * @param p_pm_project_reference Unique identifier of the project in the external system
5282 * @param p_task_assign_id Unique identifier of the task assignment
5283 * @param p_pm_task_asgmt_reference Unique identifier of the task assignment in the external system
5284 * @param p_deliverable_id Unique identifier of the deliverable
5285 * @rep:paraminfo {@rep:required}
5286 * @param p_pm_deliverable_reference Unique identifier of the deliverable in the external system
5287 * @rep:paraminfo {@rep:required}
5288 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5289 * @param x_msg_count API standard: number of error messages
5290 * @param x_msg_data API standard: error message
5291 * @rep:scope public
5292 * @rep:lifecycle active
5293 * @rep:displayname Delete Deliverable-Task Assignment Association
5294 * @rep:category BUSINESS_ENTITY PA_PROJECT
5295 * @rep:category BUSINESS_ENTITY PA_PROJ_DELIVERABLE
5296 * @rep:category BUSINESS_ENTITY PA_TASK_RESOURCE
5297 * @rep:compatibility S
5298 */
5299 Procedure DELETE_DLV_TO_TASK_ASSIGN (
5300 p_api_version IN NUMBER := 1.0
5301 ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5302 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5303 ,p_debug_mode IN VARCHAR2 := FND_API.G_FALSE
5304 ,p_pm_source_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5305 ,p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5306 ,p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5307 ,p_task_assign_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5308 ,p_pm_task_asgmt_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5309 ,p_deliverable_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM -- Added for 3888280
5310 ,p_pm_deliverable_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR -- Added for 3888280
5311 ,x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5312 ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5313 ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5314 );
5315
5316 -- 3435905 FP M Changes for deliverables : End
5317 -- Added by rtarway for FP.M Changes in Mapping and Set Financial Task
5318
5319 /*#
5320 * This API is used to update an existing mapping between a workplan task and a financial task for a project
5321 * having split-mapped structure sharing between workplan and financial structures.
5322 * @param p_api_version API standard: version number
5323 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5324 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5325 * @param p_debug_mode Indicates to the system whether to display debug messages (default = N)
5326 * @param px_mapped_task_id The unique identifier of the financial task in Oracle Projects
5327 * @param p_mapped_task_reference The reference code that uniquely identifies the financial task in the external system
5328 * @param p_mapped_task_name Name of the financial task
5329 * @param p_wkp_task_id The unique identifier of the workplan task
5330 * @param p_wkp_task_name Name of the workplan task
5331 * @param p_wkp_structure_version_id The unique identifier of the workplan structure in Oracle Projects
5332 * @param p_wkp_task_reference The reference code that uniquely identifies the workplan task in the external system
5333 * @param p_project_id The unique identifier of the project in Oracle Projects
5334 * @param p_proj_source_reference The reference code that uniquely identifies the project in the external system
5335 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5336 * @rep:paraminfo {@rep:required}
5337 * @param x_msg_count API standard: number of error messages
5338 * @rep:paraminfo {@rep:required}
5339 * @param x_msg_data API standard: error message
5340 * @rep:paraminfo {@rep:required}
5341 * @rep:scope public
5342 * @rep:lifecycle active
5343 * @rep:displayname Update Mapping
5344 * @rep:category BUSINESS_ENTITY PA_TASK
5345 * @rep:compatibility S
5346 */
5347 PROCEDURE update_mapping
5348 ( p_api_version IN NUMBER := 1.0
5349 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5350 , p_commit IN VARCHAR2 := FND_API.G_TRUE
5351 , p_debug_mode IN VARCHAR2 := 'N'
5352 , px_mapped_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5353 , p_mapped_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5354 , p_mapped_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5355 , p_wkp_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5359 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5356 , p_wkp_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5357 , p_wkp_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5358 , p_wkp_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5360 , p_proj_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5361 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5362 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5363 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5364 );
5365
5366 /*#
5367 * This API is used to create a mapping between a workplan task and a financial task for a project
5368 * having split-mapped structure sharing between workplan and financial structures.
5369 * @param p_api_version API standard: version number
5370 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5371 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5372 * @param p_debug_mode Indicates to the system whether to display debug messages (default = N)
5373 * @param px_mapped_task_id The unique identifier of the financial task in Oracle Projects
5374 * @param p_mapped_task_reference The reference code that uniquely identifies the financial task in the external system
5375 * @param p_mapped_task_name Name of the mapped financial Task
5376 * @param p_wkp_task_id The unique identifier of the workplan task
5377 * @param p_wkp_task_name Name of the workplan task
5378 * @param p_wkp_structure_version_id The unique identifier of the workplan structure version in Oracle Projects
5379 * @param p_wkp_task_reference The reference code that uniquely identifies the workplan task in the external system
5380 * @param p_project_id The unique identifier of the project in Oracle Projects
5381 * @param p_proj_source_reference The reference code that uniquely identifies the project in the external system
5382 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5383 * @rep:paraminfo {@rep:required}
5384 * @param x_msg_count API standard: number of error messages
5385 * @rep:paraminfo {@rep:required}
5386 * @param x_msg_data API standard: error message
5387 * @rep:paraminfo {@rep:required}
5388 * @rep:scope public
5389 * @rep:lifecycle active
5390 * @rep:displayname Create Mapping
5391 * @rep:category BUSINESS_ENTITY PA_TASK
5392 * @rep:compatibility S
5393 */
5394 PROCEDURE create_mapping
5395 ( p_api_version IN NUMBER := 1.0
5396 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5397 , p_commit IN VARCHAR2 := FND_API.G_TRUE
5398 , p_debug_mode IN VARCHAR2 := 'N'
5399 , px_mapped_task_id IN NUMBER
5400 , p_mapped_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5401 , p_mapped_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5402 , p_wkp_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5403 , p_wkp_task_name IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5404 , p_wkp_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5405 , p_wkp_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5406 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5407 , p_proj_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5408 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5409 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5410 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5411 ) ;
5412
5413 PROCEDURE process_tasks_table
5414 ( p_api_version IN NUMBER := 1.0
5415 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5416 , p_debug_mode IN VARCHAR2 := 'N'
5417 , p_structure_type IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5418 , p_tasks_in_tbl IN OUT NOCOPY task_in_tbl_type --File.Sql.39 bug 4440895
5419 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5420 , p_proj_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5421 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5422 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5423 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5424 ) ;
5425
5426 /*#
5427 * This API is used to delete an existing mapping between a workplan task and a financial task for a project
5428 * having split-mapped structure sharing between workplan and financial structures.
5429 * @param p_api_version API standard: version number
5430 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5431 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5432 * @param p_debug_mode Indicates to the system whether to display debug messages (default = N)
5433 * @param p_wp_task_version_id The unique identifier of a workplan task version in Oracle Projects
5434 * @param p_fp_task_version_id The unique identifier of the financial task version in Oracle Projects
5435 * @param p_wp_task_id The unique identifier of the workplan task in Oracle Projects
5436 * @param p_fp_task_id The unique identifier of the financial task in Oracle Projects
5440 * @param p_project_id The unique identifier of the project in Oracle Projects
5437 * @param p_pm_wp_task_reference The reference code that uniquely identifies the workplan task in the external system
5438 * @param p_pm_fp_task_reference The reference code that uniquely identifies the financial task in the external system
5439 * @param p_wp_structure_version_id The unique identifier of the workplan structure version in Oracle Projects
5441 * @param p_proj_source_reference The reference code that uniquely identifies the project in the external system
5442 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5443 * @rep:paraminfo {@rep:required}
5444 * @param x_msg_count API standard: number of error messages
5445 * @rep:paraminfo {@rep:required}
5446 * @param x_msg_data API standard: error message
5447 * @rep:paraminfo {@rep:required}
5448 * @rep:scope public
5449 * @rep:lifecycle active
5450 * @rep:displayname Delete Mapping
5451 * @rep:category BUSINESS_ENTITY PA_TASK
5452 * @rep:compatibility S
5453 */
5454 PROCEDURE Delete_Mapping
5455 (
5456 p_api_version IN NUMBER := 1.0
5457 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5458 , p_commit IN VARCHAR2 := FND_API.G_TRUE
5459 , p_debug_mode IN VARCHAR2 := 'N'
5460 , p_wp_task_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5461 , p_fp_task_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5462 , p_wp_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5463 , p_fp_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5464 , p_pm_wp_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5465 , p_pm_fp_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5466 , p_wp_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5467 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5468 , p_proj_source_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5469 , x_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5470 , x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5471 , x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5472 );
5473 -- Added by rtarway for FP.M Changes in Mapping and Set Financial Task
5474
5475 -- added by hsiu
5476 /*#
5477 * This procedure is used to create an intra-project dependency.
5478 * @param p_api_version_number API standard: version number
5479 * @rep:paraminfo {@rep:required}
5480 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5481 * @rep:paraminfo {@rep:precision 1}
5482 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5483 * @rep:paraminfo {@rep:precision 1}
5484 * @param p_msg_count API standard: number of error messages
5485 * @rep:paraminfo {@rep:required}
5486 * @param p_msg_data API standard: error message
5487 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
5488 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
5489 * @rep:paraminfo {@rep:precision 1}
5490 * @param p_pm_product_code The identifier of the external project management system
5491 * from which the project is imported
5492 * @rep:paraminfo {@rep:required}
5493 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
5494 * @rep:paraminfo {@rep:precision 25}
5495 * @param p_pa_project_id The unique identifier of the project
5496 * @rep:paraminfo {@rep:required}
5497 * @param p_structure_version_id Unique identifier of the of the workplan structure version from which
5498 * the intra project dependency is created
5499 * @rep:paraminfo {@rep:required}
5500 * @param p_pm_task_reference The identifier of the task in the external project
5501 * management system from which the budget is imported
5502 * @rep:paraminfo {@rep:required}
5503 * @param p_pa_task_id Unique identifier of the task
5504 * @rep:paraminfo {@rep:required}
5505 * @param p_pm_pred_reference The identifier of the predecessor task in the external project
5506 * management system from which the budget is imported
5507 * @rep:paraminfo {@rep:required}
5508 * @param p_pa_pred_id Unique identifier of the predecessor task
5509 * @rep:paraminfo {@rep:required}
5510 * @param p_type Type of dependency
5511 * @param p_lag_days Lag days of the dependency
5512 * @param p_comments Comments for the dependency
5513 * @rep:scope public
5514 * @rep:lifecycle active
5515 * @rep:displayname Create Dependency
5516 * @rep:category BUSINESS_ENTITY PA_PROJECT
5517 * @rep:category BUSINESS_ENTITY PA_TASK
5518 * @rep:compatibility S
5519 */
5520 PROCEDURE Create_Dependency(
5521 p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5522 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5523 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5524 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5525 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5526 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5527 ,p_pm_product_code IN VARCHAR2
5528 ,p_pm_project_reference IN VARCHAR2
5529 ,p_pa_project_id IN NUMBER
5530 ,p_structure_version_id IN NUMBER
5531 ,p_pm_task_reference IN VARCHAR2
5532 ,p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5533 ,p_pm_pred_reference IN VARCHAR2
5537 ,p_comments IN VARCHAR2 := NULL
5534 ,p_pa_pred_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5535 ,p_type IN VARCHAR2 := 'FS'
5536 ,p_lag_days IN NUMBER := 0
5538 );
5539
5540 /*#
5541 * This procedure is used to update an intra-project dependency.
5542 * @param p_api_version_number API standard: version number
5543 * @rep:paraminfo {@rep:required}
5544 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5545 * @rep:paraminfo {@rep:precision 1}
5546 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5547 * @rep:paraminfo {@rep:precision 1}
5548 * @param p_msg_count API standard: number of error messages
5549 * @rep:paraminfo {@rep:required}
5550 * @param p_msg_data API standard: error message
5551 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
5552 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
5553 * @rep:paraminfo {@rep:precision 1}
5554 * @param p_pm_product_code The identifier of the external project management system
5555 * from which the project is imported
5556 * @rep:paraminfo {@rep:required}
5557 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
5558 * @rep:paraminfo {@rep:precision 25}
5559 * @param p_pa_project_id The unique identifier of the project
5560 * @rep:paraminfo {@rep:required}
5561 * @param p_structure_version_id Unique identifier of the of the workplan structure version from which
5562 * the intra project dependency is created
5563 * @rep:paraminfo {@rep:required}
5564 * @param p_pm_task_reference The identifier of the task in the external project
5565 * management system from which the budget is imported
5566 * @rep:paraminfo {@rep:required}
5567 * @param p_pa_task_id Unique identifier of the task
5568 * @rep:paraminfo {@rep:required}
5569 * @param p_pm_pred_reference The identifier of the predecessor task in the external project
5570 * management system from which the budget is imported
5571 * @rep:paraminfo {@rep:required}
5572 * @param p_pa_pred_id Unique identifier of the predecessor task
5573 * @rep:paraminfo {@rep:required}
5574 * @param p_type Type of dependency
5575 * @param p_lag_days Lag days of the dependency
5576 * @param p_comments Comments for the dependency
5577 * @rep:scope public
5578 * @rep:lifecycle active
5579 * @rep:displayname Update Dependency
5580 * @rep:category BUSINESS_ENTITY PA_PROJECT
5581 * @rep:category BUSINESS_ENTITY PA_TASK
5582 * @rep:compatibility S
5583 */
5584
5585 PROCEDURE Update_Dependency(
5586 p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5587 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5588 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5589 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5590 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5591 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5592 ,p_pm_product_code IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5593 ,p_pm_project_reference IN VARCHAR2
5594 ,p_pa_project_id IN NUMBER
5595 ,p_structure_version_id IN NUMBER
5596 ,p_pm_task_reference IN VARCHAR2
5597 ,p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5598 ,p_pm_pred_reference IN VARCHAR2
5599 ,p_pa_pred_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5600 ,p_type IN VARCHAR2 := 'FS'
5601 ,p_lag_days IN NUMBER := 0
5602 ,p_comments IN VARCHAR2 := NULL
5603 );
5604
5605 /*#
5606 * This procedure is used to delete an intra-project dependency.
5607 * @param p_api_version_number API standard: version number
5608 * @rep:paraminfo {@rep:required}
5609 * @param p_commit API standard (default = F): indicates if the transaction will be committed
5610 * @rep:paraminfo {@rep:precision 1}
5611 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5612 * @rep:paraminfo {@rep:precision 1}
5613 * @param p_msg_count API standard: number of error messages
5614 * @rep:paraminfo {@rep:required}
5615 * @param p_msg_data API standard: error message
5616 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
5617 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
5618 * @rep:paraminfo {@rep:precision 1}
5619 * @param p_pm_product_code The identifier of the external project management system
5620 * from which the project is imported
5621 * @rep:paraminfo {@rep:required}
5622 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
5623 * @rep:paraminfo {@rep:precision 25}
5624 * @param p_pa_project_id The unique identifier of the project
5625 * @rep:paraminfo {@rep:required}
5626 * @param p_structure_version_id Unique identifier of the workplan structure version from which
5627 * the intra project dependency is created
5628 * @rep:paraminfo {@rep:required}
5629 * @param p_pm_task_reference The identifier of the task in the external project
5630 * management system from which the budget is imported
5631 * @rep:paraminfo {@rep:required}
5632 * @param p_pa_task_id Unique identifier of the task
5633 * @rep:paraminfo {@rep:required}
5634 * @param p_pm_pred_reference The identifier of the predecessor task in the external project
5635 * management system from which the budget is imported
5636 * @rep:paraminfo {@rep:required}
5637 * @param p_pa_pred_id Unique identifier of the predecessor task
5638 * @rep:paraminfo {@rep:required}
5639 * @rep:scope public
5640 * @rep:lifecycle active
5641 * @rep:displayname Delete Dependency
5642 * @rep:category BUSINESS_ENTITY PA_PROJECT
5643 * @rep:category BUSINESS_ENTITY PA_TASK
5644 * @rep:compatibility S
5645 */
5646
5647 PROCEDURE Delete_Dependency(
5648 p_api_version_number IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5649 ,p_commit IN VARCHAR2 := FND_API.G_FALSE
5650 ,p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5651 ,p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5652 ,p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5653 ,p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5654 ,p_pm_product_code IN VARCHAR2
5655 ,p_pm_project_reference IN VARCHAR2
5656 ,p_pa_project_id IN NUMBER
5657 ,p_structure_version_id IN NUMBER
5658 ,p_pm_task_reference IN VARCHAR2
5659 ,p_pa_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5660 ,p_pm_pred_reference IN VARCHAR2
5661 ,p_pa_pred_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5662 );
5663
5664 -- Begin fix for Bug # Bug # 4096218.
5665 /*#
5666 * This API is used to determine whether tasks deleted in an external scheduling system
5667 * such as Microsoft Project would be deleted in Oracle Projects when both the systems are
5668 * integrated. Tasks are deleted immediately in Oracle Projects
5669 * if no published version exists, and are marked for deletion or cancelled when the
5670 * working workplan version is published in Oracle Projects. This procedure prevents
5671 * tasks from being deleted if they have transactions.
5672 * @param p_api_version_number API standard: version number
5673 * @rep:paraminfo {@rep:required}
5674 * @param p_init_msg_list API standard (default = F): indicates if message stack will be initialized
5675 * @rep:paraminfo {@rep:precision 1}
5676 * @param p_return_status API standard: return status of the API (success/failure/unexpected error)
5677 * @rep:paraminfo {@rep:precision 1}
5678 * @param p_msg_count API standard: number of error messages
5679 * @rep:paraminfo {@rep:required}
5680 * @param p_msg_data API standard: error message
5681 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
5682 * @param p_project_id The reference code that uniquely identifies the project in Oracle Projects
5683 * @param p_pm_project_reference The reference code that uniquely identifies the project in the external system
5684 * @param p_task_id The reference code that uniquely identifies the task in a project in Oracle Projects
5685 * @param p_pm_task_reference The reference code that uniquely identifies the task wit a project in the external system
5686 * @param p_task_version_id The reference code that uniquely identifies the task version of the task
5687 * in a project in Oracle Projects
5688 * @param p_structure_type The structure type (default = FINANCIAL)
5689 * @param p_perform_check_delete_task_ok The flag that decides which
5690 * mode this API will be called in (default = N). If this flag is set to N the value of
5691 * the flag: P_CHECK_TASK_MFD_FLAG will be decided by the current
5692 * task status code of the task.If this flag is set to Y the value of
5693 * the flag: P_CHECK_TASK_MFD_FLAG will be decided by performing a
5694 * check to see if the task can be deleted immediately from the structure.
5695 * @param p_check_task_mfd_flag This flag returns the following values:
5696 * Y if the task can be deleted immediately from the structure.
5697 * M if the task can be marked for delete from the structure and deleted later in a subsequent publishing flow.
5698 * N if the task cannot be deleted from the structure.
5699 * @rep:scope public
5700 * @rep:lifecycle active
5701 * @rep:displayname Check Delete Task
5702 * @rep:category BUSINESS_ENTITY PA_PROJECT
5703 * @rep:category BUSINESS_ENTITY PA_TASK
5704 * @rep:compatibility S
5705 */
5709 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5706
5707 PROCEDURE check_task_mfd
5708 ( p_api_version_number IN NUMBER
5710 , p_return_status OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5711 , p_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
5712 , p_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5713 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5714 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5715 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5716 , p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5717 , p_task_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5718 , p_structure_type IN VARCHAR2 := 'FINANCIAL'
5719 , p_perform_check_delete_task_ok IN VARCHAR2 := 'N'
5720 , p_check_task_mfd_flag OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5721 );
5722
5723 -- 4096218 Changed OUT param name to x_deleted_task_ids (earlier it was x_deleted_task_ver_ids)
5724
5725 /*#
5726 * When you publish a version-enabled workplan in Oracle Projects, tasks in the working
5727 * version with a status of To Be Deleted are either deleted or set to a Canceled status.
5728 * The GET_DELETED_TASKS_FROM_OP procedure retrieves the list of deleted tasks in
5729 * Oracle Projects and displays the tasks in an integrated external system such as
5730 * Microsoft Project.
5731 * @param x_deleted_task_ids The list of tasks that were previously marked for deletion and
5732 * have now been deleted from the workplan structure
5733 * @param x_return_status API standard: return status of the API (success/failure/unexpected error)
5734 * @rep:paraminfo {@rep:precision 1}
5735 * @param x_msg_count API standard: number of error messages
5736 * @rep:paraminfo {@rep:required}
5737 * @param x_msg_data API standard: error message
5738 * @rep:paraminfo {@rep:precision 2000} {@rep:required}
5739 * @rep:scope public
5740 * @rep:lifecycle active
5741 * @rep:displayname Delete Tasks from Oracle Projects
5742 * @rep:category BUSINESS_ENTITY PA_PROJECT
5743 * @rep:category BUSINESS_ENTITY PA_TASK
5744 * @rep:compatibility S
5745 */
5746
5747 PROCEDURE get_deleted_tasks_from_op
5748 (
5749 x_deleted_task_ids OUT NOCOPY PA_NUM_1000_NUM, --File.Sql.39 bug 4440895
5750 x_return_status OUT NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
5751 x_msg_count OUT NOCOPY NUMBER, --File.Sql.39 bug 4440895
5752 x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
5753 );
5754 -- End fix for Bug # Bug # 4096218.
5755
5756
5757 -- Bug 5436264 : AMG API FOR PROCESS STRUCTURE UPDATES
5758
5759 PROCEDURE process_structure_updates
5760 (p_api_version_number IN NUMBER := 1.0
5761 , p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE
5762 , p_commit IN VARCHAR2 := FND_API.G_FALSE
5763 , p_return_status OUT NOCOPY VARCHAR2
5764 , p_msg_count OUT NOCOPY NUMBER
5765 , p_msg_data OUT NOCOPY VARCHAR2
5766 , p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5767 , p_pa_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5768 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5769 , p_process_mode IN VARCHAR2 := 'ONLINE'
5770 , p_calling_context IN VARCHAR2 := 'AMG'); -- Bug 6727014
5771
5772
5773 -- Bug 6727014. Creating a wrapper on process_structure_updates to be used in new concurrent request
5774
5775 PROCEDURE process_structure_updates_wrp
5776 (errbuf OUT NOCOPY VARCHAR2
5777 , retcode OUT NOCOPY VARCHAR2
5778 , p_operating_unit IN VARCHAR2
5779 , p_project_num_from IN VARCHAR2
5780 , p_project_num_to IN VARCHAR2
5781 );
5782
5783
5784 -- Bug # 5072032.
5785
5786 PROCEDURE SETUP_PROJECT_AS_PROGRAM
5787 (p_api_version IN NUMBER := 1.0
5788 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5789 , p_commit IN VARCHAR2 := FND_API.G_FALSE
5790 , p_debug_mode IN VARCHAR2 := 'N'
5791 , p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5792 , p_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5793 , p_pm_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5794 , p_sys_program_flag IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5795 , p_allow_multi_program_rollup IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5796 , x_return_status OUT NOCOPY VARCHAR2
5797 , x_msg_count OUT NOCOPY NUMBER
5798 , x_msg_data OUT NOCOPY VARCHAR2);
5799
5800 PROCEDURE CREATE_PROGRAM_LINKS
5801 (p_api_version IN NUMBER := 1.0
5802 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5803 , p_commit IN VARCHAR2 := FND_API.G_FALSE
5804 , p_debug_mode IN VARCHAR2 := 'N'
5805 , p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5806 , p_program_links_tbl IN PA_PROJECT_PUB.PROGRAM_LINKS_TBL_TYPE
5807 , x_return_status OUT NOCOPY VARCHAR2
5808 , x_msg_count OUT NOCOPY NUMBER
5809 , x_msg_data OUT NOCOPY VARCHAR2);
5810
5811 PROCEDURE UPDATE_PROGRAM_LINK_COMMENTS
5812 (p_api_version IN NUMBER := 1.0
5813 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5814 , p_commit IN VARCHAR2 := FND_API.G_FALSE
5815 , p_debug_mode IN VARCHAR2 := 'N'
5816 , p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5817 , p_program_links_tbl IN PA_PROJECT_PUB.PROGRAM_LINKS_TBL_TYPE
5818 , x_return_status OUT NOCOPY VARCHAR2
5819 , x_msg_count OUT NOCOPY NUMBER
5820 , x_msg_data OUT NOCOPY VARCHAR2);
5821
5822 PROCEDURE DELETE_PROGRAM_LINK
5823 (p_api_version IN NUMBER := 1.0
5824 , p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
5825 , p_commit IN VARCHAR2 := FND_API.G_FALSE
5826 , p_debug_mode IN VARCHAR2 := 'N'
5827 , p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5828 , p_object_relationship_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5829 , p_parent_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5830 , p_pm_parent_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5831 , p_task_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5832 , p_pm_task_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5833 , p_task_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5834 , p_structure_type IN VARCHAR2 := 'WORKPLAN'
5835 , p_sub_project_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5836 , p_pm_sub_project_reference IN VARCHAR2 := PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR
5837 , x_return_status OUT NOCOPY VARCHAR2
5838 , x_msg_count OUT NOCOPY NUMBER
5839 , x_msg_data OUT NOCOPY VARCHAR2);
5840
5841 -- End of Bug # 5072032.
5842
5843
5844 --Bug 7525628
5845
5846 PROCEDURE UPDATE_FINANCIAL_ATTRIBUTES
5847 (
5848 P_API_VERSION_NUMBER IN NUMBER,
5849 P_COMMIT IN VARCHAR2,
5850 P_INIT_MSG_LIST IN VARCHAR2,
5851 P_PA_PROJECT_ID IN NUMBER,
5852 P_TASK_ID_TBL IN SYSTEM.PA_NUM_TBL_TYPE,
5853 P_SERVICE_TYPE_CODE_TBL IN SYSTEM.PA_VARCHAR2_150_TBL_TYPE,
5854 P_CHARGEABLE_FLAG_TBL IN SYSTEM.PA_VARCHAR2_150_TBL_TYPE,
5855 P_BILLABLE_FLAG_TBL IN SYSTEM.PA_VARCHAR2_150_TBL_TYPE,
5856 X_MSG_COUNT OUT NOCOPY NUMBER,
5857 X_MSG_DATA OUT NOCOPY VARCHAR2,
5858 X_RETURN_STATUS OUT NOCOPY VARCHAR2
5859 );
5860 -- End fix for Bug 7525628
5861
5862
5863 end PA_PROJECT_PUB;