DBA Data[Home] [Help]

PACKAGE BODY: APPS.OKL_SEC_AGREMNT_BOOK_PVT_W

Source


1 package body okl_sec_agremnt_book_pvt_w as
2   /* $Header: OKLESZBB.pls 115.2 2003/07/17 18:03:45 mvasudev 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 execute_qa_check_list(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_qcl_id  NUMBER
28     , p_chr_id  NUMBER
29     , p7_a0 out nocopy JTF_VARCHAR2_TABLE_100
30     , p7_a1 out nocopy JTF_VARCHAR2_TABLE_200
31     , p7_a2 out nocopy JTF_VARCHAR2_TABLE_2000
32     , p7_a3 out nocopy JTF_VARCHAR2_TABLE_100
33     , p7_a4 out nocopy JTF_VARCHAR2_TABLE_100
34     , p7_a5 out nocopy JTF_VARCHAR2_TABLE_100
35     , p7_a6 out nocopy JTF_VARCHAR2_TABLE_2000
36   )
37 
38   as
39     ddx_msg_tbl okl_qa_check_pub.msg_tbl_type;
40     ddindx binary_integer; indx binary_integer;
41   begin
42 
43     -- copy data to the local IN or IN-OUT args, if any
44 
45 
46 
47 
48 
49 
50 
51 
52     -- here's the delegated call to the old PL/SQL routine
53     okl_sec_agremnt_book_pvt.execute_qa_check_list(p_api_version,
54       p_init_msg_list,
55       x_return_status,
56       x_msg_count,
57       x_msg_data,
58       p_qcl_id,
59       p_chr_id,
60       ddx_msg_tbl);
61 
62     -- copy data back from the local variables to OUT or IN-OUT args, if any
63 
64 
65 
66 
67 
68 
69 
70     okl_qa_check_pub_w.rosetta_table_copy_out_p1(ddx_msg_tbl, p7_a0
71       , p7_a1
72       , p7_a2
73       , p7_a3
74       , p7_a4
75       , p7_a5
76       , p7_a6
77       );
78   end;
79 
80 end okl_sec_agremnt_book_pvt_w;