[Home] [Help]
PACKAGE: APPS.OKL_ASO_PVT
Source
1 PACKAGE OKL_ASO_PVT AUTHID CURRENT_USER AS
2 /* $Header: OKLSASOS.pls 120.0 2005/11/30 17:17:53 stmathew noship $ */
3
4 --------------------
5 -- PACKAGE CONSTANTS
6 --------------------
7 G_PKG_NAME CONSTANT VARCHAR2(30) := 'OKL_ASO_PVT';
8 G_APP_NAME CONSTANT VARCHAR2(30) := OKL_API.G_APP_NAME;
9 G_API_VERSION CONSTANT NUMBER := 1;
10 G_USER_ID CONSTANT NUMBER := FND_GLOBAL.USER_ID;
11 G_LOGIN_ID CONSTANT NUMBER := FND_GLOBAL.LOGIN_ID;
12 G_FALSE CONSTANT VARCHAR2(1) := FND_API.G_FALSE;
13 G_TRUE CONSTANT VARCHAR2(1) := FND_API.G_TRUE;
14 G_RET_STS_SUCCESS CONSTANT VARCHAR2(1) := FND_API.G_RET_STS_SUCCESS;
15 G_RET_STS_UNEXP_ERROR CONSTANT VARCHAR2(1) := FND_API.G_RET_STS_UNEXP_ERROR;
16 G_RET_STS_ERROR CONSTANT VARCHAR2(1) := FND_API.G_RET_STS_ERROR;
17 G_DB_ERROR CONSTANT VARCHAR2(30) := 'OKL_DB_ERROR';
18 G_COL_ERROR CONSTANT VARCHAR2(30) := 'OKL_COL_ERROR';
19 G_OVN_ERROR CONSTANT VARCHAR2(30) := 'OKL_OVN_ERROR';
20 G_OVN_ERROR2 CONSTANT VARCHAR2(30) := 'OKL_OVN_ERROR2';
21 G_OVN_ERROR3 CONSTANT VARCHAR2(30) := 'OKL_OVN_ERROR3';
22 G_PKG_NAME_TOKEN CONSTANT VARCHAR2(30) := 'PKG_NAME';
23 G_PROG_NAME_TOKEN CONSTANT VARCHAR2(30) := 'PROG_NAME';
24 G_COL_NAME_TOKEN CONSTANT VARCHAR2(30) := 'COL_NAME';
25 G_SQLCODE_TOKEN CONSTANT VARCHAR2(30) := 'SQLCODE';
26 G_SQLERRM_TOKEN CONSTANT VARCHAR2(30) := 'SQLERRM';
27
28 ------------------
29 -- DATA STRUCTURES
30 ------------------
31
32 -- Do not include WHO columns in the base table record structure
33 TYPE aso_rec_type IS RECORD (
34 id okl_asset_components_b.id%TYPE
35 ,object_version_number okl_asset_components_b.object_version_number%TYPE
36 ,attribute_category okl_asset_components_b.attribute_category%TYPE
37 ,attribute1 okl_asset_components_b.attribute1%TYPE
38 ,attribute2 okl_asset_components_b.attribute2%TYPE
39 ,attribute3 okl_asset_components_b.attribute3%TYPE
40 ,attribute4 okl_asset_components_b.attribute4%TYPE
41 ,attribute5 okl_asset_components_b.attribute5%TYPE
42 ,attribute6 okl_asset_components_b.attribute6%TYPE
43 ,attribute7 okl_asset_components_b.attribute7%TYPE
44 ,attribute8 okl_asset_components_b.attribute8%TYPE
45 ,attribute9 okl_asset_components_b.attribute9%TYPE
46 ,attribute10 okl_asset_components_b.attribute10%TYPE
47 ,attribute11 okl_asset_components_b.attribute11%TYPE
48 ,attribute12 okl_asset_components_b.attribute12%TYPE
49 ,attribute13 okl_asset_components_b.attribute13%TYPE
50 ,attribute14 okl_asset_components_b.attribute14%TYPE
51 ,attribute15 okl_asset_components_b.attribute15%TYPE
52 ,asset_id okl_asset_components_b.asset_id%TYPE
53 ,inv_item_id okl_asset_components_b.inv_item_id%TYPE
54 ,supplier_id okl_asset_components_b.supplier_id%TYPE
55 ,primary_component okl_asset_components_b.primary_component%TYPE
56 ,unit_cost okl_asset_components_b.unit_cost%TYPE
57 ,number_of_units okl_asset_components_b.number_of_units%TYPE
58 ,manufacturer_name okl_asset_components_b.manufacturer_name%TYPE
59 ,year_manufactured okl_asset_components_b.year_manufactured%TYPE
60 ,model_number okl_asset_components_b.model_number%TYPE
61 );
62
63 -- Do not include WHO, LANGUAGE and SFWT_FLAG columns in the _TL record structure
64 TYPE asotl_rec_type IS RECORD (
65 id okl_asset_components_tl.id%TYPE
66 ,short_description okl_asset_components_tl.short_description%TYPE
67 ,description okl_asset_components_tl.description%TYPE
68 ,comments okl_asset_components_tl.comments%TYPE
69 );
70
71 -- view record structure
72 TYPE asov_rec_type IS RECORD (
73 id okl_asset_components_b.id%TYPE
74 ,object_version_number okl_asset_components_b.object_version_number%TYPE
75 ,attribute_category okl_asset_components_b.attribute_category%TYPE
76 ,attribute1 okl_asset_components_b.attribute1%TYPE
77 ,attribute2 okl_asset_components_b.attribute2%TYPE
78 ,attribute3 okl_asset_components_b.attribute3%TYPE
79 ,attribute4 okl_asset_components_b.attribute4%TYPE
80 ,attribute5 okl_asset_components_b.attribute5%TYPE
81 ,attribute6 okl_asset_components_b.attribute6%TYPE
82 ,attribute7 okl_asset_components_b.attribute7%TYPE
83 ,attribute8 okl_asset_components_b.attribute8%TYPE
84 ,attribute9 okl_asset_components_b.attribute9%TYPE
85 ,attribute10 okl_asset_components_b.attribute10%TYPE
86 ,attribute11 okl_asset_components_b.attribute11%TYPE
87 ,attribute12 okl_asset_components_b.attribute12%TYPE
88 ,attribute13 okl_asset_components_b.attribute13%TYPE
89 ,attribute14 okl_asset_components_b.attribute14%TYPE
90 ,attribute15 okl_asset_components_b.attribute15%TYPE
91 ,asset_id okl_asset_components_b.asset_id%TYPE
92 ,inv_item_id okl_asset_components_b.inv_item_id%TYPE
93 ,supplier_id okl_asset_components_b.supplier_id%TYPE
94 ,primary_component okl_asset_components_b.primary_component%TYPE
95 ,unit_cost okl_asset_components_b.unit_cost%TYPE
96 ,number_of_units okl_asset_components_b.number_of_units%TYPE
97 ,manufacturer_name okl_asset_components_b.manufacturer_name%TYPE
98 ,year_manufactured okl_asset_components_b.year_manufactured%TYPE
99 ,model_number okl_asset_components_b.model_number%TYPE
100 ,short_description okl_asset_components_tl.short_description%TYPE
101 ,description okl_asset_components_tl.description%TYPE
102 ,comments okl_asset_components_tl.comments%TYPE
103 );
104
105 TYPE asov_tbl_type IS TABLE OF asov_rec_type INDEX BY BINARY_INTEGER;
106
107 ----------------
108 -- PROGRAM UNITS
109 ----------------
110 PROCEDURE add_language;
111
112 PROCEDURE insert_row(
113 p_api_version IN NUMBER,
114 p_init_msg_list IN VARCHAR2,
115 x_return_status OUT NOCOPY VARCHAR2,
116 x_msg_count OUT NOCOPY NUMBER,
117 x_msg_data OUT NOCOPY VARCHAR2,
118 p_asov_tbl IN asov_tbl_type,
119 x_asov_tbl OUT NOCOPY asov_tbl_type);
120
121 PROCEDURE update_row(
122 p_api_version IN NUMBER,
123 p_init_msg_list IN VARCHAR2,
124 x_return_status OUT NOCOPY VARCHAR2,
125 x_msg_count OUT NOCOPY NUMBER,
126 x_msg_data OUT NOCOPY VARCHAR2,
127 p_asov_tbl IN asov_tbl_type,
128 x_asov_tbl OUT NOCOPY asov_tbl_type);
129
130 PROCEDURE delete_row(
131 p_api_version IN NUMBER,
132 p_init_msg_list IN VARCHAR2,
133 x_return_status OUT NOCOPY VARCHAR2,
134 x_msg_count OUT NOCOPY NUMBER,
135 x_msg_data OUT NOCOPY VARCHAR2,
136 p_asov_tbl IN asov_tbl_type);
137
138 PROCEDURE insert_row(
139 p_api_version IN NUMBER,
140 p_init_msg_list IN VARCHAR2,
141 x_return_status OUT NOCOPY VARCHAR2,
142 x_msg_count OUT NOCOPY NUMBER,
143 x_msg_data OUT NOCOPY VARCHAR2,
144 p_asov_rec IN asov_rec_type,
145 x_asov_rec OUT NOCOPY asov_rec_type);
146
147 PROCEDURE update_row(
148 p_api_version IN NUMBER,
149 p_init_msg_list IN VARCHAR2,
150 x_return_status OUT NOCOPY VARCHAR2,
151 x_msg_count OUT NOCOPY NUMBER,
152 x_msg_data OUT NOCOPY VARCHAR2,
153 p_asov_rec IN asov_rec_type,
154 x_asov_rec OUT NOCOPY asov_rec_type);
155
156 PROCEDURE delete_row(
157 p_api_version IN NUMBER,
158 p_init_msg_list IN VARCHAR2,
159 x_return_status OUT NOCOPY VARCHAR2,
160 x_msg_count OUT NOCOPY NUMBER,
161 x_msg_data OUT NOCOPY VARCHAR2,
162 p_asov_rec IN asov_rec_type);
163
164 END OKL_ASO_PVT;