DBA Data[Home] [Help]

PACKAGE BODY: APPS.OZF_ALLOCATION_ENGINE_PVT_W

Source


1 package body ozf_allocation_engine_pvt_w as
2   /* $Header: ozfwaegb.pls 115.1 2003/11/19 01:18:48 mkothari 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   procedure allocate_target(p_api_version  NUMBER
14     , p_init_msg_list  VARCHAR2
15     , p_commit  VARCHAR2
16     , p_validation_level  NUMBER
17     , x_return_status out nocopy  VARCHAR2
18     , x_error_number out nocopy  NUMBER
19     , x_error_message out nocopy  VARCHAR2
20     , p_mode  VARCHAR2
21     , p_fund_id  NUMBER
22     , p_old_start_date  date
23     , p_new_end_date  date
24     , p_addon_fact_id  NUMBER
25     , p_addon_amount  NUMBER
26   )
27 
28   as
29     ddp_old_start_date date;
30     ddp_new_end_date date;
31     ddindx binary_integer; indx binary_integer;
32   begin
33 
34     -- copy data to the local IN or IN-OUT args, if any
35 
36 
37 
38 
39 
40 
41 
42 
43 
44     ddp_old_start_date := rosetta_g_miss_date_in_map(p_old_start_date);
45 
46     ddp_new_end_date := rosetta_g_miss_date_in_map(p_new_end_date);
47 
48 
49 
50     -- here's the delegated call to the old PL/SQL routine
51     ozf_allocation_engine_pvt.allocate_target(p_api_version,
52       p_init_msg_list,
53       p_commit,
54       p_validation_level,
55       x_return_status,
56       x_error_number,
57       x_error_message,
58       p_mode,
59       p_fund_id,
60       ddp_old_start_date,
61       ddp_new_end_date,
62       p_addon_fact_id,
63       p_addon_amount);
64 
65     -- copy data back from the local variables to OUT or IN-OUT args, if any
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
78   end;
79 
80 end ozf_allocation_engine_pvt_w;