1 package body okl_inv_format_delete_pub_w as
2 /* $Header: OKLUIFDB.pls 120.1 2005/07/14 12:02:05 asawanka 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 delete_format(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 NUMBER := 0-1962.0724
29 , p5_a2 VARCHAR2 := fnd_api.g_miss_char
30 , p5_a3 VARCHAR2 := fnd_api.g_miss_char
31 , p5_a4 VARCHAR2 := fnd_api.g_miss_char
32 , p5_a5 DATE := fnd_api.g_miss_date
33 , p5_a6 DATE := fnd_api.g_miss_date
34 )
35
36 as
37 ddp_inf_del_rec okl_inv_format_delete_pub.inf_del_rec_type;
38 ddindx binary_integer; indx binary_integer;
39 begin
40
41 -- copy data to the local IN or IN-OUT args, if any
42
43
44
45
46
47 ddp_inf_del_rec.id := rosetta_g_miss_num_map(p5_a0);
48 ddp_inf_del_rec.ilt_id := rosetta_g_miss_num_map(p5_a1);
49 ddp_inf_del_rec.name := p5_a2;
50 ddp_inf_del_rec.description := p5_a3;
51 ddp_inf_del_rec.contract_level_yn := p5_a4;
52 ddp_inf_del_rec.start_date := rosetta_g_miss_date_in_map(p5_a5);
53 ddp_inf_del_rec.end_date := rosetta_g_miss_date_in_map(p5_a6);
54
55 -- here's the delegated call to the old PL/SQL routine
56 okl_inv_format_delete_pub.delete_format(p_api_version,
57 p_init_msg_list,
58 x_return_status,
59 x_msg_count,
60 x_msg_data,
61 ddp_inf_del_rec);
62
63 -- copy data back from the local variables to OUT or IN-OUT args, if any
64
65
66
67
68
69 end;
70
71 procedure delete_format(p_api_version NUMBER
72 , p_init_msg_list VARCHAR2
73 , x_return_status out nocopy VARCHAR2
74 , x_msg_count out nocopy NUMBER
75 , x_msg_data out nocopy VARCHAR2
76 , p5_a0 JTF_NUMBER_TABLE
77 , p5_a1 JTF_NUMBER_TABLE
78 , p5_a2 JTF_VARCHAR2_TABLE_200
79 , p5_a3 JTF_VARCHAR2_TABLE_2000
80 , p5_a4 JTF_VARCHAR2_TABLE_100
81 , p5_a5 JTF_DATE_TABLE
82 , p5_a6 JTF_DATE_TABLE
83 )
84
85 as
86 ddp_inf_del_tbl okl_inv_format_delete_pub.inf_del_tbl_type;
87 ddindx binary_integer; indx binary_integer;
88 begin
89
90 -- copy data to the local IN or IN-OUT args, if any
91
92
93
94
95
96 okl_inv_format_delete_pvt_w.rosetta_table_copy_in_p1(ddp_inf_del_tbl, p5_a0
97 , p5_a1
98 , p5_a2
99 , p5_a3
100 , p5_a4
101 , p5_a5
102 , p5_a6
103 );
104
105 -- here's the delegated call to the old PL/SQL routine
106 okl_inv_format_delete_pub.delete_format(p_api_version,
107 p_init_msg_list,
108 x_return_status,
109 x_msg_count,
110 x_msg_data,
111 ddp_inf_del_tbl);
112
113 -- copy data back from the local variables to OUT or IN-OUT args, if any
114
115
116
117
118
119 end;
120
121 end okl_inv_format_delete_pub_w;