1 package body okl_acc_call_pub_w as
2 /* $Header: OKLUACCB.pls 120.1 2005/07/07 13:33:38 dkagrawa 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 create_acc_trans(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 NUMBER := 0-1962.0724
28 , p5_a1 VARCHAR2 := fnd_api.g_miss_char
29 )
30
31 as
32 ddp_bpd_acc_rec okl_acc_call_pub.bpd_acc_rec_type;
33 ddindx binary_integer; indx binary_integer;
34 begin
35
36 -- copy data to the local IN or IN-OUT args, if any
37
38
39
40
41
42 ddp_bpd_acc_rec.id := rosetta_g_miss_num_map(p5_a0);
43 ddp_bpd_acc_rec.source_table := p5_a1;
44
45 -- here's the delegated call to the old PL/SQL routine
46 okl_acc_call_pub.create_acc_trans(p_api_version,
47 p_init_msg_list,
48 x_return_status,
49 x_msg_count,
50 x_msg_data,
51 ddp_bpd_acc_rec);
52
53 -- copy data back from the local variables to OUT or IN-OUT args, if any
54
55
56
57
58
59 end;
60
61 procedure create_acc_trans(p_api_version NUMBER
62 , p_init_msg_list VARCHAR2
63 , x_return_status out nocopy VARCHAR2
64 , x_msg_count out nocopy NUMBER
65 , x_msg_data out nocopy VARCHAR2
66 , p5_a0 JTF_NUMBER_TABLE
67 , p5_a1 JTF_VARCHAR2_TABLE_100
68 )
69
70 as
71 ddp_bpd_acc_tbl okl_acc_call_pub.bpd_acc_tbl_type;
72 ddindx binary_integer; indx binary_integer;
73 begin
74
75 -- copy data to the local IN or IN-OUT args, if any
76
77
78
79
80
81 okl_acc_call_pvt_w.rosetta_table_copy_in_p2(ddp_bpd_acc_tbl, p5_a0
82 , p5_a1
83 );
84
85 -- here's the delegated call to the old PL/SQL routine
86 okl_acc_call_pub.create_acc_trans(p_api_version,
87 p_init_msg_list,
88 x_return_status,
89 x_msg_count,
90 x_msg_data,
91 ddp_bpd_acc_tbl);
92
93 -- copy data back from the local variables to OUT or IN-OUT args, if any
94
95
96
97
98
99 end;
100
101 end okl_acc_call_pub_w;