1 package body okl_inv_type_delete_pub_w as
2 /* $Header: OKLUITDB.pls 120.1 2005/07/14 12:03:36 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_type(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 VARCHAR2 := fnd_api.g_miss_char
33 )
34
35 as
36 ddp_ity_del_rec okl_inv_type_delete_pub.ity_del_rec_type;
37 ddindx binary_integer; indx binary_integer;
38 begin
39
40 -- copy data to the local IN or IN-OUT args, if any
41
42
43
44
45
46 ddp_ity_del_rec.id := rosetta_g_miss_num_map(p5_a0);
47 ddp_ity_del_rec.inf_id := rosetta_g_miss_num_map(p5_a1);
48 ddp_ity_del_rec.name := p5_a2;
49 ddp_ity_del_rec.description := p5_a3;
50 ddp_ity_del_rec.group_asset_yn := p5_a4;
51 ddp_ity_del_rec.group_by_contract_yn := p5_a5;
52
53 -- here's the delegated call to the old PL/SQL routine
54 okl_inv_type_delete_pub.delete_type(p_api_version,
55 p_init_msg_list,
56 x_return_status,
57 x_msg_count,
58 x_msg_data,
59 ddp_ity_del_rec);
60
61 -- copy data back from the local variables to OUT or IN-OUT args, if any
62
63
64
65
66
67 end;
68
69 procedure delete_type(p_api_version NUMBER
70 , p_init_msg_list VARCHAR2
71 , x_return_status out nocopy VARCHAR2
72 , x_msg_count out nocopy NUMBER
73 , x_msg_data out nocopy VARCHAR2
74 , p5_a0 JTF_NUMBER_TABLE
75 , p5_a1 JTF_NUMBER_TABLE
76 , p5_a2 JTF_VARCHAR2_TABLE_200
77 , p5_a3 JTF_VARCHAR2_TABLE_2000
78 , p5_a4 JTF_VARCHAR2_TABLE_100
79 , p5_a5 JTF_VARCHAR2_TABLE_100
80 )
81
82 as
83 ddp_ity_del_tbl okl_inv_type_delete_pub.ity_del_tbl_type;
84 ddindx binary_integer; indx binary_integer;
85 begin
86
87 -- copy data to the local IN or IN-OUT args, if any
88
89
90
91
92
93 okl_inv_type_delete_pvt_w.rosetta_table_copy_in_p1(ddp_ity_del_tbl, p5_a0
94 , p5_a1
95 , p5_a2
96 , p5_a3
97 , p5_a4
98 , p5_a5
99 );
100
101 -- here's the delegated call to the old PL/SQL routine
102 okl_inv_type_delete_pub.delete_type(p_api_version,
103 p_init_msg_list,
104 x_return_status,
105 x_msg_count,
106 x_msg_data,
107 ddp_ity_del_tbl);
108
109 -- copy data back from the local variables to OUT or IN-OUT args, if any
110
111
112
113
114
115 end;
116
117 end okl_inv_type_delete_pub_w;