1 package body pv_prgm_approval_pvt_w as
2 /* $Header: pvxwpapb.pls 115.1 2003/11/01 00:49:08 pukken ship $ */
3 rosetta_g_mistake_date date := to_date('01/01/+4713', 'MM/DD/SYYYY');
4 rosetta_g_miss_date date := to_date('01/01/-4712', 'MM/DD/SYYYY');
5
6 -- this is to workaround the JDBC bug regarding IN DATE of value GMiss
7 function rosetta_g_miss_date_in_map(d date) return date as
8 begin
9 if d = rosetta_g_mistake_date then return fnd_api.g_miss_date; end if;
10 return d;
11 end;
12
13 procedure update_enrl_req_status(p_api_version_number NUMBER
14 , p_init_msg_list VARCHAR2
15 , p_commit VARCHAR2
16 , p_validation_level NUMBER
17 , enrl_request_id NUMBER
18 , entity_code VARCHAR2
19 , approvalstatus VARCHAR2
20 , start_date date
21 , end_date date
22 , x_return_status out nocopy VARCHAR2
23 , x_msg_count out nocopy NUMBER
24 , x_msg_data out nocopy VARCHAR2
25 )
26
27 as
28 ddstart_date date;
29 ddend_date date;
30 ddindx binary_integer; indx binary_integer;
31 begin
32
33 -- copy data to the local IN or IN-OUT args, if any
34
35
36
37
38
39
40
41 ddstart_date := rosetta_g_miss_date_in_map(start_date);
42
43 ddend_date := rosetta_g_miss_date_in_map(end_date);
44
45
46
47
48 -- here's the delegated call to the old PL/SQL routine
49 pv_prgm_approval_pvt.update_enrl_req_status(p_api_version_number,
50 p_init_msg_list,
51 p_commit,
52 p_validation_level,
53 enrl_request_id,
54 entity_code,
55 approvalstatus,
56 ddstart_date,
57 ddend_date,
58 x_return_status,
59 x_msg_count,
60 x_msg_data);
61
62 -- copy data back from the local variables to OUT or IN-OUT args, if any
63
64
65
66
67
68
69
70
71
72
73
74 end;
75
76 end pv_prgm_approval_pvt_w;