[Home] [Help]
PACKAGE BODY: APPS.RCV_TRX_INTERFACE_UPDATE_PKG
Source
1 PACKAGE BODY RCV_TRX_INTERFACE_UPDATE_PKG as
2 /* $Header: RCVTIR3B.pls 120.2 2005/06/21 18:55:57 wkunz noship $ */
3
4 PROCEDURE Update_Row(X_Rowid VARCHAR2,
5 X_Interface_Transaction_Id NUMBER,
6 X_Group_Id NUMBER,
7 X_Last_Update_Date DATE,
8 X_Last_Updated_By NUMBER,
9 X_Last_Update_Login NUMBER,
10 X_Transaction_Type VARCHAR2,
11 X_Transaction_Date DATE,
12 X_Processing_Status_Code VARCHAR2,
13 X_Processing_Mode_Code VARCHAR2,
14 X_Processing_Request_Id NUMBER,
15 X_Transaction_Status_Code VARCHAR2,
16 X_Category_Id NUMBER,
17 X_Quantity NUMBER,
18 X_Unit_Of_Measure VARCHAR2,
19 X_Interface_Source_Code VARCHAR2,
20 X_Interface_Source_Line_Id NUMBER,
21 X_Inv_Transaction_Id NUMBER,
22 X_Item_Id NUMBER,
23 X_Item_Description VARCHAR2,
24 X_Item_Revision VARCHAR2,
25 X_Uom_Code VARCHAR2,
26 X_Employee_Id NUMBER,
27 X_Auto_Transact_Code VARCHAR2,
28 X_Shipment_Header_Id NUMBER,
29 X_Shipment_Line_Id NUMBER,
30 X_Ship_To_Location_Id NUMBER,
31 X_Primary_Quantity NUMBER,
32 X_Primary_Unit_Of_Measure VARCHAR2,
33 X_Receipt_Source_Code VARCHAR2,
34 X_Vendor_Id NUMBER,
35 X_Vendor_Site_Id NUMBER,
36 X_From_Organization_Id NUMBER,
37 X_To_Organization_Id NUMBER,
38 X_Routing_Header_Id NUMBER,
39 X_Routing_Step_Id NUMBER,
40 X_Source_Document_Code VARCHAR2,
41 X_Parent_Transaction_Id NUMBER,
42 X_Po_Header_Id NUMBER,
43 X_Po_Revision_Num NUMBER,
44 X_Po_Release_Id NUMBER,
45 X_Po_Line_Id NUMBER,
46 X_Po_Line_Location_Id NUMBER,
47 X_Po_Unit_Price NUMBER,
48 X_Currency_Code VARCHAR2,
49 X_Currency_Conversion_Type VARCHAR2,
50 X_Currency_Conversion_Rate NUMBER,
51 X_Currency_Conversion_Date DATE,
52 X_Po_Distribution_Id NUMBER,
53 X_Requisition_Line_Id NUMBER,
54 X_Req_Distribution_Id NUMBER,
55 X_Charge_Account_Id NUMBER,
56 X_Substitute_Unordered_Code VARCHAR2,
57 X_Receipt_Exception_Flag VARCHAR2,
58 X_Accrual_Status_Code VARCHAR2,
59 X_Inspection_Status_Code VARCHAR2,
60 X_Inspection_Quality_Code VARCHAR2,
61 X_Destination_Type_Code VARCHAR2,
62 X_Deliver_To_Person_Id NUMBER,
63 X_Location_Id NUMBER,
64 X_Deliver_To_Location_Id NUMBER,
65 X_Subinventory VARCHAR2,
66 X_Locator_Id NUMBER,
67 X_Wip_Entity_Id NUMBER,
68 X_Wip_Line_Id NUMBER,
69 X_Department_Code VARCHAR2,
70 X_Wip_Repetitive_Schedule_Id NUMBER,
71 X_Wip_Operation_Seq_Num NUMBER,
72 X_Wip_Resource_Seq_Num NUMBER,
73 X_Bom_Resource_Id NUMBER,
74 X_Shipment_Num VARCHAR2,
75 X_Freight_Carrier_Code VARCHAR2,
76 X_Bill_Of_Lading VARCHAR2,
77 X_Packing_Slip VARCHAR2,
78 X_Shipped_Date DATE,
79 X_Expected_Receipt_Date DATE,
80 X_Actual_Cost NUMBER,
81 X_Transfer_Cost NUMBER,
82 X_Transportation_Cost NUMBER,
83 X_Transportation_Account_Id NUMBER,
84 X_Num_Of_Containers NUMBER,
85 X_Waybill_Airbill_Num VARCHAR2,
86 X_Vendor_Item_Num VARCHAR2,
87 X_Vendor_Lot_Num VARCHAR2,
88 X_Rma_Reference VARCHAR2,
89 X_Comments VARCHAR2,
90 X_Attribute_Category VARCHAR2,
91 X_Attribute1 VARCHAR2,
92 X_Attribute2 VARCHAR2,
93 X_Attribute3 VARCHAR2,
94 X_Attribute4 VARCHAR2,
95 X_Attribute5 VARCHAR2,
96 X_Attribute6 VARCHAR2,
97 X_Attribute7 VARCHAR2,
98 X_Attribute8 VARCHAR2,
99 X_Attribute9 VARCHAR2,
100 X_Attribute10 VARCHAR2,
101 X_Attribute11 VARCHAR2,
102 X_Attribute12 VARCHAR2,
103 X_Attribute13 VARCHAR2,
104 X_Attribute14 VARCHAR2,
105 X_Attribute15 VARCHAR2,
106 X_Ship_Head_Attribute_Category VARCHAR2,
107 X_Ship_Head_Attribute1 VARCHAR2,
108 X_Ship_Head_Attribute2 VARCHAR2,
109 X_Ship_Head_Attribute3 VARCHAR2,
110 X_Ship_Head_Attribute4 VARCHAR2,
111 X_Ship_Head_Attribute5 VARCHAR2,
112 X_Ship_Head_Attribute6 VARCHAR2,
113 X_Ship_Head_Attribute7 VARCHAR2,
114 X_Ship_Head_Attribute8 VARCHAR2,
115 X_Ship_Head_Attribute9 VARCHAR2,
116 X_Ship_Head_Attribute10 VARCHAR2,
117 X_Ship_Head_Attribute11 VARCHAR2,
118 X_Ship_Head_Attribute12 VARCHAR2,
119 X_Ship_Head_Attribute13 VARCHAR2,
120 X_Ship_Head_Attribute14 VARCHAR2,
121 X_Ship_Head_Attribute15 VARCHAR2,
122 X_Ship_Line_Attribute_Category VARCHAR2,
123 X_Ship_Line_Attribute1 VARCHAR2,
124 X_Ship_Line_Attribute2 VARCHAR2,
125 X_Ship_Line_Attribute3 VARCHAR2,
126 X_Ship_Line_Attribute4 VARCHAR2,
127 X_Ship_Line_Attribute5 VARCHAR2,
128 X_Ship_Line_Attribute6 VARCHAR2,
129 X_Ship_Line_Attribute7 VARCHAR2,
130 X_Ship_Line_Attribute8 VARCHAR2,
131 X_Ship_Line_Attribute9 VARCHAR2,
132 X_Ship_Line_Attribute10 VARCHAR2,
133 X_Ship_Line_Attribute11 VARCHAR2,
134 X_Ship_Line_Attribute12 VARCHAR2,
135 X_Ship_Line_Attribute13 VARCHAR2,
136 X_Ship_Line_Attribute14 VARCHAR2,
137 X_Ship_Line_Attribute15 VARCHAR2,
138 X_Ussgl_Transaction_Code VARCHAR2,
139 X_Government_Context VARCHAR2,
140 X_Reason_Id NUMBER,
141 X_Destination_Context VARCHAR2,
142 X_Source_Doc_Quantity NUMBER,
143 X_Source_Doc_Unit_Of_Measure VARCHAR2,
144 X_Lot_Number_CC NUMBER,
145 X_Serial_Number_CC NUMBER
146
147 ) IS
148 BEGIN
149 UPDATE RCV_TRANSACTIONS_INTERFACE
150 SET
151 interface_transaction_id = X_Interface_Transaction_Id,
152 group_id = X_Group_Id,
153 last_update_date = X_Last_Update_Date,
154 last_updated_by = X_Last_Updated_By,
155 last_update_login = X_Last_Update_Login,
156 transaction_type = X_Transaction_Type,
157 transaction_date = X_Transaction_Date,
158 processing_status_code = X_Processing_Status_Code,
159 processing_mode_code = X_Processing_Mode_Code,
160 processing_request_id = X_Processing_Request_Id,
161 transaction_status_code = X_Transaction_Status_Code,
162 category_id = X_Category_Id,
163 quantity = X_Quantity,
164 unit_of_measure = X_Unit_Of_Measure,
165 interface_source_code = X_Interface_Source_Code,
166 interface_source_line_id = X_Interface_Source_Line_Id,
167 inv_transaction_id = X_Inv_Transaction_Id,
168 item_id = X_Item_Id,
169 item_description = X_Item_Description,
170 item_revision = X_Item_Revision,
171 uom_code = X_Uom_Code,
172 employee_id = X_Employee_Id,
173 auto_transact_code = X_Auto_Transact_Code,
174 shipment_header_id = X_Shipment_Header_Id,
175 shipment_line_id = X_Shipment_Line_Id,
176 ship_to_location_id = X_Ship_To_Location_Id,
177 primary_quantity = X_Primary_Quantity,
178 primary_unit_of_measure = X_Primary_Unit_Of_Measure,
179 receipt_source_code = X_Receipt_Source_Code,
180 vendor_id = X_Vendor_Id,
181 vendor_site_id = X_Vendor_Site_Id,
182 from_organization_id = X_From_Organization_Id,
183 to_organization_id = X_To_Organization_Id,
184 routing_header_id = X_Routing_Header_Id,
185 routing_step_id = X_Routing_Step_Id,
186 source_document_code = X_Source_Document_Code,
187 parent_transaction_id = X_Parent_Transaction_Id,
188 po_header_id = X_Po_Header_Id,
189 po_revision_num = X_Po_Revision_Num,
190 po_release_id = X_Po_Release_Id,
191 po_line_id = X_Po_Line_Id,
192 po_line_location_id = X_Po_Line_Location_Id,
193 po_unit_price = X_Po_Unit_Price,
194 currency_code = X_Currency_Code,
195 currency_conversion_type = X_Currency_Conversion_Type,
196 currency_conversion_rate = X_Currency_Conversion_Rate,
197 currency_conversion_date = X_Currency_Conversion_Date,
198 po_distribution_id = X_Po_Distribution_Id,
199 requisition_line_id = X_Requisition_Line_Id,
200 req_distribution_id = X_Req_Distribution_Id,
201 charge_account_id = X_Charge_Account_Id,
202 substitute_unordered_code = X_Substitute_Unordered_Code,
203 receipt_exception_flag = X_Receipt_Exception_Flag,
204 accrual_status_code = X_Accrual_Status_Code,
205 inspection_status_code = X_Inspection_Status_Code,
206 inspection_quality_code = X_Inspection_Quality_Code,
207 destination_type_code = X_Destination_Type_Code,
208 deliver_to_person_id = X_Deliver_To_Person_Id,
209 location_id = X_Location_Id,
210 deliver_to_location_id = X_Deliver_To_Location_Id,
211 subinventory = X_Subinventory,
212 locator_id = X_Locator_Id,
213 wip_entity_id = X_Wip_Entity_Id,
214 wip_line_id = X_Wip_Line_Id,
215 department_code = X_Department_Code,
216 wip_repetitive_schedule_id = X_Wip_Repetitive_Schedule_Id,
217 wip_operation_seq_num = X_Wip_Operation_Seq_Num,
218 wip_resource_seq_num = X_Wip_Resource_Seq_Num,
219 bom_resource_id = X_Bom_Resource_Id,
220 shipment_num = X_Shipment_Num,
221 freight_carrier_code = X_Freight_Carrier_Code,
222 bill_of_lading = X_Bill_Of_Lading,
223 packing_slip = X_Packing_Slip,
224 shipped_date = X_Shipped_Date,
225 expected_receipt_date = X_Expected_Receipt_Date,
226 actual_cost = X_Actual_Cost,
227 transfer_cost = X_Transfer_Cost,
228 transportation_cost = X_Transportation_Cost,
229 transportation_account_id = X_Transportation_Account_Id,
230 num_of_containers = X_Num_Of_Containers,
231 waybill_airbill_num = X_Waybill_Airbill_Num,
232 vendor_item_num = X_Vendor_Item_Num,
233 vendor_lot_num = X_Vendor_Lot_Num,
234 rma_reference = X_Rma_Reference,
235 comments = X_Comments,
236 attribute_category = X_Attribute_Category,
237 attribute1 = X_Attribute1,
238 attribute2 = X_Attribute2,
239 attribute3 = X_Attribute3,
240 attribute4 = X_Attribute4,
241 attribute5 = X_Attribute5,
242 attribute6 = X_Attribute6,
243 attribute7 = X_Attribute7,
244 attribute8 = X_Attribute8,
245 attribute9 = X_Attribute9,
246 attribute10 = X_Attribute10,
247 attribute11 = X_Attribute11,
248 attribute12 = X_Attribute12,
249 attribute13 = X_Attribute13,
250 attribute14 = X_Attribute14,
251 attribute15 = X_Attribute15,
252 ship_head_attribute_category = X_Ship_Head_Attribute_Category,
253 ship_head_attribute1 = X_Ship_Head_Attribute1,
254 ship_head_attribute2 = X_Ship_Head_Attribute2,
255 ship_head_attribute3 = X_Ship_Head_Attribute3,
256 ship_head_attribute4 = X_Ship_Head_Attribute4,
257 ship_head_attribute5 = X_Ship_Head_Attribute5,
258 ship_head_attribute6 = X_Ship_Head_Attribute6,
259 ship_head_attribute7 = X_Ship_Head_Attribute7,
260 ship_head_attribute8 = X_Ship_Head_Attribute8,
261 ship_head_attribute9 = X_Ship_Head_Attribute9,
262 ship_head_attribute10 = X_Ship_Head_Attribute10,
263 ship_head_attribute11 = X_Ship_Head_Attribute11,
264 ship_head_attribute12 = X_Ship_Head_Attribute12,
265 ship_head_attribute13 = X_Ship_Head_Attribute13,
266 ship_head_attribute14 = X_Ship_Head_Attribute14,
267 ship_head_attribute15 = X_Ship_Head_Attribute15,
268 ship_line_attribute_category = X_Ship_Line_Attribute_Category,
269 ship_line_attribute1 = X_Ship_Line_Attribute1,
270 ship_line_attribute2 = X_Ship_Line_Attribute2,
271 ship_line_attribute3 = X_Ship_Line_Attribute3,
272 ship_line_attribute4 = X_Ship_Line_Attribute4,
273 ship_line_attribute5 = X_Ship_Line_Attribute5,
274 ship_line_attribute6 = X_Ship_Line_Attribute6,
275 ship_line_attribute7 = X_Ship_Line_Attribute7,
276 ship_line_attribute8 = X_Ship_Line_Attribute8,
277 ship_line_attribute9 = X_Ship_Line_Attribute9,
278 ship_line_attribute10 = X_Ship_Line_Attribute10,
279 ship_line_attribute11 = X_Ship_Line_Attribute11,
280 ship_line_attribute12 = X_Ship_Line_Attribute12,
281 ship_line_attribute13 = X_Ship_Line_Attribute13,
282 ship_line_attribute14 = X_Ship_Line_Attribute14,
283 ship_line_attribute15 = X_Ship_Line_Attribute15,
284 ussgl_transaction_code = X_Ussgl_Transaction_Code,
285 government_context = X_Government_Context,
286 reason_id = X_Reason_Id,
287 destination_context = X_Destination_Context,
288 source_doc_quantity = X_Source_Doc_Quantity,
289 source_doc_unit_of_measure = X_Source_Doc_Unit_Of_Measure
290 WHERE rowid = X_rowid;
291
292 if (SQL%NOTFOUND) then
293 Raise NO_DATA_FOUND;
294 end if;
295
296 END Update_Row;
297
298 END RCV_TRX_INTERFACE_UPDATE_PKG;