[Home] [Help]
PACKAGE: APPS.PO_SHIPMENTS_SV3
Source
1 PACKAGE PO_SHIPMENTS_SV3 AS
2 /* $Header: POXPOS3S.pls 120.1 2005/07/01 03:05:14 manram noship $*/
3
4 /*===========================================================================
5 FUNCTION NAME: get_line_location_id
6
7 DESCRIPTION: Gets the line location id associated with a
8 purchase order line. This is the case when
9 there is a single shipment.
10
11 PARAMETERS:
12
13 DESIGN REFERENCES: X_po_line_id IN NUMBER
14 X_shipment_type IN VARCHAR2
15
16 ALGORITHM:
17
18 NOTES:
19
20 OPEN ISSUES:
21
22 CLOSED ISSUES:
23
24 CHANGE HISTORY: KPOWELL 5/1 Created
25
26 ===========================================================================*/
27 FUNCTION get_line_location_id
28 (X_po_line_id IN NUMBER,
29 X_shipment_type IN VARCHAR2) RETURN NUMBER;
30
31 /*===========================================================================
32 PROCEDURE NAME: get_po_line_location_id
33
34 DESCRIPTION: Gets the po_line location id associated with a
35 purchase order line. This is the case for ASNs
36 when the po_header_id is known but the po_line_id,
37 shipment_type may not be.
38
39 PARAMETERS:
40
41 DESIGN REFERENCES: X_po_line_location_id_record IN RECORD
42
43 ALGORITHM:
44
45 NOTES:
46
47 OPEN ISSUES:
48
49 CLOSED ISSUES:
50
51 CHANGE HISTORY: DFONG 12/6/96 Created
52
53 ===========================================================================*/
54 PROCEDURE get_po_line_location_id
55 (X_po_line_location_id_record IN OUT NOCOPY rcv_shipment_line_sv.po_line_location_id_rtype);
56
57
58 /*===========================================================================
59 FUNCTION NAME: get_planned_qty_ordered
60
61 DESCRIPTION: Gets the quantity ordered on a planned purchase
62 order shipment
63
64 PARAMETERS: X_po_line_id IN NUMBER,
65 X_shipment_type IN VARCHAR2
66
67 DESIGN REFERENCES:
68
69
70 ALGORITHM: If this is the planned purchase order shipment,
71 get the quantity ordered - quantity cancelled
72 associated with the planned purchase order
73 shipment.
74
75 If this is a scheduled purchase order shipment,
76 get the quantity ordered - quantity cancelled
77 for it's planned purchase order shipment.
78 NOTES:
79
80 OPEN ISSUES:
81
82 CLOSED ISSUES:
83
84 CHANGE HISTORY: KPOWELL 5/1 Created
85
86 ===========================================================================*/
87 FUNCTION get_planned_qty_ordered
88 (X_po_line_id IN NUMBER,
89 X_shipment_type IN VARCHAR2) RETURN NUMBER;
90
91 /*===========================================================================
92 FUNCTION NAME: insert_rel_shipment
93
94 DESCRIPTION: Cover routine to insert the rel shipment,
95 validate the quantity released,
96 update the release header approval status,
97 and update the quantity for a blanket
98 purchase order line,
99 attempt to automatically create the purchase
100 order distribution.
101
102
103 PARAMETERS: See Below
104
105 DESIGN REFERENCES:
106
107 ALGORITHM:
108
109 NOTES:
110
111 OPEN ISSUES: Need to fill in the calls to the routines
112 in the other packages. DEBUG.
113 (5/3 - KP)
114
115 CLOSED ISSUES:
116
117 CHANGE HISTORY: KPOWELL 5/3 Created
118 ECSO 3/18/97 Add Global Attributes
119 ===========================================================================*/
120 FUNCTION insert_rel_shipment
121 (X_Rowid IN OUT NOCOPY VARCHAR2,
122 X_Line_Location_Id IN OUT NOCOPY NUMBER,
123 X_Last_Update_Date DATE,
124 X_Last_Updated_By NUMBER,
125 X_Po_Header_Id NUMBER,
126 X_Po_Line_Id NUMBER,
127 X_Last_Update_Login NUMBER,
128 X_Creation_Date DATE,
129 X_Created_By NUMBER,
130 X_Quantity NUMBER,
131 X_Quantity_Received NUMBER,
132 X_Quantity_Accepted NUMBER,
133 X_Quantity_Rejected NUMBER,
134 X_Quantity_Billed NUMBER,
135 X_Quantity_Cancelled NUMBER,
136 X_Unit_Meas_Lookup_Code VARCHAR2,
137 X_Po_Release_Id NUMBER,
138 X_Ship_To_Location_Id NUMBER,
139 X_Ship_Via_Lookup_Code VARCHAR2,
140 X_Need_By_Date DATE,
141 X_Promised_Date DATE,
142 X_Last_Accept_Date DATE,
143 X_Price_Override NUMBER,
144 X_Encumbered_Flag VARCHAR2,
145 X_Encumbered_Date DATE,
146 X_Fob_Lookup_Code VARCHAR2,
147 X_Freight_Terms_Lookup_Code VARCHAR2,
148 X_Taxable_Flag VARCHAR2,
149 X_Tax_Code_Id NUMBER,
150 X_Tax_User_Override_Flag VARCHAR2,
151 X_Calculate_Tax_Flag VARCHAR2,
152 X_From_Header_Id NUMBER,
153 X_From_Line_Id NUMBER,
154 X_From_Line_Location_Id NUMBER,
155 X_Start_Date DATE,
156 X_End_Date DATE,
157 X_Lead_Time NUMBER,
158 X_Lead_Time_Unit VARCHAR2,
159 X_Price_Discount NUMBER,
160 X_Terms_Id NUMBER,
161 X_Approved_Flag VARCHAR2,
162 X_Approved_Date DATE,
163 X_Closed_Flag VARCHAR2,
164 X_Cancel_Flag VARCHAR2,
165 X_Cancelled_By NUMBER,
166 X_Cancel_Date DATE,
167 X_Cancel_Reason VARCHAR2,
168 X_Firm_Status_Lookup_Code VARCHAR2,
169 X_Attribute_Category VARCHAR2,
170 X_Attribute1 VARCHAR2,
171 X_Attribute2 VARCHAR2,
172 X_Attribute3 VARCHAR2,
173 X_Attribute4 VARCHAR2,
174 X_Attribute5 VARCHAR2,
175 X_Attribute6 VARCHAR2,
176 X_Attribute7 VARCHAR2,
177 X_Attribute8 VARCHAR2,
178 X_Attribute9 VARCHAR2,
179 X_Attribute10 VARCHAR2,
180 X_Attribute11 VARCHAR2,
181 X_Attribute12 VARCHAR2,
182 X_Attribute13 VARCHAR2,
183 X_Attribute14 VARCHAR2,
184 X_Attribute15 VARCHAR2,
185 X_Inspection_Required_Flag VARCHAR2,
186 X_Receipt_Required_Flag VARCHAR2,
187 X_Qty_Rcv_Tolerance NUMBER,
188 X_Qty_Rcv_Exception_Code VARCHAR2,
189 X_Enforce_Ship_To_Location VARCHAR2,
190 X_Allow_Substitute_Receipts VARCHAR2,
191 X_Days_Early_Receipt_Allowed NUMBER,
192 X_Days_Late_Receipt_Allowed NUMBER,
193 X_Receipt_Days_Exception_Code VARCHAR2,
194 X_Invoice_Close_Tolerance NUMBER,
195 X_Receive_Close_Tolerance NUMBER,
196 X_Ship_To_Organization_Id NUMBER,
197 X_Shipment_Num NUMBER,
198 X_Source_Shipment_Id NUMBER,
199 X_Shipment_Type VARCHAR2,
200 X_Closed_Code VARCHAR2,
201 X_Ussgl_Transaction_Code VARCHAR2,
202 X_Government_Context VARCHAR2,
203 X_Receiving_Routing_Id NUMBER,
204 X_Accrue_On_Receipt_Flag VARCHAR2,
205 X_Closed_Reason VARCHAR2,
206 X_Closed_Date DATE,
207 X_Closed_By NUMBER,
208 X_Global_Attribute_Category VARCHAR2,
209 X_Global_Attribute1 VARCHAR2,
210 X_Global_Attribute2 VARCHAR2,
211 X_Global_Attribute3 VARCHAR2,
212 X_Global_Attribute4 VARCHAR2,
213 X_Global_Attribute5 VARCHAR2,
214 X_Global_Attribute6 VARCHAR2,
215 X_Global_Attribute7 VARCHAR2,
216 X_Global_Attribute8 VARCHAR2,
217 X_Global_Attribute9 VARCHAR2,
218 X_Global_Attribute10 VARCHAR2,
219 X_Global_Attribute11 VARCHAR2,
220 X_Global_Attribute12 VARCHAR2,
221 X_Global_Attribute13 VARCHAR2,
222 X_Global_Attribute14 VARCHAR2,
223 X_Global_Attribute15 VARCHAR2,
224 X_Global_Attribute16 VARCHAR2,
225 X_Global_Attribute17 VARCHAR2,
226 X_Global_Attribute18 VARCHAR2,
227 X_Global_Attribute19 VARCHAR2,
228 X_Global_Attribute20 VARCHAR2,
229 X_Invoice_Match_Option VARCHAR2, --bgu, Dec. 7, 98
230 X_Country_of_Origin_Code VARCHAR2, --frkhan 12/10/98
231 --togeorge 10/12/2000
232 --Bug# 1433282
233 --added note to receiver
234 X_note_to_receiver VARCHAR2,
235 -- Mahesh Chandak(GML) Add 7 process related fields.
236 -- start of Bug# 1548597
237 X_Secondary_Unit_Of_Measure VARCHAR2 default null,
238 X_Secondary_Quantity NUMBER default null ,
239 X_Preferred_Grade VARCHAR2 default null,
240 X_Secondary_Quantity_Received NUMBER default null,
241 X_Secondary_Quantity_Accepted NUMBER default null,
242 X_Secondary_Quantity_Rejected NUMBER default null,
243 X_Secondary_Quantity_Cancelled NUMBER default null,
244 -- end of Bug# 1548597
245 X_amount NUMBER default null, -- <SERVICES FPJ>
246 p_manual_price_change_flag VARCHAR2 default null -- <Manual Price Override FPJ>
247 ,p_org_id IN NUMBER default null -- <R12.MOAC>
248 , p_outsourced_assembly IN NUMBER default 2 --<SHIKYU R12>
249 ) RETURN BOOLEAN;
250
251
252
253
254 END PO_SHIPMENTS_SV3;