DBA Data[Home] [Help]

PACKAGE BODY: APPS.OKL_BTCH_CASH_SUMRY_PUB_W

Source


1 package body okl_btch_cash_sumry_pub_w as
2   /* $Header: OKLUBASB.pls 115.4 2003/11/11 02:00:54 rgalipo 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   function rosetta_g_miss_num_map(n number) return number as
7     a number := fnd_api.g_miss_num;
8     b number := 0-1962.0724;
9   begin
10     if n=a then return b; end if;
11     if n=b then return a; end if;
12     return n;
13   end;
14 
15   -- this is to workaround the JDBC bug regarding IN DATE of value GMiss
16   function rosetta_g_miss_date_in_map(d date) return date as
17   begin
18     if d = rosetta_g_mistake_date then return fnd_api.g_miss_date; end if;
19     return d;
20   end;
21 
22   procedure okl_batch_sumry(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 JTF_NUMBER_TABLE
28     , p5_a1 JTF_VARCHAR2_TABLE_100
29   )
30 
31   as
32     ddp_btch_tbl okl_btch_cash_sumry_pub.okl_btch_sumry_tbl_type;
33     ddindx binary_integer; indx binary_integer;
34   begin
35 
36     -- copy data to the local IN or IN-OUT args, if any
37 
38 
39 
40 
41 
42     okl_btch_cash_sumry_pvt_w.rosetta_table_copy_in_p13(ddp_btch_tbl, p5_a0
43       , p5_a1
44       );
45 
46     -- here's the delegated call to the old PL/SQL routine
47     okl_btch_cash_sumry_pub.okl_batch_sumry(p_api_version,
48       p_init_msg_list,
49       x_return_status,
50       x_msg_count,
51       x_msg_data,
52       ddp_btch_tbl);
53 
54     -- copy data back from the local variables to OUT or IN-OUT args, if any
55 
56 
57 
58 
59 
60   end;
61 
62 end okl_btch_cash_sumry_pub_w;