1 package body okl_cure_req_amt_pub_w as
2 /* $Header: OKLUCRKB.pls 115.0 2003/04/25 04:15:46 smereddy noship $ */
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 function rosetta_g_miss_num_map(n number) return number as
14 a number := fnd_api.g_miss_num;
15 b number := 0-1962.0724;
16 begin
17 if n=a then return b; end if;
18 if n=b then return a; end if;
19 return n;
20 end;
21
22 procedure update_cure_request(p_api_version NUMBER
23 , p_init_msg_list VARCHAR2
24 , x_return_status out nocopy VARCHAR2
25 , x_msg_count out nocopy NUMBER
26 , x_msg_data out nocopy VARCHAR2
27 , p5_a0 JTF_NUMBER_TABLE
28 , p5_a1 JTF_NUMBER_TABLE
29 , p5_a2 JTF_NUMBER_TABLE
30 , p5_a3 JTF_NUMBER_TABLE
31 , p6_a0 out nocopy JTF_NUMBER_TABLE
32 , p6_a1 out nocopy JTF_NUMBER_TABLE
33 , p6_a2 out nocopy JTF_NUMBER_TABLE
34 , p6_a3 out nocopy JTF_NUMBER_TABLE
35 )
36
37 as
38 ddp_cure_req_tbl okl_cure_req_amt_pub.cure_req_tbl_type;
39 ddx_cure_req_tbl okl_cure_req_amt_pub.cure_req_tbl_type;
40 ddindx binary_integer; indx binary_integer;
41 begin
42
43 -- copy data to the local IN or IN-OUT args, if any
44
45
46
47
48
49 okl_cure_req_amt_pvt_w.rosetta_table_copy_in_p3(ddp_cure_req_tbl, p5_a0
50 , p5_a1
51 , p5_a2
52 , p5_a3
53 );
54
55
56 -- here's the delegated call to the old PL/SQL routine
57 okl_cure_req_amt_pub.update_cure_request(p_api_version,
58 p_init_msg_list,
59 x_return_status,
60 x_msg_count,
61 x_msg_data,
62 ddp_cure_req_tbl,
63 ddx_cure_req_tbl);
64
65 -- copy data back from the local variables to OUT or IN-OUT args, if any
66
67
68
69
70
71
72 okl_cure_req_amt_pvt_w.rosetta_table_copy_out_p3(ddx_cure_req_tbl, p6_a0
73 , p6_a1
74 , p6_a2
75 , p6_a3
76 );
77 end;
78
79 end okl_cure_req_amt_pub_w;