1 PACKAGE WSH_PO_CMG_PVT AUTHID CURRENT_USER AS
2 /* $Header: WSHPPCMS.pls 115.3 2003/10/08 09:33:08 anviswan noship $ */
3
4 TYPE T_NUM is TABLE OF NUMBER;
5
6 TYPE dd_list_type IS RECORD
7 (po_shipment_line_id T_NUM := T_NUM(),
8 delivery_detail_id T_NUM := T_NUM());
9
10 /*=============================================================================
11 -- API name : Reapprove_PO
12 -- Type : Private
13 -- Function :
14 -- Pre-reqs : None.
15 -- Parameters :
16 -- IN : p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type
17 -- p_action_prms IN WSH_BULK_TYPES_GRP.action_parameters_rectype
18 -- p_dd_list IN dd_list_type
19 --
20 -- OUT : x_return_status OUT VARCHAR2(1)
21 --
22 ==============================================================================*/
23
24 PROCEDURE Reapprove_PO(
25 p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type,
26 p_action_prms IN OUT NOCOPY WSH_BULK_TYPES_GRP.action_parameters_rectype,
27 p_dd_list IN dd_list_type,
28 x_return_status OUT NOCOPY VARCHAR2);
29
30 /*=============================================================================
31 -- API name : Update_Attributes
32 -- Type : Private
33 -- Function :
34 -- Pre-reqs : None.
35 -- Parameters :
36 -- IN : p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type
37 --
38 -- OUT : x_return_status OUT VARCHAR2(1)
39 --
40 ==============================================================================*/
41
42 Procedure Update_Attributes(
43 p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type,
44 p_action_prms IN WSH_BULK_TYPES_GRP.action_parameters_rectype,
45 p_dd_list IN dd_list_type,
46 p_dd_id_unassigned IN OUT NOCOPY wsh_util_core.id_tab_type,
47 p_wt_vol_dd_id IN OUT NOCOPY wsh_util_core.id_tab_type,
48 x_return_status OUT NOCOPY VARCHAR2);
49
50
51 /*=============================================================================
52 -- API name : Update_dd_Attribute
53 -- Type : Private.
54 -- Function :
55 -- Pre-reqs : None.
56 -- Parameters :
57 -- IN : p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type
58 -- p_action_prms IN WSH_BULK_TYPES_GRP.action_parameters_rectype
59 -- p_dd_id IN NUMBER
60 -- p_line_rec_index IN NUMBER
61 -- x_return_status OUT NOCOPY VARCHAR2)
62 --
63 -- OUT : x_return_status OUT VARCHAR2(1)
64 --
65 ==============================================================================*/
66
67 Procedure Update_dd_Attributes(
68 p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type,
69 p_action_prms IN WSH_BULK_TYPES_GRP.action_parameters_rectype,
70 p_dd_id IN NUMBER,
71 p_line_rec_index IN NUMBER,
72 p_dd_id_unassigned IN OUT NOCOPY wsh_util_core.id_tab_type,
73 p_wt_vol_dd_id IN OUT NOCOPY wsh_util_core.id_tab_type,
74 x_return_status OUT NOCOPY VARCHAR2);
75
76 /*=============================================================================
77 -- API name : Update_Quantity
78 -- Type : Private.
79 -- Function :
80 -- Pre-reqs : None.
81 -- Parameters :
82 -- IN : p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type
83 -- p_action_prms IN WSH_BULK_TYPES_GRP.action_parameters_rectype
84 --
85 -- OUT : x_return_status OUT VARCHAR2(1)
86 --
87 ==============================================================================*/
88
89 Procedure Update_Quantity(
90 p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type,
91 p_action_prms IN OUT NOCOPY WSH_BULK_TYPES_GRP.action_parameters_rectype,
92 p_dd_id_unassigned IN OUT NOCOPY wsh_util_core.id_tab_type,
93 p_wt_vol_dd_id IN OUT NOCOPY wsh_util_core.id_tab_type,
94 x_return_status OUT NOCOPY VARCHAR2);
95
96 --=============================================================================
97 -- API name : cancel_close_po
98 -- Type : Private.
99 -- Function :
100 -- Pre-reqs : None.
101 -- Parameters :
102 -- p_line_rec IN OE_WSH_BULK_GRP.line_rec_type
103 -- p_action_prms IN OUT
104 -- WSH_BULK_TYPES_GRP.action_parameters_rectype
105 -- x_return_status OUT VARCHAR2
106 --=============================================================================
107 PROCEDURE Cancel_Close_PO(
108 p_line_rec IN OE_WSH_BULK_GRP.line_rec_type DEFAULT NULL,
109 p_action_prms IN OUT NOCOPY
110 WSH_BULK_TYPES_GRP.action_parameters_rectype,
111
112 x_return_status OUT NOCOPY VARCHAR2
113 );
114 --=============================================================================
115 -- API name : purge_po
116 -- Type : Private.
117 -- Function :
118 -- Pre-reqs : None.
119 -- Parameters :
120 -- p_line_rec IN OE_WSH_BULK_GRP.line_rec_type
121 -- p_header_ids IN OUT WSH_UTIL_CORE.id_tab_type
122 -- x_return_status OUT VARCHAR2
123 --=============================================================================
124 /*Procedure purge_po(
125 p_line_rec IN OE_WSH_BULK_GRP.line_rec_type DEFAULT NULL,
126 p_header_ids IN OUT NOCOPY WSH_UTIL_CORE.id_tab_type ,
127 x_return_status OUT NOCOPY VARCHAR2);
128 */
129
130 /*=============================================================================
131 -- API name : reopen_po
132 -- Type : Private.
133 -- Function :
134 -- Pre-reqs : None.
135 -- Parameters :
136 -- IN :
137 -- p_line_rec IN OE_WSH_BULK_GRP.line_rec_type
138 -- OUT :
139 -- x_return_status OUT VARCHAR2
140 ==============================================================================*/
141 PROCEDURE reopen_po(
142 p_line_rec IN OE_WSH_BULK_GRP.line_rec_type,
143 x_return_status OUT NOCOPY VARCHAR2) ;
144
145 /*=============================================================================
146 -- API name : Log_Exception
147 -- Type : Private.
148 -- Function :
149 -- Pre-reqs : None.
150 -- Parameters :
151 -- IN :
152 -- p_line_rec IN OE_WSH_BULK_GRP.line_rec_type
153 -- OUT :
154 -- x_return_status OUT VARCHAR2
155 ==============================================================================*/
156 PROCEDURE Log_Exception(
157 p_entity_id IN NUMBER,
158 p_logging_entity_name IN VARCHAR2,
159 p_exception_name IN VARCHAR2,
160 p_location_id IN NUMBER DEFAULT NULL,
161 p_message IN VARCHAR2 DEFAULT NULL,
162 x_return_status OUT NOCOPY VARCHAR2);
163
164 --=============================================================================
165 -- API name : None
166 -- Type :
167 -- Function : check_pending_txns
168 -- Pre-reqs : None.
169 -- Parameters :
170 -- p_header_id IN NUMBER
171 -- p_line_id IN NUMBER
172 -- p_line_location_id IN NUMBER
173 -- p_release_id IN NUMBER
174 --=============================================================================
175 Function check_pending_txns(
176 p_header_id IN NUMBER,
177 p_line_id IN NUMBER,
178 p_line_location_id IN NUMBER,
179 p_release_id IN NUMBER
180 ) RETURN NUMBER ;
181
182 /*=============================================================================
183 -- API name : populate_additional_line_info
184 -- Type :
185 -- Function :
186 -- Pre-reqs : None.
187 -- Parameters :
188 -- IN :
189 --
190 -- OUT :
191 -- p_additional_line_info_rec
192 -- WSH_BULK_PROCESS_PVT.additional_line_info_rec_type ,
193 -- x_return_status VARCHAR2
194 ==============================================================================*/
195 Procedure populate_additional_line_info(
196 p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type,
197 p_index IN NUMBER,
198 p_caller IN VARCHAR2 DEFAULT NULL,
199 p_additional_line_info_rec OUT NOCOPY WSH_BULK_PROCESS_PVT.additional_line_info_rec_type ,
200 x_return_status OUT NOCOPY VARCHAR2);
201
202 Procedure Calculate_Wt_Vol(
203 p_line_rec IN OUT NOCOPY OE_WSH_BULK_GRP.line_rec_type,
204 p_index IN OUT NOCOPY NUMBER,
205 x_return_status OUT NOCOPY VARCHAR2);
206
207 END WSH_PO_CMG_PVT;