DBA Data[Home] [Help]

PACKAGE BODY: APPS.OKL_INV_LINE_TYPE_DELETE_PUB_W

Source


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