1 package body okl_vp_jtf_party_name_pub_w as
2 /* $Header: OKLUCTSB.pls 115.7 2003/10/02 23:18:23 manumanu 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 get_party(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 , p_chr_id VARCHAR2
28 , p_cle_id VARCHAR2
29 , p_role_code VARCHAR2
30 , p_intent VARCHAR2
31 , p9_a0 out nocopy JTF_VARCHAR2_TABLE_100
32 , p9_a1 out nocopy JTF_VARCHAR2_TABLE_100
33 , p9_a2 out nocopy JTF_VARCHAR2_TABLE_200
34 , p9_a3 out nocopy JTF_VARCHAR2_TABLE_300
35 , p9_a4 out nocopy JTF_VARCHAR2_TABLE_300
36 , p9_a5 out nocopy JTF_VARCHAR2_TABLE_100
37 )
38
39 as
40 ddx_party_tab okl_vp_jtf_party_name_pub.party_tab_type;
41 ddindx binary_integer; indx binary_integer;
42 begin
43
44 -- copy data to the local IN or IN-OUT args, if any
45
46
47
48
49
50
51
52
53
54
55 -- here's the delegated call to the old PL/SQL routine
56 okl_vp_jtf_party_name_pub.get_party(p_api_version,
57 p_init_msg_list,
58 x_return_status,
59 x_msg_count,
60 x_msg_data,
61 p_chr_id,
62 p_cle_id,
63 p_role_code,
64 p_intent,
65 ddx_party_tab);
66
67 -- copy data back from the local variables to OUT or IN-OUT args, if any
68
69
70
71
72
73
74
75
76
77 okl_vp_jtf_party_name_pvt_w.rosetta_table_copy_out_p1(ddx_party_tab, p9_a0
78 , p9_a1
79 , p9_a2
80 , p9_a3
81 , p9_a4
82 , p9_a5
83 );
84 end;
85
86 end okl_vp_jtf_party_name_pub_w;