DBA Data[Home] [Help]

APPS.RCV_ROI_TRANSACTION dependencies on ASN_DEBUG

Line 4: g_asn_debug VARCHAR2(1) := NVL(fnd_profile.VALUE('RCV_DEBUG_MODE'), 'N');

1: PACKAGE BODY rcv_roi_transaction
2: /* $Header: RCVPRETB.pls 120.41.12010000.3 2008/12/26 20:15:38 vthevark ship $*/
3: AS
4: g_asn_debug VARCHAR2(1) := NVL(fnd_profile.VALUE('RCV_DEBUG_MODE'), 'N');
5: x_progress VARCHAR2(3);
6: g_pkg_name CONSTANT VARCHAR2(30) := 'RCV_ROI_TRANSACTION';
7: x_drop_ship_flag VARCHAR2(1) := 'N';
8: x_auto_deliver VARCHAR2(1);

Line 47: IF (g_asn_debug = 'Y') THEN

43: -- 3) derive po line info
44: derive_po_line_info(x_cascaded_table, n);
45: x_progress := '002';
46:
47: IF (g_asn_debug = 'Y') THEN
48: asn_debug.put_line('X_progress ' || x_progress);
49: END IF;
50:
51: /* R12 Complex Work.

Line 48: asn_debug.put_line('X_progress ' || x_progress);

44: derive_po_line_info(x_cascaded_table, n);
45: x_progress := '002';
46:
47: IF (g_asn_debug = 'Y') THEN
48: asn_debug.put_line('X_progress ' || x_progress);
49: END IF;
50:
51: /* R12 Complex Work.
52: * We should be able to create Work Confirmations only through

Line 65: IF( g_asn_debug = 'Y' ) THEN

61: l_return_status,
62: l_complex_flag);
63: IF (l_return_status IS NOT NULL AND
64: l_return_status = FND_API.g_ret_sts_success) THEN
65: IF( g_asn_debug = 'Y' ) THEN
66: asn_debug.put_line('l_return_status ' || l_return_status);
67: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
68: END IF;
69: ELSE

Line 66: asn_debug.put_line('l_return_status ' || l_return_status);

62: l_complex_flag);
63: IF (l_return_status IS NOT NULL AND
64: l_return_status = FND_API.g_ret_sts_success) THEN
65: IF( g_asn_debug = 'Y' ) THEN
66: asn_debug.put_line('l_return_status ' || l_return_status);
67: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
68: END IF;
69: ELSE
70: IF( g_asn_debug = 'Y') THEN

Line 67: asn_debug.put_line('l_po_header_id ' || l_po_header_id);

63: IF (l_return_status IS NOT NULL AND
64: l_return_status = FND_API.g_ret_sts_success) THEN
65: IF( g_asn_debug = 'Y' ) THEN
66: asn_debug.put_line('l_return_status ' || l_return_status);
67: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
68: END IF;
69: ELSE
70: IF( g_asn_debug = 'Y') THEN
71: asn_debug.put_line('l_return_status ' || l_return_status);

Line 70: IF( g_asn_debug = 'Y') THEN

66: asn_debug.put_line('l_return_status ' || l_return_status);
67: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
68: END IF;
69: ELSE
70: IF( g_asn_debug = 'Y') THEN
71: asn_debug.put_line('l_return_status ' || l_return_status);
72: END IF;
73: END IF;
74:

Line 71: asn_debug.put_line('l_return_status ' || l_return_status);

67: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
68: END IF;
69: ELSE
70: IF( g_asn_debug = 'Y') THEN
71: asn_debug.put_line('l_return_status ' || l_return_status);
72: END IF;
73: END IF;
74:
75: IF (l_complex_flag = 'Y') THEN

Line 82: asn_debug.put_line('We do not support transaction type ' || x_cascaded_table(n).transaction_type || ' for complex work POs unless they come through the iSP UI');

78: x_cascaded_table(n).interface_source_code;
79:
80: if (x_cascaded_table(n).transaction_type = 'SHIP' and
81: l_interface_source_code <> 'ISP') then
82: asn_debug.put_line('We do not support transaction type ' || x_cascaded_table(n).transaction_type || ' for complex work POs unless they come through the iSP UI');
83: rcv_error_pkg.set_error_message('RCV_INVALID_TRANSACTION_TYPE');
84: rcv_error_pkg.log_interface_error('TRANSACTION_TYPE');
85: end if;
86: /* Receipt for Work Confirmation does not come through

Line 90: asn_debug.put_line('You cannot process a receipt against this PO using the Open Interface. Please create a Work Confirmation request instead.');

86: /* Receipt for Work Confirmation does not come through
87: * preprocessor. Hence error out.
88: */
89: if (x_cascaded_table(n).transaction_type = 'RECEIVE') then
90: asn_debug.put_line('You cannot process a receipt against this PO using the Open Interface. Please create a Work Confirmation request instead.');
91: rcv_error_pkg.set_error_message('RCV_WC_CREATE');
92: rcv_error_pkg.log_interface_error('TRANSACTION_TYPE');
93:
94: end if;

Line 102: IF (g_asn_debug = 'Y') THEN

98: -- 4) derive vendor information
99: derive_vendor_info(x_cascaded_table, n);
100: x_progress := '004';
101:
102: IF (g_asn_debug = 'Y') THEN
103: asn_debug.put_line('X_progress ' || x_progress);
104: END IF;
105:
106: -- 5) derive vendor site info

Line 103: asn_debug.put_line('X_progress ' || x_progress);

99: derive_vendor_info(x_cascaded_table, n);
100: x_progress := '004';
101:
102: IF (g_asn_debug = 'Y') THEN
103: asn_debug.put_line('X_progress ' || x_progress);
104: END IF;
105:
106: -- 5) derive vendor site info
107: /* Call derive vendor_site_procedure here */

Line 113: IF (g_asn_debug = 'Y') THEN

109: UK2 -> vendor_site_code + vendor_id + org_id */
110: derive_vendor_site_info(x_cascaded_table, n);
111: x_progress := '005';
112:
113: IF (g_asn_debug = 'Y') THEN
114: asn_debug.put_line('X_progress ' || x_progress);
115: END IF;
116:
117: -- 6) derive item info

Line 114: asn_debug.put_line('X_progress ' || x_progress);

110: derive_vendor_site_info(x_cascaded_table, n);
111: x_progress := '005';
112:
113: IF (g_asn_debug = 'Y') THEN
114: asn_debug.put_line('X_progress ' || x_progress);
115: END IF;
116:
117: -- 6) derive item info
118: derive_item_info(x_cascaded_table, n);

Line 166: IF (g_asn_debug = 'Y') THEN

162: * are going to get the matching_basis from
163: * po_line_locations and hence moved it from
164: * derive_po_line_info.
165: */
166: IF (g_asn_debug = 'Y') THEN
167: asn_debug.put_line('Before calling derive matching basis ');
168: END IF;
169: derive_matching_basis(x_cascaded_table,n);
170:

Line 167: asn_debug.put_line('Before calling derive matching basis ');

163: * po_line_locations and hence moved it from
164: * derive_po_line_info.
165: */
166: IF (g_asn_debug = 'Y') THEN
167: asn_debug.put_line('Before calling derive matching basis ');
168: END IF;
169: derive_matching_basis(x_cascaded_table,n);
170:
171: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN

Line 189: IF (g_asn_debug = 'Y') THEN

185: * Add exception block.
186: */
187: exception
188: when others then
189: IF (g_asn_debug = 'Y') THEN
190: asn_debug.put_line('Exception in derive_vendor_rcv_line '||x_progress);
191: END IF;
192: raise;
193: END derive_vendor_rcv_line;

Line 190: asn_debug.put_line('Exception in derive_vendor_rcv_line '||x_progress);

186: */
187: exception
188: when others then
189: IF (g_asn_debug = 'Y') THEN
190: asn_debug.put_line('Exception in derive_vendor_rcv_line '||x_progress);
191: END IF;
192: raise;
193: END derive_vendor_rcv_line;
194:

Line 248: IF (g_asn_debug = 'Y') THEN

244: AND pll.shipment_type IN('STANDARD', 'BLANKET', 'SCHEDULED','PREPAYMENT');
245:
246: default_po_info shipments%ROWTYPE;
247: BEGIN
248: IF (g_asn_debug = 'Y') THEN
249: asn_debug.put_line('Enter default_shipment_line');
250: END IF;
251:
252: x_progress := '000';

Line 249: asn_debug.put_line('Enter default_shipment_line');

245:
246: default_po_info shipments%ROWTYPE;
247: BEGIN
248: IF (g_asn_debug = 'Y') THEN
249: asn_debug.put_line('Enter default_shipment_line');
250: END IF;
251:
252: x_progress := '000';
253: -- set default_shipment_line values

Line 261: IF (g_asn_debug = 'Y') THEN

257:
258: IF x_cascaded_table(n).source_document_code IS NULL THEN
259: x_cascaded_table(n).source_document_code := 'PO';
260:
261: IF (g_asn_debug = 'Y') THEN
262: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);
263: END IF;
264: END IF;
265:

Line 262: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);

258: IF x_cascaded_table(n).source_document_code IS NULL THEN
259: x_cascaded_table(n).source_document_code := 'PO';
260:
261: IF (g_asn_debug = 'Y') THEN
262: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);
263: END IF;
264: END IF;
265:
266: /* Fix for bug 2564646.

Line 279: IF (g_asn_debug = 'Y') THEN

275: OR ( x_cascaded_table(n).destination_type_code = 'INVENTORY'
276: AND x_cascaded_table(n).auto_transact_code = 'RECEIVE') THEN
277: x_cascaded_table(n).destination_type_code := 'RECEIVING';
278:
279: IF (g_asn_debug = 'Y') THEN
280: asn_debug.put_line('Defaulting DESTINATION_TYPE_CODE ' || x_cascaded_table(n).destination_type_code);
281: END IF;
282: END IF;
283:

Line 280: asn_debug.put_line('Defaulting DESTINATION_TYPE_CODE ' || x_cascaded_table(n).destination_type_code);

276: AND x_cascaded_table(n).auto_transact_code = 'RECEIVE') THEN
277: x_cascaded_table(n).destination_type_code := 'RECEIVING';
278:
279: IF (g_asn_debug = 'Y') THEN
280: asn_debug.put_line('Defaulting DESTINATION_TYPE_CODE ' || x_cascaded_table(n).destination_type_code);
281: END IF;
282: END IF;
283:
284: IF x_cascaded_table(n).transaction_type IS NULL THEN

Line 287: IF (g_asn_debug = 'Y') THEN

283:
284: IF x_cascaded_table(n).transaction_type IS NULL THEN
285: x_cascaded_table(n).transaction_type := 'SHIP';
286:
287: IF (g_asn_debug = 'Y') THEN
288: asn_debug.put_line('Defaulting TRANSACTION_TYPE ' || x_cascaded_table(n).transaction_type);
289: END IF;
290: END IF;
291:

Line 288: asn_debug.put_line('Defaulting TRANSACTION_TYPE ' || x_cascaded_table(n).transaction_type);

284: IF x_cascaded_table(n).transaction_type IS NULL THEN
285: x_cascaded_table(n).transaction_type := 'SHIP';
286:
287: IF (g_asn_debug = 'Y') THEN
288: asn_debug.put_line('Defaulting TRANSACTION_TYPE ' || x_cascaded_table(n).transaction_type);
289: END IF;
290: END IF;
291:
292: IF x_cascaded_table(n).processing_mode_code IS NULL THEN

Line 295: IF (g_asn_debug = 'Y') THEN

291:
292: IF x_cascaded_table(n).processing_mode_code IS NULL THEN
293: x_cascaded_table(n).processing_mode_code := 'BATCH';
294:
295: IF (g_asn_debug = 'Y') THEN
296: asn_debug.put_line('Defaulting PROCESSING_MODE_CODE ' || x_cascaded_table(n).processing_mode_code);
297: END IF;
298: END IF;
299:

Line 296: asn_debug.put_line('Defaulting PROCESSING_MODE_CODE ' || x_cascaded_table(n).processing_mode_code);

292: IF x_cascaded_table(n).processing_mode_code IS NULL THEN
293: x_cascaded_table(n).processing_mode_code := 'BATCH';
294:
295: IF (g_asn_debug = 'Y') THEN
296: asn_debug.put_line('Defaulting PROCESSING_MODE_CODE ' || x_cascaded_table(n).processing_mode_code);
297: END IF;
298: END IF;
299:
300: x_cascaded_table(n).processing_status_code := 'RUNNING';

Line 307: IF (g_asn_debug = 'Y') THEN

303: -- This has to be set to running otherwise C code in rvtbm
304: -- will not pick it up
305: x_cascaded_table(n).processing_status_code := 'RUNNING';
306:
307: IF (g_asn_debug = 'Y') THEN
308: asn_debug.put_line('Defaulting PROCESSING_STATUS_CODE ' || x_cascaded_table(n).processing_status_code);
309: END IF;
310: END IF;
311:

Line 308: asn_debug.put_line('Defaulting PROCESSING_STATUS_CODE ' || x_cascaded_table(n).processing_status_code);

304: -- will not pick it up
305: x_cascaded_table(n).processing_status_code := 'RUNNING';
306:
307: IF (g_asn_debug = 'Y') THEN
308: asn_debug.put_line('Defaulting PROCESSING_STATUS_CODE ' || x_cascaded_table(n).processing_status_code);
309: END IF;
310: END IF;
311:
312: IF x_cascaded_table(n).transaction_status_code IS NULL THEN

Line 315: IF (g_asn_debug = 'Y') THEN

311:
312: IF x_cascaded_table(n).transaction_status_code IS NULL THEN
313: x_cascaded_table(n).transaction_status_code := 'PENDING';
314:
315: IF (g_asn_debug = 'Y') THEN
316: asn_debug.put_line('Defaulting TRANSACTION_STATUS_CODE ' || x_cascaded_table(n).transaction_status_code);
317: END IF;
318: END IF;
319:

Line 316: asn_debug.put_line('Defaulting TRANSACTION_STATUS_CODE ' || x_cascaded_table(n).transaction_status_code);

312: IF x_cascaded_table(n).transaction_status_code IS NULL THEN
313: x_cascaded_table(n).transaction_status_code := 'PENDING';
314:
315: IF (g_asn_debug = 'Y') THEN
316: asn_debug.put_line('Defaulting TRANSACTION_STATUS_CODE ' || x_cascaded_table(n).transaction_status_code);
317: END IF;
318: END IF;
319:
320: -- Default auto_transact_code if it is null

Line 322: IF (g_asn_debug = 'Y') THEN

318: END IF;
319:
320: -- Default auto_transact_code if it is null
321: IF x_cascaded_table(n).auto_transact_code IS NULL THEN
322: IF (g_asn_debug = 'Y') THEN
323: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);
324: END IF;
325:
326: x_cascaded_table(n).auto_transact_code := x_cascaded_table(n).transaction_type;

Line 323: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);

319:
320: -- Default auto_transact_code if it is null
321: IF x_cascaded_table(n).auto_transact_code IS NULL THEN
322: IF (g_asn_debug = 'Y') THEN
323: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);
324: END IF;
325:
326: x_cascaded_table(n).auto_transact_code := x_cascaded_table(n).transaction_type;
327: END IF;

Line 337: IF (g_asn_debug = 'Y') THEN

333: x_cascaded_table(n).vendor_id := x_header_record.header_record.vendor_id;
334: x_cascaded_table(n).vendor_name := x_header_record.header_record.vendor_name;
335: x_cascaded_table(n).vendor_num := x_header_record.header_record.vendor_num;
336:
337: IF (g_asn_debug = 'Y') THEN
338: asn_debug.put_line('Defaulting from HEADER VENDOR_ID ' || TO_CHAR(x_cascaded_table(n).vendor_id));
339: asn_debug.put_line('Defaulting from HEADER VENDOR_NAME ' || x_cascaded_table(n).vendor_name);
340: asn_debug.put_line('Defaulting from HEADER VENDOR_NUM ' || x_cascaded_table(n).vendor_num);
341: END IF;

Line 338: asn_debug.put_line('Defaulting from HEADER VENDOR_ID ' || TO_CHAR(x_cascaded_table(n).vendor_id));

334: x_cascaded_table(n).vendor_name := x_header_record.header_record.vendor_name;
335: x_cascaded_table(n).vendor_num := x_header_record.header_record.vendor_num;
336:
337: IF (g_asn_debug = 'Y') THEN
338: asn_debug.put_line('Defaulting from HEADER VENDOR_ID ' || TO_CHAR(x_cascaded_table(n).vendor_id));
339: asn_debug.put_line('Defaulting from HEADER VENDOR_NAME ' || x_cascaded_table(n).vendor_name);
340: asn_debug.put_line('Defaulting from HEADER VENDOR_NUM ' || x_cascaded_table(n).vendor_num);
341: END IF;
342: END IF; --}

Line 339: asn_debug.put_line('Defaulting from HEADER VENDOR_NAME ' || x_cascaded_table(n).vendor_name);

335: x_cascaded_table(n).vendor_num := x_header_record.header_record.vendor_num;
336:
337: IF (g_asn_debug = 'Y') THEN
338: asn_debug.put_line('Defaulting from HEADER VENDOR_ID ' || TO_CHAR(x_cascaded_table(n).vendor_id));
339: asn_debug.put_line('Defaulting from HEADER VENDOR_NAME ' || x_cascaded_table(n).vendor_name);
340: asn_debug.put_line('Defaulting from HEADER VENDOR_NUM ' || x_cascaded_table(n).vendor_num);
341: END IF;
342: END IF; --}
343:

Line 340: asn_debug.put_line('Defaulting from HEADER VENDOR_NUM ' || x_cascaded_table(n).vendor_num);

336:
337: IF (g_asn_debug = 'Y') THEN
338: asn_debug.put_line('Defaulting from HEADER VENDOR_ID ' || TO_CHAR(x_cascaded_table(n).vendor_id));
339: asn_debug.put_line('Defaulting from HEADER VENDOR_NAME ' || x_cascaded_table(n).vendor_name);
340: asn_debug.put_line('Defaulting from HEADER VENDOR_NUM ' || x_cascaded_table(n).vendor_num);
341: END IF;
342: END IF; --}
343:
344: -- default only if all attributes are null

Line 376: IF (g_asn_debug = 'Y') THEN

372: x_cascaded_table(n).vendor_site_id := x_vendor_site_id;
373: x_cascaded_table(n).vendor_site_code := x_vendor_site_code;
374: END IF; --}
375:
376: IF (g_asn_debug = 'Y') THEN
377: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_ID ' || TO_CHAR(x_cascaded_table(n).vendor_site_id));
378: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_CODE ' || x_cascaded_table(n).vendor_site_code);
379: END IF;
380: END IF; --}

Line 377: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_ID ' || TO_CHAR(x_cascaded_table(n).vendor_site_id));

373: x_cascaded_table(n).vendor_site_code := x_vendor_site_code;
374: END IF; --}
375:
376: IF (g_asn_debug = 'Y') THEN
377: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_ID ' || TO_CHAR(x_cascaded_table(n).vendor_site_id));
378: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_CODE ' || x_cascaded_table(n).vendor_site_code);
379: END IF;
380: END IF; --}
381:

Line 378: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_CODE ' || x_cascaded_table(n).vendor_site_code);

374: END IF; --}
375:
376: IF (g_asn_debug = 'Y') THEN
377: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_ID ' || TO_CHAR(x_cascaded_table(n).vendor_site_id));
378: asn_debug.put_line('Defaulting from HEADER VENDOR_SITE_CODE ' || x_cascaded_table(n).vendor_site_code);
379: END IF;
380: END IF; --}
381:
382: -- default only if all attributes are null

Line 389: IF (g_asn_debug = 'Y') THEN

385: AND x_cascaded_table(n).from_organization_code IS NULL THEN
386: x_cascaded_table(n).from_organization_id := x_header_record.header_record.from_organization_id;
387: x_cascaded_table(n).from_organization_code := x_header_record.header_record.from_organization_code;
388:
389: IF (g_asn_debug = 'Y') THEN
390: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).from_organization_id));
391: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_CODE ' || x_cascaded_table(n).from_organization_code);
392: END IF;
393: END IF;

Line 390: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).from_organization_id));

386: x_cascaded_table(n).from_organization_id := x_header_record.header_record.from_organization_id;
387: x_cascaded_table(n).from_organization_code := x_header_record.header_record.from_organization_code;
388:
389: IF (g_asn_debug = 'Y') THEN
390: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).from_organization_id));
391: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_CODE ' || x_cascaded_table(n).from_organization_code);
392: END IF;
393: END IF;
394:

Line 391: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_CODE ' || x_cascaded_table(n).from_organization_code);

387: x_cascaded_table(n).from_organization_code := x_header_record.header_record.from_organization_code;
388:
389: IF (g_asn_debug = 'Y') THEN
390: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).from_organization_id));
391: asn_debug.put_line('Defaulting from HEADER FROM_ORGANIZATION_CODE ' || x_cascaded_table(n).from_organization_code);
392: END IF;
393: END IF;
394:
395: -- default only if all attributes are null

Line 401: IF (g_asn_debug = 'Y') THEN

397: AND x_cascaded_table(n).to_organization_code IS NULL THEN
398: x_cascaded_table(n).to_organization_id := x_header_record.header_record.ship_to_organization_id;
399: x_cascaded_table(n).to_organization_code := x_header_record.header_record.ship_to_organization_code;
400:
401: IF (g_asn_debug = 'Y') THEN
402: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).to_organization_id));
403: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_CODE ' || x_cascaded_table(n).to_organization_code);
404: END IF;
405: END IF;

Line 402: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).to_organization_id));

398: x_cascaded_table(n).to_organization_id := x_header_record.header_record.ship_to_organization_id;
399: x_cascaded_table(n).to_organization_code := x_header_record.header_record.ship_to_organization_code;
400:
401: IF (g_asn_debug = 'Y') THEN
402: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).to_organization_id));
403: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_CODE ' || x_cascaded_table(n).to_organization_code);
404: END IF;
405: END IF;
406:

Line 403: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_CODE ' || x_cascaded_table(n).to_organization_code);

399: x_cascaded_table(n).to_organization_code := x_header_record.header_record.ship_to_organization_code;
400:
401: IF (g_asn_debug = 'Y') THEN
402: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_ID ' || TO_CHAR(x_cascaded_table(n).to_organization_id));
403: asn_debug.put_line('Defaulting from HEADER TO_ORGANIZATION_CODE ' || x_cascaded_table(n).to_organization_code);
404: END IF;
405: END IF;
406:
407: -- default only if all attributes are null

Line 417: IF (g_asn_debug = 'Y') THEN

413: x_cascaded_table(n).currency_conversion_type := x_header_record.header_record.conversion_rate_type;
414: x_cascaded_table(n).currency_conversion_rate := x_header_record.header_record.conversion_rate;
415: x_cascaded_table(n).currency_conversion_date := x_header_record.header_record.conversion_rate_date;
416:
417: IF (g_asn_debug = 'Y') THEN
418: asn_debug.put_line('Defaulting from HEADER CURRENCY_CODE ' || x_cascaded_table(n).currency_code);
419: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_TYPE ' || x_cascaded_table(n).currency_conversion_type);
420: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_RATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_rate));
421: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_DATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_date, 'DD/MM/YYYY'));

Line 418: asn_debug.put_line('Defaulting from HEADER CURRENCY_CODE ' || x_cascaded_table(n).currency_code);

414: x_cascaded_table(n).currency_conversion_rate := x_header_record.header_record.conversion_rate;
415: x_cascaded_table(n).currency_conversion_date := x_header_record.header_record.conversion_rate_date;
416:
417: IF (g_asn_debug = 'Y') THEN
418: asn_debug.put_line('Defaulting from HEADER CURRENCY_CODE ' || x_cascaded_table(n).currency_code);
419: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_TYPE ' || x_cascaded_table(n).currency_conversion_type);
420: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_RATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_rate));
421: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_DATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_date, 'DD/MM/YYYY'));
422: END IF;

Line 419: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_TYPE ' || x_cascaded_table(n).currency_conversion_type);

415: x_cascaded_table(n).currency_conversion_date := x_header_record.header_record.conversion_rate_date;
416:
417: IF (g_asn_debug = 'Y') THEN
418: asn_debug.put_line('Defaulting from HEADER CURRENCY_CODE ' || x_cascaded_table(n).currency_code);
419: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_TYPE ' || x_cascaded_table(n).currency_conversion_type);
420: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_RATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_rate));
421: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_DATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_date, 'DD/MM/YYYY'));
422: END IF;
423: END IF; --}

Line 420: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_RATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_rate));

416:
417: IF (g_asn_debug = 'Y') THEN
418: asn_debug.put_line('Defaulting from HEADER CURRENCY_CODE ' || x_cascaded_table(n).currency_code);
419: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_TYPE ' || x_cascaded_table(n).currency_conversion_type);
420: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_RATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_rate));
421: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_DATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_date, 'DD/MM/YYYY'));
422: END IF;
423: END IF; --}
424:

Line 421: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_DATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_date, 'DD/MM/YYYY'));

417: IF (g_asn_debug = 'Y') THEN
418: asn_debug.put_line('Defaulting from HEADER CURRENCY_CODE ' || x_cascaded_table(n).currency_code);
419: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_TYPE ' || x_cascaded_table(n).currency_conversion_type);
420: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_RATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_rate));
421: asn_debug.put_line('Defaulting from HEADER CURRENCY_CONVERSION_DATE ' || TO_CHAR(x_cascaded_table(n).currency_conversion_date, 'DD/MM/YYYY'));
422: END IF;
423: END IF; --}
424:
425: IF ( x_cascaded_table(n).ship_to_location_id IS NULL

Line 430: IF (g_asn_debug = 'Y') THEN

426: AND x_cascaded_table(n).ship_to_location_code IS NULL) THEN -- Check this with George
427: x_cascaded_table(n).ship_to_location_code := x_header_record.header_record.location_code;
428: x_cascaded_table(n).ship_to_location_id := x_header_record.header_record.location_id;
429:
430: IF (g_asn_debug = 'Y') THEN
431: asn_debug.put_line('Defaulting from HEADER LOCATION_ID ' || TO_CHAR(x_cascaded_table(n).location_id));
432: END IF;
433: END IF;
434:

Line 431: asn_debug.put_line('Defaulting from HEADER LOCATION_ID ' || TO_CHAR(x_cascaded_table(n).location_id));

427: x_cascaded_table(n).ship_to_location_code := x_header_record.header_record.location_code;
428: x_cascaded_table(n).ship_to_location_id := x_header_record.header_record.location_id;
429:
430: IF (g_asn_debug = 'Y') THEN
431: asn_debug.put_line('Defaulting from HEADER LOCATION_ID ' || TO_CHAR(x_cascaded_table(n).location_id));
432: END IF;
433: END IF;
434:
435: IF x_cascaded_table(n).shipment_num IS NULL THEN

Line 438: IF (g_asn_debug = 'Y') THEN

434:
435: IF x_cascaded_table(n).shipment_num IS NULL THEN
436: x_cascaded_table(n).shipment_num := x_header_record.header_record.shipment_num;
437:
438: IF (g_asn_debug = 'Y') THEN
439: asn_debug.put_line('Defaulting from HEADER SHIPMENT_NUM ' || x_cascaded_table(n).shipment_num);
440: END IF;
441: END IF;
442:

Line 439: asn_debug.put_line('Defaulting from HEADER SHIPMENT_NUM ' || x_cascaded_table(n).shipment_num);

435: IF x_cascaded_table(n).shipment_num IS NULL THEN
436: x_cascaded_table(n).shipment_num := x_header_record.header_record.shipment_num;
437:
438: IF (g_asn_debug = 'Y') THEN
439: asn_debug.put_line('Defaulting from HEADER SHIPMENT_NUM ' || x_cascaded_table(n).shipment_num);
440: END IF;
441: END IF;
442:
443: IF x_cascaded_table(n).freight_carrier_code IS NULL THEN

Line 446: IF (g_asn_debug = 'Y') THEN

442:
443: IF x_cascaded_table(n).freight_carrier_code IS NULL THEN
444: x_cascaded_table(n).freight_carrier_code := x_header_record.header_record.freight_carrier_code;
445:
446: IF (g_asn_debug = 'Y') THEN
447: asn_debug.put_line('Defaulting from HEADER FREIGHT_CARRIER_CODE ' || x_cascaded_table(n).freight_carrier_code);
448: END IF;
449: END IF;
450:

Line 447: asn_debug.put_line('Defaulting from HEADER FREIGHT_CARRIER_CODE ' || x_cascaded_table(n).freight_carrier_code);

443: IF x_cascaded_table(n).freight_carrier_code IS NULL THEN
444: x_cascaded_table(n).freight_carrier_code := x_header_record.header_record.freight_carrier_code;
445:
446: IF (g_asn_debug = 'Y') THEN
447: asn_debug.put_line('Defaulting from HEADER FREIGHT_CARRIER_CODE ' || x_cascaded_table(n).freight_carrier_code);
448: END IF;
449: END IF;
450:
451: IF x_cascaded_table(n).bill_of_lading IS NULL THEN

Line 454: IF (g_asn_debug = 'Y') THEN

450:
451: IF x_cascaded_table(n).bill_of_lading IS NULL THEN
452: x_cascaded_table(n).bill_of_lading := x_header_record.header_record.bill_of_lading;
453:
454: IF (g_asn_debug = 'Y') THEN
455: asn_debug.put_line('Defaulting from HEADER BILL_OF_LADING ' || x_cascaded_table(n).bill_of_lading);
456: END IF;
457: END IF;
458:

Line 455: asn_debug.put_line('Defaulting from HEADER BILL_OF_LADING ' || x_cascaded_table(n).bill_of_lading);

451: IF x_cascaded_table(n).bill_of_lading IS NULL THEN
452: x_cascaded_table(n).bill_of_lading := x_header_record.header_record.bill_of_lading;
453:
454: IF (g_asn_debug = 'Y') THEN
455: asn_debug.put_line('Defaulting from HEADER BILL_OF_LADING ' || x_cascaded_table(n).bill_of_lading);
456: END IF;
457: END IF;
458:
459: IF x_cascaded_table(n).packing_slip IS NULL THEN

Line 462: IF (g_asn_debug = 'Y') THEN

458:
459: IF x_cascaded_table(n).packing_slip IS NULL THEN
460: x_cascaded_table(n).packing_slip := x_header_record.header_record.packing_slip;
461:
462: IF (g_asn_debug = 'Y') THEN
463: asn_debug.put_line('Defaulting from HEADER PACKING_SLIP ' || x_cascaded_table(n).packing_slip);
464: END IF;
465: END IF;
466:

Line 463: asn_debug.put_line('Defaulting from HEADER PACKING_SLIP ' || x_cascaded_table(n).packing_slip);

459: IF x_cascaded_table(n).packing_slip IS NULL THEN
460: x_cascaded_table(n).packing_slip := x_header_record.header_record.packing_slip;
461:
462: IF (g_asn_debug = 'Y') THEN
463: asn_debug.put_line('Defaulting from HEADER PACKING_SLIP ' || x_cascaded_table(n).packing_slip);
464: END IF;
465: END IF;
466:
467: IF x_cascaded_table(n).shipped_date IS NULL THEN

Line 470: IF (g_asn_debug = 'Y') THEN

466:
467: IF x_cascaded_table(n).shipped_date IS NULL THEN
468: x_cascaded_table(n).shipped_date := x_header_record.header_record.shipped_date;
469:
470: IF (g_asn_debug = 'Y') THEN
471: asn_debug.put_line('Defaulting from HEADER SHIPPED_DATE ' || TO_CHAR(x_cascaded_table(n).shipped_date, 'DD/MM/YYYY'));
472: END IF;
473: END IF;
474:

Line 471: asn_debug.put_line('Defaulting from HEADER SHIPPED_DATE ' || TO_CHAR(x_cascaded_table(n).shipped_date, 'DD/MM/YYYY'));

467: IF x_cascaded_table(n).shipped_date IS NULL THEN
468: x_cascaded_table(n).shipped_date := x_header_record.header_record.shipped_date;
469:
470: IF (g_asn_debug = 'Y') THEN
471: asn_debug.put_line('Defaulting from HEADER SHIPPED_DATE ' || TO_CHAR(x_cascaded_table(n).shipped_date, 'DD/MM/YYYY'));
472: END IF;
473: END IF;
474:
475: IF x_cascaded_table(n).expected_receipt_date IS NULL THEN

Line 478: IF (g_asn_debug = 'Y') THEN

474:
475: IF x_cascaded_table(n).expected_receipt_date IS NULL THEN
476: x_cascaded_table(n).expected_receipt_date := x_header_record.header_record.expected_receipt_date;
477:
478: IF (g_asn_debug = 'Y') THEN
479: asn_debug.put_line('Defaulting from HEADER EXPECTED_RECEIPT_DATE ' || TO_CHAR(x_cascaded_table(n).expected_receipt_date, 'DD/MM/YYYY'));
480: END IF;
481: END IF;
482:

Line 479: asn_debug.put_line('Defaulting from HEADER EXPECTED_RECEIPT_DATE ' || TO_CHAR(x_cascaded_table(n).expected_receipt_date, 'DD/MM/YYYY'));

475: IF x_cascaded_table(n).expected_receipt_date IS NULL THEN
476: x_cascaded_table(n).expected_receipt_date := x_header_record.header_record.expected_receipt_date;
477:
478: IF (g_asn_debug = 'Y') THEN
479: asn_debug.put_line('Defaulting from HEADER EXPECTED_RECEIPT_DATE ' || TO_CHAR(x_cascaded_table(n).expected_receipt_date, 'DD/MM/YYYY'));
480: END IF;
481: END IF;
482:
483: IF x_cascaded_table(n).num_of_containers IS NULL

Line 487: IF (g_asn_debug = 'Y') THEN

483: IF x_cascaded_table(n).num_of_containers IS NULL
484: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
485: x_cascaded_table(n).num_of_containers := x_header_record.header_record.num_of_containers;
486:
487: IF (g_asn_debug = 'Y') THEN
488: asn_debug.put_line('Defaulting from HEADER NUM_OF_CONTAINERS ' || TO_CHAR(x_cascaded_table(n).num_of_containers));
489: END IF;
490: END IF;
491:

Line 488: asn_debug.put_line('Defaulting from HEADER NUM_OF_CONTAINERS ' || TO_CHAR(x_cascaded_table(n).num_of_containers));

484: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
485: x_cascaded_table(n).num_of_containers := x_header_record.header_record.num_of_containers;
486:
487: IF (g_asn_debug = 'Y') THEN
488: asn_debug.put_line('Defaulting from HEADER NUM_OF_CONTAINERS ' || TO_CHAR(x_cascaded_table(n).num_of_containers));
489: END IF;
490: END IF;
491:
492: IF x_cascaded_table(n).waybill_airbill_num IS NULL

Line 496: IF (g_asn_debug = 'Y') THEN

492: IF x_cascaded_table(n).waybill_airbill_num IS NULL
493: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
494: x_cascaded_table(n).waybill_airbill_num := x_header_record.header_record.waybill_airbill_num;
495:
496: IF (g_asn_debug = 'Y') THEN
497: asn_debug.put_line('Defaulting from HEADER WAYBILL_AIRBILL_NUM ' || x_cascaded_table(n).waybill_airbill_num);
498: END IF;
499: END IF;
500:

Line 497: asn_debug.put_line('Defaulting from HEADER WAYBILL_AIRBILL_NUM ' || x_cascaded_table(n).waybill_airbill_num);

493: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
494: x_cascaded_table(n).waybill_airbill_num := x_header_record.header_record.waybill_airbill_num;
495:
496: IF (g_asn_debug = 'Y') THEN
497: asn_debug.put_line('Defaulting from HEADER WAYBILL_AIRBILL_NUM ' || x_cascaded_table(n).waybill_airbill_num);
498: END IF;
499: END IF;
500:
501: IF x_cascaded_table(n).tax_name IS NULL THEN

Line 504: IF (g_asn_debug = 'Y') THEN

500:
501: IF x_cascaded_table(n).tax_name IS NULL THEN
502: x_cascaded_table(n).tax_name := x_header_record.header_record.tax_name;
503:
504: IF (g_asn_debug = 'Y') THEN
505: asn_debug.put_line('Defaulting from HEADER TAX_NAME ' || x_cascaded_table(n).tax_name);
506: END IF;
507: END IF;
508:

Line 505: asn_debug.put_line('Defaulting from HEADER TAX_NAME ' || x_cascaded_table(n).tax_name);

501: IF x_cascaded_table(n).tax_name IS NULL THEN
502: x_cascaded_table(n).tax_name := x_header_record.header_record.tax_name;
503:
504: IF (g_asn_debug = 'Y') THEN
505: asn_debug.put_line('Defaulting from HEADER TAX_NAME ' || x_cascaded_table(n).tax_name);
506: END IF;
507: END IF;
508:
509: /* Bug 3299421 : WMS Mobile applications do not need the item_revision to

Line 518: IF (g_asn_debug = 'Y') THEN

514: */
515: IF x_cascaded_table(n).item_revision IS NULL
516: AND (NVL(x_cascaded_table(n).mobile_txn, 'N') = 'N')
517: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN --{
518: IF (g_asn_debug = 'Y') THEN
519: asn_debug.put_line('Enter defaulting item revision');
520: END IF;
521:
522: item_id_record.item_id := x_cascaded_table(n).item_id;

Line 519: asn_debug.put_line('Enter defaulting item revision');

515: IF x_cascaded_table(n).item_revision IS NULL
516: AND (NVL(x_cascaded_table(n).mobile_txn, 'N') = 'N')
517: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN --{
518: IF (g_asn_debug = 'Y') THEN
519: asn_debug.put_line('Enter defaulting item revision');
520: END IF;
521:
522: item_id_record.item_id := x_cascaded_table(n).item_id;
523: item_id_record.po_line_id := x_cascaded_table(n).po_line_id;

Line 532: IF (g_asn_debug = 'Y') THEN

528: item_id_record.error_record.error_message := NULL;
529: rcv_transactions_interface_sv.default_item_revision(item_id_record);
530: x_cascaded_table(n).item_revision := item_id_record.item_revision;
531:
532: IF (g_asn_debug = 'Y') THEN
533: asn_debug.put_line(NVL(item_id_record.item_revision, 'Item Revision is null'));
534: END IF;
535:
536: x_cascaded_table(n).error_status := item_id_record.error_record.error_status;

Line 533: asn_debug.put_line(NVL(item_id_record.item_revision, 'Item Revision is null'));

529: rcv_transactions_interface_sv.default_item_revision(item_id_record);
530: x_cascaded_table(n).item_revision := item_id_record.item_revision;
531:
532: IF (g_asn_debug = 'Y') THEN
533: asn_debug.put_line(NVL(item_id_record.item_revision, 'Item Revision is null'));
534: END IF;
535:
536: x_cascaded_table(n).error_status := item_id_record.error_record.error_status;
537: x_cascaded_table(n).error_message := item_id_record.error_record.error_message;

Line 558: IF (g_asn_debug = 'Y') THEN

554: AND x_cascaded_table(n).to_organization_code IS NULL)
555: OR x_cascaded_table(n).document_shipment_line_num IS NULL
556: OR ( x_cascaded_table(n).routing_header_id IS NULL
557: AND x_cascaded_table(n).routing_code IS NULL) THEN --{
558: IF (g_asn_debug = 'Y') THEN
559: asn_debug.put_line('Defaulting values from PO ');
560: END IF;
561:
562: OPEN shipments(x_cascaded_table(n).po_header_id,

Line 559: asn_debug.put_line('Defaulting values from PO ');

555: OR x_cascaded_table(n).document_shipment_line_num IS NULL
556: OR ( x_cascaded_table(n).routing_header_id IS NULL
557: AND x_cascaded_table(n).routing_code IS NULL) THEN --{
558: IF (g_asn_debug = 'Y') THEN
559: asn_debug.put_line('Defaulting values from PO ');
560: END IF;
561:
562: OPEN shipments(x_cascaded_table(n).po_header_id,
563: x_cascaded_table(n).po_line_id,

Line 570: IF (g_asn_debug = 'Y') THEN

566: FETCH shipments INTO default_po_info;
567:
568: IF shipments%FOUND THEN --{
569: IF x_cascaded_table(n).po_revision_num IS NULL THEN
570: IF (g_asn_debug = 'Y') THEN
571: asn_debug.put_line('Defaulting PO HEADER revision num ' || default_po_info.revision_num);
572: END IF;
573:
574: x_cascaded_table(n).po_revision_num := default_po_info.revision_num;

Line 571: asn_debug.put_line('Defaulting PO HEADER revision num ' || default_po_info.revision_num);

567:
568: IF shipments%FOUND THEN --{
569: IF x_cascaded_table(n).po_revision_num IS NULL THEN
570: IF (g_asn_debug = 'Y') THEN
571: asn_debug.put_line('Defaulting PO HEADER revision num ' || default_po_info.revision_num);
572: END IF;
573:
574: x_cascaded_table(n).po_revision_num := default_po_info.revision_num;
575: END IF;

Line 578: IF (g_asn_debug = 'Y') THEN

574: x_cascaded_table(n).po_revision_num := default_po_info.revision_num;
575: END IF;
576:
577: IF x_cascaded_table(n).document_line_num IS NULL THEN
578: IF (g_asn_debug = 'Y') THEN
579: asn_debug.put_line('Defaulting po line num ' || TO_CHAR(default_po_info.line_num));
580: END IF;
581:
582: x_cascaded_table(n).document_line_num := default_po_info.line_num;

Line 579: asn_debug.put_line('Defaulting po line num ' || TO_CHAR(default_po_info.line_num));

575: END IF;
576:
577: IF x_cascaded_table(n).document_line_num IS NULL THEN
578: IF (g_asn_debug = 'Y') THEN
579: asn_debug.put_line('Defaulting po line num ' || TO_CHAR(default_po_info.line_num));
580: END IF;
581:
582: x_cascaded_table(n).document_line_num := default_po_info.line_num;
583: END IF;

Line 587: IF (g_asn_debug = 'Y') THEN

583: END IF;
584:
585: IF x_cascaded_table(n).item_description IS NULL
586: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
587: IF (g_asn_debug = 'Y') THEN
588: asn_debug.put_line('Defaulting item description from PO ' || default_po_info.item_description);
589: END IF;
590:
591: x_cascaded_table(n).item_description := default_po_info.item_description;

Line 588: asn_debug.put_line('Defaulting item description from PO ' || default_po_info.item_description);

584:
585: IF x_cascaded_table(n).item_description IS NULL
586: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
587: IF (g_asn_debug = 'Y') THEN
588: asn_debug.put_line('Defaulting item description from PO ' || default_po_info.item_description);
589: END IF;
590:
591: x_cascaded_table(n).item_description := default_po_info.item_description;
592: END IF;

Line 596: IF (g_asn_debug = 'Y') THEN

592: END IF;
593:
594: IF x_cascaded_table(n).tax_name IS NULL
595: AND default_po_info.tax_code_id IS NOT NULL THEN --{
596: IF (g_asn_debug = 'Y') THEN
597: asn_debug.put_line('Defaulting tax name based on PO ' || TO_CHAR(default_po_info.tax_code_id));
598: END IF;
599:
600: -- Need to join to ap_tax_codes to get tax_name

Line 597: asn_debug.put_line('Defaulting tax name based on PO ' || TO_CHAR(default_po_info.tax_code_id));

593:
594: IF x_cascaded_table(n).tax_name IS NULL
595: AND default_po_info.tax_code_id IS NOT NULL THEN --{
596: IF (g_asn_debug = 'Y') THEN
597: asn_debug.put_line('Defaulting tax name based on PO ' || TO_CHAR(default_po_info.tax_code_id));
598: END IF;
599:
600: -- Need to join to ap_tax_codes to get tax_name
601: BEGIN

Line 610: IF (g_asn_debug = 'Y') THEN

606:
607: x_cascaded_table(n).tax_name := x_tax_name;
608: EXCEPTION
609: WHEN OTHERS THEN
610: IF (g_asn_debug = 'Y') THEN
611: asn_debug.put_line('Some error occured in the tax name derivation');
612: END IF;
613: END;
614: END IF; --}

Line 611: asn_debug.put_line('Some error occured in the tax name derivation');

607: x_cascaded_table(n).tax_name := x_tax_name;
608: EXCEPTION
609: WHEN OTHERS THEN
610: IF (g_asn_debug = 'Y') THEN
611: asn_debug.put_line('Some error occured in the tax name derivation');
612: END IF;
613: END;
614: END IF; --}
615:

Line 619: IF (g_asn_debug = 'Y') THEN

615:
616: --FRKHAN 12/18/98 default country of origin from PO
617:
618: IF x_cascaded_table(n).country_of_origin_code IS NULL THEN
619: IF (g_asn_debug = 'Y') THEN
620: asn_debug.put_line('Defaulting country of origin from PO ' || default_po_info.country_of_origin_code);
621: END IF;
622:
623: x_cascaded_table(n).country_of_origin_code := default_po_info.country_of_origin_code;

Line 620: asn_debug.put_line('Defaulting country of origin from PO ' || default_po_info.country_of_origin_code);

616: --FRKHAN 12/18/98 default country of origin from PO
617:
618: IF x_cascaded_table(n).country_of_origin_code IS NULL THEN
619: IF (g_asn_debug = 'Y') THEN
620: asn_debug.put_line('Defaulting country of origin from PO ' || default_po_info.country_of_origin_code);
621: END IF;
622:
623: x_cascaded_table(n).country_of_origin_code := default_po_info.country_of_origin_code;
624: END IF;

Line 627: IF (g_asn_debug = 'Y') THEN

623: x_cascaded_table(n).country_of_origin_code := default_po_info.country_of_origin_code;
624: END IF;
625:
626: IF x_cascaded_table(n).po_release_id IS NULL THEN
627: IF (g_asn_debug = 'Y') THEN
628: asn_debug.put_line('Defaulting PO Release ID from PO ' || TO_CHAR(default_po_info.po_release_id));
629: END IF;
630:
631: x_cascaded_table(n).po_release_id := default_po_info.po_release_id;

Line 628: asn_debug.put_line('Defaulting PO Release ID from PO ' || TO_CHAR(default_po_info.po_release_id));

624: END IF;
625:
626: IF x_cascaded_table(n).po_release_id IS NULL THEN
627: IF (g_asn_debug = 'Y') THEN
628: asn_debug.put_line('Defaulting PO Release ID from PO ' || TO_CHAR(default_po_info.po_release_id));
629: END IF;
630:
631: x_cascaded_table(n).po_release_id := default_po_info.po_release_id;
632: END IF;

Line 635: IF (g_asn_debug = 'Y') THEN

631: x_cascaded_table(n).po_release_id := default_po_info.po_release_id;
632: END IF;
633:
634: IF x_cascaded_table(n).ship_to_location_id IS NULL THEN
635: IF (g_asn_debug = 'Y') THEN
636: asn_debug.put_line('Defaulting PO ship_to_location_id ' || TO_CHAR(default_po_info.ship_to_location_id));
637: END IF;
638:
639: x_cascaded_table(n).ship_to_location_id := default_po_info.ship_to_location_id;

Line 636: asn_debug.put_line('Defaulting PO ship_to_location_id ' || TO_CHAR(default_po_info.ship_to_location_id));

632: END IF;
633:
634: IF x_cascaded_table(n).ship_to_location_id IS NULL THEN
635: IF (g_asn_debug = 'Y') THEN
636: asn_debug.put_line('Defaulting PO ship_to_location_id ' || TO_CHAR(default_po_info.ship_to_location_id));
637: END IF;
638:
639: x_cascaded_table(n).ship_to_location_id := default_po_info.ship_to_location_id;
640: END IF;

Line 643: IF (g_asn_debug = 'Y') THEN

639: x_cascaded_table(n).ship_to_location_id := default_po_info.ship_to_location_id;
640: END IF;
641:
642: IF x_cascaded_table(n).to_organization_id IS NULL THEN
643: IF (g_asn_debug = 'Y') THEN
644: asn_debug.put_line('Defaulting PO to_organization_id ' || TO_CHAR(default_po_info.ship_to_organization_id));
645: END IF;
646:
647: x_cascaded_table(n).to_organization_id := default_po_info.ship_to_organization_id;

Line 644: asn_debug.put_line('Defaulting PO to_organization_id ' || TO_CHAR(default_po_info.ship_to_organization_id));

640: END IF;
641:
642: IF x_cascaded_table(n).to_organization_id IS NULL THEN
643: IF (g_asn_debug = 'Y') THEN
644: asn_debug.put_line('Defaulting PO to_organization_id ' || TO_CHAR(default_po_info.ship_to_organization_id));
645: END IF;
646:
647: x_cascaded_table(n).to_organization_id := default_po_info.ship_to_organization_id;
648: END IF;

Line 651: IF (g_asn_debug = 'Y') THEN

647: x_cascaded_table(n).to_organization_id := default_po_info.ship_to_organization_id;
648: END IF;
649:
650: IF x_cascaded_table(n).document_shipment_line_num IS NULL THEN
651: IF (g_asn_debug = 'Y') THEN
652: asn_debug.put_line('Defaulting PO shipment_line_num ' || TO_CHAR(default_po_info.shipment_num));
653: END IF;
654:
655: x_cascaded_table(n).document_shipment_line_num := default_po_info.shipment_num;

Line 652: asn_debug.put_line('Defaulting PO shipment_line_num ' || TO_CHAR(default_po_info.shipment_num));

648: END IF;
649:
650: IF x_cascaded_table(n).document_shipment_line_num IS NULL THEN
651: IF (g_asn_debug = 'Y') THEN
652: asn_debug.put_line('Defaulting PO shipment_line_num ' || TO_CHAR(default_po_info.shipment_num));
653: END IF;
654:
655: x_cascaded_table(n).document_shipment_line_num := default_po_info.shipment_num;
656: END IF;

Line 659: IF (g_asn_debug = 'Y') THEN

655: x_cascaded_table(n).document_shipment_line_num := default_po_info.shipment_num;
656: END IF;
657:
658: IF x_cascaded_table(n).routing_header_id IS NULL THEN
659: IF (g_asn_debug = 'Y') THEN
660: asn_debug.put_line('Defaulting PO routing_header_id ' || TO_CHAR(default_po_info.receiving_routing_id));
661: END IF;
662:
663: x_cascaded_table(n).routing_header_id := default_po_info.receiving_routing_id;

Line 660: asn_debug.put_line('Defaulting PO routing_header_id ' || TO_CHAR(default_po_info.receiving_routing_id));

656: END IF;
657:
658: IF x_cascaded_table(n).routing_header_id IS NULL THEN
659: IF (g_asn_debug = 'Y') THEN
660: asn_debug.put_line('Defaulting PO routing_header_id ' || TO_CHAR(default_po_info.receiving_routing_id));
661: END IF;
662:
663: x_cascaded_table(n).routing_header_id := default_po_info.receiving_routing_id;
664: END IF;

Line 668: IF (g_asn_debug = 'Y') THEN

664: END IF;
665:
666: IF x_cascaded_table(n).job_id IS NULL
667: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR' THEN
668: IF (g_asn_debug = 'Y') THEN
669: asn_debug.put_line('Defaulting PO job_id ' ||(default_po_info.job_id));
670: END IF;
671:
672: x_cascaded_table(n).job_id := default_po_info.job_id;

Line 669: asn_debug.put_line('Defaulting PO job_id ' ||(default_po_info.job_id));

665:
666: IF x_cascaded_table(n).job_id IS NULL
667: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR' THEN
668: IF (g_asn_debug = 'Y') THEN
669: asn_debug.put_line('Defaulting PO job_id ' ||(default_po_info.job_id));
670: END IF;
671:
672: x_cascaded_table(n).job_id := default_po_info.job_id;
673: END IF;

Line 677: IF (g_asn_debug = 'Y') THEN

673: END IF;
674: END IF; --} matches if shipments found
675: END IF; --}
676:
677: IF (g_asn_debug = 'Y') THEN
678: asn_debug.put_line('Primary UOM = ' || x_cascaded_table(n).primary_unit_of_measure);
679: END IF;
680:
681: /*

Line 678: asn_debug.put_line('Primary UOM = ' || x_cascaded_table(n).primary_unit_of_measure);

674: END IF; --} matches if shipments found
675: END IF; --}
676:
677: IF (g_asn_debug = 'Y') THEN
678: asn_debug.put_line('Primary UOM = ' || x_cascaded_table(n).primary_unit_of_measure);
679: END IF;
680:
681: /*
682: ** Default the subinventory and locator if they have not been set either through the interface

Line 700: IF (g_asn_debug = 'Y') THEN

696: ELSE
697: x_cascaded_table(n).location_id := x_cascaded_table(n).ship_to_location_id;
698: END IF;
699:
700: IF (g_asn_debug = 'Y') THEN
701: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
702: END IF;
703:
704: IF x_cascaded_table(n).waybill_airbill_num IS NULL

Line 701: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));

697: x_cascaded_table(n).location_id := x_cascaded_table(n).ship_to_location_id;
698: END IF;
699:
700: IF (g_asn_debug = 'Y') THEN
701: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
702: END IF;
703:
704: IF x_cascaded_table(n).waybill_airbill_num IS NULL
705: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN

Line 708: IF (g_asn_debug = 'Y') THEN

704: IF x_cascaded_table(n).waybill_airbill_num IS NULL
705: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
706: x_cascaded_table(n).waybill_airbill_num := x_header_record.header_record.waybill_airbill_num;
707:
708: IF (g_asn_debug = 'Y') THEN
709: asn_debug.put_line('Defaulting from HEADER WAYBILL_AIRBILL_NUM ' || x_cascaded_table(n).waybill_airbill_num);
710: END IF;
711: END IF;
712:

Line 709: asn_debug.put_line('Defaulting from HEADER WAYBILL_AIRBILL_NUM ' || x_cascaded_table(n).waybill_airbill_num);

705: AND x_cascaded_table(n).matching_basis <> 'AMOUNT' THEN
706: x_cascaded_table(n).waybill_airbill_num := x_header_record.header_record.waybill_airbill_num;
707:
708: IF (g_asn_debug = 'Y') THEN
709: asn_debug.put_line('Defaulting from HEADER WAYBILL_AIRBILL_NUM ' || x_cascaded_table(n).waybill_airbill_num);
710: END IF;
711: END IF;
712:
713: x_progress := '010';

Line 715: IF (g_asn_debug = 'Y') THEN

711: END IF;
712:
713: x_progress := '010';
714:
715: IF (g_asn_debug = 'Y') THEN
716: asn_debug.put_line('Exit default_shipment_line');
717: END IF;
718: EXCEPTION
719: WHEN OTHERS THEN

Line 716: asn_debug.put_line('Exit default_shipment_line');

712:
713: x_progress := '010';
714:
715: IF (g_asn_debug = 'Y') THEN
716: asn_debug.put_line('Exit default_shipment_line');
717: END IF;
718: EXCEPTION
719: WHEN OTHERS THEN
720: IF (g_asn_debug = 'Y') THEN

Line 720: IF (g_asn_debug = 'Y') THEN

716: asn_debug.put_line('Exit default_shipment_line');
717: END IF;
718: EXCEPTION
719: WHEN OTHERS THEN
720: IF (g_asn_debug = 'Y') THEN
721: asn_debug.put_line('Exception in default_vendor_rcv_line ');
722: END IF;
723: END default_vendor_rcv_line;
724:

Line 721: asn_debug.put_line('Exception in default_vendor_rcv_line ');

717: END IF;
718: EXCEPTION
719: WHEN OTHERS THEN
720: IF (g_asn_debug = 'Y') THEN
721: asn_debug.put_line('Exception in default_vendor_rcv_line ');
722: END IF;
723: END default_vendor_rcv_line;
724:
725: PROCEDURE validate_vendor_rcv_line(

Line 734: IF (g_asn_debug = 'Y') THEN

730: ) IS
731: l_parent_deliver_to_person_id NUMBER := null; --Bug#6375015
732: l_skip_validation NUMBER := 0; --Bug#6375015
733: BEGIN
734: IF (g_asn_debug = 'Y') THEN
735: asn_debug.put_line('Enter validate_shipment_line');
736: END IF;
737:
738: x_progress := '000';

Line 735: asn_debug.put_line('Enter validate_shipment_line');

731: l_parent_deliver_to_person_id NUMBER := null; --Bug#6375015
732: l_skip_validation NUMBER := 0; --Bug#6375015
733: BEGIN
734: IF (g_asn_debug = 'Y') THEN
735: asn_debug.put_line('Enter validate_shipment_line');
736: END IF;
737:
738: x_progress := '000';
739:

Line 755: IF (g_asn_debug = 'Y') THEN

751:
752: /* lcm changes */
753: validate_lcm_line (x_cascaded_table, n, x_asn_type,x_header_record);
754:
755: IF (g_asn_debug = 'Y') THEN
756: asn_debug.put_line('After lcm line validation : ' || x_cascaded_table(n).error_status);
757: END IF;
758:
759:

Line 756: asn_debug.put_line('After lcm line validation : ' || x_cascaded_table(n).error_status);

752: /* lcm changes */
753: validate_lcm_line (x_cascaded_table, n, x_asn_type,x_header_record);
754:
755: IF (g_asn_debug = 'Y') THEN
756: asn_debug.put_line('After lcm line validation : ' || x_cascaded_table(n).error_status);
757: END IF;
758:
759:
760: /* FPJ SERVICES.

Line 767: IF (g_asn_debug = 'Y') THEN

763: */
764: IF (x_cascaded_table(n).matching_basis <> 'AMOUNT') THEN
765: validate_transaction_uom(x_cascaded_table, n);
766:
767: IF (g_asn_debug = 'Y') THEN
768: asn_debug.put_line('After validate_transaction_uom: ' || x_cascaded_table(n).error_status);
769: END IF;
770:
771: validate_item_info(x_cascaded_table, n);

Line 768: asn_debug.put_line('After validate_transaction_uom: ' || x_cascaded_table(n).error_status);

764: IF (x_cascaded_table(n).matching_basis <> 'AMOUNT') THEN
765: validate_transaction_uom(x_cascaded_table, n);
766:
767: IF (g_asn_debug = 'Y') THEN
768: asn_debug.put_line('After validate_transaction_uom: ' || x_cascaded_table(n).error_status);
769: END IF;
770:
771: validate_item_info(x_cascaded_table, n);
772:

Line 773: IF (g_asn_debug = 'Y') THEN

769: END IF;
770:
771: validate_item_info(x_cascaded_table, n);
772:
773: IF (g_asn_debug = 'Y') THEN
774: asn_debug.put_line('After validate_item_info: ' || x_cascaded_table(n).error_status);
775: END IF;
776:
777: validate_freight_carrier_code(x_cascaded_table, n);

Line 774: asn_debug.put_line('After validate_item_info: ' || x_cascaded_table(n).error_status);

770:
771: validate_item_info(x_cascaded_table, n);
772:
773: IF (g_asn_debug = 'Y') THEN
774: asn_debug.put_line('After validate_item_info: ' || x_cascaded_table(n).error_status);
775: END IF;
776:
777: validate_freight_carrier_code(x_cascaded_table, n);
778:

Line 779: IF (g_asn_debug = 'Y') THEN

775: END IF;
776:
777: validate_freight_carrier_code(x_cascaded_table, n);
778:
779: IF (g_asn_debug = 'Y') THEN
780: asn_debug.put_line('After validate_freight_carrier_code: ' || x_cascaded_table(n).error_status);
781: END IF;
782:
783: validate_subinventory(x_cascaded_table, n);

Line 780: asn_debug.put_line('After validate_freight_carrier_code: ' || x_cascaded_table(n).error_status);

776:
777: validate_freight_carrier_code(x_cascaded_table, n);
778:
779: IF (g_asn_debug = 'Y') THEN
780: asn_debug.put_line('After validate_freight_carrier_code: ' || x_cascaded_table(n).error_status);
781: END IF;
782:
783: validate_subinventory(x_cascaded_table, n);
784:

Line 785: IF (g_asn_debug = 'Y') THEN

781: END IF;
782:
783: validate_subinventory(x_cascaded_table, n);
784:
785: IF (g_asn_debug = 'Y') THEN
786: asn_debug.put_line('After validate_subinventory: ' || x_cascaded_table(n).error_status);
787: END IF;
788:
789: validate_locator(x_cascaded_table, n);

Line 786: asn_debug.put_line('After validate_subinventory: ' || x_cascaded_table(n).error_status);

782:
783: validate_subinventory(x_cascaded_table, n);
784:
785: IF (g_asn_debug = 'Y') THEN
786: asn_debug.put_line('After validate_subinventory: ' || x_cascaded_table(n).error_status);
787: END IF;
788:
789: validate_locator(x_cascaded_table, n);
790:

Line 791: IF (g_asn_debug = 'Y') THEN

787: END IF;
788:
789: validate_locator(x_cascaded_table, n);
790:
791: IF (g_asn_debug = 'Y') THEN
792: asn_debug.put_line('After validate_locator: ' || x_cascaded_table(n).error_status);
793: END IF;
794:
795: validate_deliver_to_loc(x_cascaded_table, n);

Line 792: asn_debug.put_line('After validate_locator: ' || x_cascaded_table(n).error_status);

788:
789: validate_locator(x_cascaded_table, n);
790:
791: IF (g_asn_debug = 'Y') THEN
792: asn_debug.put_line('After validate_locator: ' || x_cascaded_table(n).error_status);
793: END IF;
794:
795: validate_deliver_to_loc(x_cascaded_table, n);
796:

Line 797: IF (g_asn_debug = 'Y') THEN

793: END IF;
794:
795: validate_deliver_to_loc(x_cascaded_table, n);
796:
797: IF (g_asn_debug = 'Y') THEN
798: asn_debug.put_line('After validate_deliver_to_loc: ' || x_cascaded_table(n).error_status);
799: END IF;
800:
801: validate_shipped_qty(x_cascaded_table, n);

Line 798: asn_debug.put_line('After validate_deliver_to_loc: ' || x_cascaded_table(n).error_status);

794:
795: validate_deliver_to_loc(x_cascaded_table, n);
796:
797: IF (g_asn_debug = 'Y') THEN
798: asn_debug.put_line('After validate_deliver_to_loc: ' || x_cascaded_table(n).error_status);
799: END IF;
800:
801: validate_shipped_qty(x_cascaded_table, n);
802:

Line 803: IF (g_asn_debug = 'Y') THEN

799: END IF;
800:
801: validate_shipped_qty(x_cascaded_table, n);
802:
803: IF (g_asn_debug = 'Y') THEN
804: asn_debug.put_line('After validate_shipped_qty: ' || x_cascaded_table(n).error_status);
805: END IF;
806: END IF;
807:

Line 804: asn_debug.put_line('After validate_shipped_qty: ' || x_cascaded_table(n).error_status);

800:
801: validate_shipped_qty(x_cascaded_table, n);
802:
803: IF (g_asn_debug = 'Y') THEN
804: asn_debug.put_line('After validate_shipped_qty: ' || x_cascaded_table(n).error_status);
805: END IF;
806: END IF;
807:
808: validate_dest_type(x_cascaded_table, n);

Line 810: IF (g_asn_debug = 'Y') THEN

806: END IF;
807:
808: validate_dest_type(x_cascaded_table, n);
809:
810: IF (g_asn_debug = 'Y') THEN
811: asn_debug.put_line('After validate_dest_type: ' || x_cascaded_table(n).error_status);
812: END IF;
813:
814: IF (x_cascaded_table(n).transaction_type = 'RECEIVE') THEN

Line 811: asn_debug.put_line('After validate_dest_type: ' || x_cascaded_table(n).error_status);

807:
808: validate_dest_type(x_cascaded_table, n);
809:
810: IF (g_asn_debug = 'Y') THEN
811: asn_debug.put_line('After validate_dest_type: ' || x_cascaded_table(n).error_status);
812: END IF;
813:
814: IF (x_cascaded_table(n).transaction_type = 'RECEIVE') THEN
815: validate_ship_to_loc(x_cascaded_table, n);

Line 817: IF (g_asn_debug = 'Y') THEN

813:
814: IF (x_cascaded_table(n).transaction_type = 'RECEIVE') THEN
815: validate_ship_to_loc(x_cascaded_table, n);
816:
817: IF (g_asn_debug = 'Y') THEN
818: asn_debug.put_line('After validate_ship_to_loc: ' || x_cascaded_table(n).error_status);
819: END IF;
820: END IF;
821:

Line 818: asn_debug.put_line('After validate_ship_to_loc: ' || x_cascaded_table(n).error_status);

814: IF (x_cascaded_table(n).transaction_type = 'RECEIVE') THEN
815: validate_ship_to_loc(x_cascaded_table, n);
816:
817: IF (g_asn_debug = 'Y') THEN
818: asn_debug.put_line('After validate_ship_to_loc: ' || x_cascaded_table(n).error_status);
819: END IF;
820: END IF;
821:
822: /* Bug:6375015

Line 840: IF (g_asn_debug = 'Y') THEN

836: from the parent transaction.
837: */
838: /* code fix for the Bug:6375015 starts */
839: IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
840: IF (g_asn_debug = 'Y') THEN
841: asn_debug.put_line('Inside deliver_to_person_id is null...');
842: END IF;
843:
844: IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN

Line 841: asn_debug.put_line('Inside deliver_to_person_id is null...');

837: */
838: /* code fix for the Bug:6375015 starts */
839: IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
840: IF (g_asn_debug = 'Y') THEN
841: asn_debug.put_line('Inside deliver_to_person_id is null...');
842: END IF;
843:
844: IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
845: --In case of transaction_type DELIVER, we need parent transaction.

Line 849: IF (g_asn_debug = 'Y') THEN

845: --In case of transaction_type DELIVER, we need parent transaction.
846: --If this condition is not added, it will try to defalut the deliver_to_person
847: --of the parent transaction. But form is not behaving like that.
848: --So added this condition to default the deliver_to_person of the source document.
849: IF (g_asn_debug = 'Y') THEN
850: asn_debug.put_line('Transaction type is DELIVER...');
851: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
852: END IF;
853: get_deliver_to_person_from_po(x_cascaded_table,n);

Line 850: asn_debug.put_line('Transaction type is DELIVER...');

846: --If this condition is not added, it will try to defalut the deliver_to_person
847: --of the parent transaction. But form is not behaving like that.
848: --So added this condition to default the deliver_to_person of the source document.
849: IF (g_asn_debug = 'Y') THEN
850: asn_debug.put_line('Transaction type is DELIVER...');
851: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
852: END IF;
853: get_deliver_to_person_from_po(x_cascaded_table,n);
854: IF (g_asn_debug = 'Y') THEN

Line 851: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');

847: --of the parent transaction. But form is not behaving like that.
848: --So added this condition to default the deliver_to_person of the source document.
849: IF (g_asn_debug = 'Y') THEN
850: asn_debug.put_line('Transaction type is DELIVER...');
851: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
852: END IF;
853: get_deliver_to_person_from_po(x_cascaded_table,n);
854: IF (g_asn_debug = 'Y') THEN
855: asn_debug.put_line('After call to get_deliver_to_person_from_po...');

Line 854: IF (g_asn_debug = 'Y') THEN

850: asn_debug.put_line('Transaction type is DELIVER...');
851: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
852: END IF;
853: get_deliver_to_person_from_po(x_cascaded_table,n);
854: IF (g_asn_debug = 'Y') THEN
855: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
856: END IF;
857: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
858: IF (g_asn_debug = 'Y') THEN

Line 855: asn_debug.put_line('After call to get_deliver_to_person_from_po...');

851: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
852: END IF;
853: get_deliver_to_person_from_po(x_cascaded_table,n);
854: IF (g_asn_debug = 'Y') THEN
855: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
856: END IF;
857: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
858: IF (g_asn_debug = 'Y') THEN
859: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);

Line 858: IF (g_asn_debug = 'Y') THEN

854: IF (g_asn_debug = 'Y') THEN
855: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
856: END IF;
857: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
858: IF (g_asn_debug = 'Y') THEN
859: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);
860: END IF;
861: l_parent_deliver_to_person_id := get_deliver_to_person_from_rt(x_cascaded_table,n);
862: --We can safely skip the validate_deliver_to_person call

Line 859: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);

855: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
856: END IF;
857: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
858: IF (g_asn_debug = 'Y') THEN
859: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);
860: END IF;
861: l_parent_deliver_to_person_id := get_deliver_to_person_from_rt(x_cascaded_table,n);
862: --We can safely skip the validate_deliver_to_person call
863: l_skip_validation := 1;

Line 865: IF (g_asn_debug = 'Y') THEN

861: l_parent_deliver_to_person_id := get_deliver_to_person_from_rt(x_cascaded_table,n);
862: --We can safely skip the validate_deliver_to_person call
863: l_skip_validation := 1;
864: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
865: IF (g_asn_debug = 'Y') THEN
866: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
867: END IF;
868: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
869: IF (g_asn_debug = 'Y') THEN

Line 866: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);

862: --We can safely skip the validate_deliver_to_person call
863: l_skip_validation := 1;
864: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
865: IF (g_asn_debug = 'Y') THEN
866: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
867: END IF;
868: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
869: IF (g_asn_debug = 'Y') THEN
870: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);

Line 869: IF (g_asn_debug = 'Y') THEN

865: IF (g_asn_debug = 'Y') THEN
866: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
867: END IF;
868: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
869: IF (g_asn_debug = 'Y') THEN
870: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);
871: END IF;
872: l_parent_deliver_to_person_id := get_deliver_to_person_from_rti(x_cascaded_table,n);
873: --We can safely skip the validate_deliver_to_person call

Line 870: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);

866: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
867: END IF;
868: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
869: IF (g_asn_debug = 'Y') THEN
870: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);
871: END IF;
872: l_parent_deliver_to_person_id := get_deliver_to_person_from_rti(x_cascaded_table,n);
873: --We can safely skip the validate_deliver_to_person call
874: l_skip_validation := 1;

Line 876: IF (g_asn_debug = 'Y') THEN

872: l_parent_deliver_to_person_id := get_deliver_to_person_from_rti(x_cascaded_table,n);
873: --We can safely skip the validate_deliver_to_person call
874: l_skip_validation := 1;
875: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
876: IF (g_asn_debug = 'Y') THEN
877: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
878: END IF;
879: ELSE--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
880: IF (g_asn_debug = 'Y') THEN

Line 877: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);

873: --We can safely skip the validate_deliver_to_person call
874: l_skip_validation := 1;
875: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
876: IF (g_asn_debug = 'Y') THEN
877: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
878: END IF;
879: ELSE--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
880: IF (g_asn_debug = 'Y') THEN
881: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');

Line 880: IF (g_asn_debug = 'Y') THEN

876: IF (g_asn_debug = 'Y') THEN
877: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
878: END IF;
879: ELSE--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
880: IF (g_asn_debug = 'Y') THEN
881: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
882: END IF;
883: get_deliver_to_person_from_po(x_cascaded_table,n);
884: IF (g_asn_debug = 'Y') THEN

Line 881: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');

877: asn_debug.put_line('deliver_to_person_is is set to :'||l_parent_deliver_to_person_id);
878: END IF;
879: ELSE--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
880: IF (g_asn_debug = 'Y') THEN
881: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
882: END IF;
883: get_deliver_to_person_from_po(x_cascaded_table,n);
884: IF (g_asn_debug = 'Y') THEN
885: asn_debug.put_line('After call to get_deliver_to_person_from_po...');

Line 884: IF (g_asn_debug = 'Y') THEN

880: IF (g_asn_debug = 'Y') THEN
881: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
882: END IF;
883: get_deliver_to_person_from_po(x_cascaded_table,n);
884: IF (g_asn_debug = 'Y') THEN
885: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
886: END IF;
887: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
888: ELSE--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN

Line 885: asn_debug.put_line('After call to get_deliver_to_person_from_po...');

881: asn_debug.put_line('defaulting deliver_to_person_id from source document PO');
882: END IF;
883: get_deliver_to_person_from_po(x_cascaded_table,n);
884: IF (g_asn_debug = 'Y') THEN
885: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
886: END IF;
887: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
888: ELSE--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
889: IF (g_asn_debug = 'Y') THEN

Line 889: IF (g_asn_debug = 'Y') THEN

885: asn_debug.put_line('After call to get_deliver_to_person_from_po...');
886: END IF;
887: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
888: ELSE--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
889: IF (g_asn_debug = 'Y') THEN
890: asn_debug.put_line('Inside deliver_to_person_id is not null and the value is :'||x_cascaded_table(n).deliver_to_person_id);
891: END IF;
892:
893: IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN

Line 890: asn_debug.put_line('Inside deliver_to_person_id is not null and the value is :'||x_cascaded_table(n).deliver_to_person_id);

886: END IF;
887: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
888: ELSE--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
889: IF (g_asn_debug = 'Y') THEN
890: asn_debug.put_line('Inside deliver_to_person_id is not null and the value is :'||x_cascaded_table(n).deliver_to_person_id);
891: END IF;
892:
893: IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
894: --In forms user can select any active deliver_to_person for DELIVER transaction.

Line 899: IF (g_asn_debug = 'Y') THEN

895: --In case of transaction_type DELIVER, we need parent transaction.
896: --If this condition is not added, it will validate against the deliver_to_person mentioned
897: --the parent RECEIVE transaction. But form is not behaving like that.
898: --So, added this condition to skip deliver_to_person validation against parent txn
899: IF (g_asn_debug = 'Y') THEN
900: asn_debug.put_line('Transaction type is DELIVER...');
901: END IF;
902: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
903: IF (g_asn_debug = 'Y') THEN

Line 900: asn_debug.put_line('Transaction type is DELIVER...');

896: --If this condition is not added, it will validate against the deliver_to_person mentioned
897: --the parent RECEIVE transaction. But form is not behaving like that.
898: --So, added this condition to skip deliver_to_person validation against parent txn
899: IF (g_asn_debug = 'Y') THEN
900: asn_debug.put_line('Transaction type is DELIVER...');
901: END IF;
902: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
903: IF (g_asn_debug = 'Y') THEN
904: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);

Line 903: IF (g_asn_debug = 'Y') THEN

899: IF (g_asn_debug = 'Y') THEN
900: asn_debug.put_line('Transaction type is DELIVER...');
901: END IF;
902: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
903: IF (g_asn_debug = 'Y') THEN
904: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);
905: END IF;
906: l_parent_deliver_to_person_id := get_deliver_to_person_from_rt(x_cascaded_table,n);
907: --We can safely skip the validate_deliver_to_person call, validation against

Line 904: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);

900: asn_debug.put_line('Transaction type is DELIVER...');
901: END IF;
902: ELSIF (x_cascaded_table(n).parent_transaction_id is not null) THEN
903: IF (g_asn_debug = 'Y') THEN
904: asn_debug.put_line('Inside parent_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_transaction_id);
905: END IF;
906: l_parent_deliver_to_person_id := get_deliver_to_person_from_rt(x_cascaded_table,n);
907: --We can safely skip the validate_deliver_to_person call, validation against
908: --parent transaction is handled here itself.

Line 911: IF (g_asn_debug = 'Y') THEN

907: --We can safely skip the validate_deliver_to_person call, validation against
908: --parent transaction is handled here itself.
909: l_skip_validation := 1;
910: IF nvl(l_parent_deliver_to_person_id,-99) <> x_cascaded_table(n).deliver_to_person_id THEN
911: IF (g_asn_debug = 'Y') THEN
912: asn_debug.put_line('RTI.deliver_to_person_id is different to that of parent txn...');
913: END IF;
914: --deliver_to_person_id mismatches with the parent txn's deliver_to_person, so clear it off
915: x_cascaded_table(n).deliver_to_person_id := null;

Line 912: asn_debug.put_line('RTI.deliver_to_person_id is different to that of parent txn...');

908: --parent transaction is handled here itself.
909: l_skip_validation := 1;
910: IF nvl(l_parent_deliver_to_person_id,-99) <> x_cascaded_table(n).deliver_to_person_id THEN
911: IF (g_asn_debug = 'Y') THEN
912: asn_debug.put_line('RTI.deliver_to_person_id is different to that of parent txn...');
913: END IF;
914: --deliver_to_person_id mismatches with the parent txn's deliver_to_person, so clear it off
915: x_cascaded_table(n).deliver_to_person_id := null;
916: x_cascaded_table(n).deliver_to_person_name := null;

Line 920: IF (g_asn_debug = 'Y') THEN

916: x_cascaded_table(n).deliver_to_person_name := null;
917:
918: --set the deliver_to_person_id to that of parent transaction
919: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
920: IF (g_asn_debug = 'Y') THEN
921: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');
922: END IF;
923: END IF;
924: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN

Line 921: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');

917:
918: --set the deliver_to_person_id to that of parent transaction
919: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
920: IF (g_asn_debug = 'Y') THEN
921: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');
922: END IF;
923: END IF;
924: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
925: IF (g_asn_debug = 'Y') THEN

Line 925: IF (g_asn_debug = 'Y') THEN

921: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');
922: END IF;
923: END IF;
924: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
925: IF (g_asn_debug = 'Y') THEN
926: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);
927: END IF;
928: l_parent_deliver_to_person_id := get_deliver_to_person_from_rti(x_cascaded_table,n);
929: --We can safely skip the validate_deliver_to_person call, validation against

Line 926: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);

922: END IF;
923: END IF;
924: ELSIF (x_cascaded_table(n).parent_interface_txn_id is not null) THEN
925: IF (g_asn_debug = 'Y') THEN
926: asn_debug.put_line('Inside parent_interface_transaction_id.is not null and the value is:'||x_cascaded_table(n).parent_interface_txn_id);
927: END IF;
928: l_parent_deliver_to_person_id := get_deliver_to_person_from_rti(x_cascaded_table,n);
929: --We can safely skip the validate_deliver_to_person call, validation against
930: --parent transaction is handled here itself.

Line 933: IF (g_asn_debug = 'Y') THEN

929: --We can safely skip the validate_deliver_to_person call, validation against
930: --parent transaction is handled here itself.
931: l_skip_validation := 1;
932: IF nvl(l_parent_deliver_to_person_id,-99) <> x_cascaded_table(n).deliver_to_person_id THEN
933: IF (g_asn_debug = 'Y') THEN
934: asn_debug.put_line('RTI.deliver_to_person_id is different to that of parent txn...');
935: END IF;
936: --deliver_to_person_id mismatches with the parent txn's deliver_to_person, so clear it off
937: x_cascaded_table(n).deliver_to_person_id := null;

Line 934: asn_debug.put_line('RTI.deliver_to_person_id is different to that of parent txn...');

930: --parent transaction is handled here itself.
931: l_skip_validation := 1;
932: IF nvl(l_parent_deliver_to_person_id,-99) <> x_cascaded_table(n).deliver_to_person_id THEN
933: IF (g_asn_debug = 'Y') THEN
934: asn_debug.put_line('RTI.deliver_to_person_id is different to that of parent txn...');
935: END IF;
936: --deliver_to_person_id mismatches with the parent txn's deliver_to_person, so clear it off
937: x_cascaded_table(n).deliver_to_person_id := null;
938: x_cascaded_table(n).deliver_to_person_name := null;

Line 943: IF (g_asn_debug = 'Y') THEN

939:
940: --set the deliver_to_person_id to that of parent transaction
941: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
942:
943: IF (g_asn_debug = 'Y') THEN
944: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');
945: END IF;
946: END IF;
947: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN

Line 944: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');

940: --set the deliver_to_person_id to that of parent transaction
941: x_cascaded_table(n).deliver_to_person_id := l_parent_deliver_to_person_id;
942:
943: IF (g_asn_debug = 'Y') THEN
944: asn_debug.put_line('deliver_to_person_is is set to that of parent RT txn');
945: END IF;
946: END IF;
947: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
948: END IF;--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN

Line 951: IF (g_asn_debug = 'Y') THEN

947: END IF;--IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
948: END IF;--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
949:
950: IF l_skip_validation = 0 THEN
951: IF (g_asn_debug = 'Y') THEN
952: asn_debug.put_line('validate_deliver_to_person is called');
953: END IF;
954: validate_deliver_to_person(x_cascaded_table, n);
955: IF (g_asn_debug = 'Y') THEN

Line 952: asn_debug.put_line('validate_deliver_to_person is called');

948: END IF;--IF (x_cascaded_table(n).deliver_to_person_id is null) THEN
949:
950: IF l_skip_validation = 0 THEN
951: IF (g_asn_debug = 'Y') THEN
952: asn_debug.put_line('validate_deliver_to_person is called');
953: END IF;
954: validate_deliver_to_person(x_cascaded_table, n);
955: IF (g_asn_debug = 'Y') THEN
956: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);

Line 955: IF (g_asn_debug = 'Y') THEN

951: IF (g_asn_debug = 'Y') THEN
952: asn_debug.put_line('validate_deliver_to_person is called');
953: END IF;
954: validate_deliver_to_person(x_cascaded_table, n);
955: IF (g_asn_debug = 'Y') THEN
956: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);
957: END IF;
958: ELSE
959: IF (g_asn_debug = 'Y') THEN

Line 956: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);

952: asn_debug.put_line('validate_deliver_to_person is called');
953: END IF;
954: validate_deliver_to_person(x_cascaded_table, n);
955: IF (g_asn_debug = 'Y') THEN
956: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);
957: END IF;
958: ELSE
959: IF (g_asn_debug = 'Y') THEN
960: asn_debug.put_line('call to validate_deliver_to_person is skipped');

Line 959: IF (g_asn_debug = 'Y') THEN

955: IF (g_asn_debug = 'Y') THEN
956: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);
957: END IF;
958: ELSE
959: IF (g_asn_debug = 'Y') THEN
960: asn_debug.put_line('call to validate_deliver_to_person is skipped');
961: END IF;
962: END IF;/* code fix for the Bug:6375015 ends */
963:

Line 960: asn_debug.put_line('call to validate_deliver_to_person is skipped');

956: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);
957: END IF;
958: ELSE
959: IF (g_asn_debug = 'Y') THEN
960: asn_debug.put_line('call to validate_deliver_to_person is skipped');
961: END IF;
962: END IF;/* code fix for the Bug:6375015 ends */
963:
964: IF (g_asn_debug = 'Y') THEN

Line 964: IF (g_asn_debug = 'Y') THEN

960: asn_debug.put_line('call to validate_deliver_to_person is skipped');
961: END IF;
962: END IF;/* code fix for the Bug:6375015 ends */
963:
964: IF (g_asn_debug = 'Y') THEN
965: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);
966: END IF;
967:
968: validate_routing_record(x_cascaded_table, n);

Line 965: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);

961: END IF;
962: END IF;/* code fix for the Bug:6375015 ends */
963:
964: IF (g_asn_debug = 'Y') THEN
965: asn_debug.put_line('After validate_deliver_to_person: ' || x_cascaded_table(n).error_status);
966: END IF;
967:
968: validate_routing_record(x_cascaded_table, n);
969:

Line 970: IF (g_asn_debug = 'Y') THEN

966: END IF;
967:
968: validate_routing_record(x_cascaded_table, n);
969:
970: IF (g_asn_debug = 'Y') THEN
971: asn_debug.put_line('After validate_routing_record: ' || x_cascaded_table(n).error_status);
972: END IF;
973:
974: validate_tax_code(x_cascaded_table,

Line 971: asn_debug.put_line('After validate_routing_record: ' || x_cascaded_table(n).error_status);

967:
968: validate_routing_record(x_cascaded_table, n);
969:
970: IF (g_asn_debug = 'Y') THEN
971: asn_debug.put_line('After validate_routing_record: ' || x_cascaded_table(n).error_status);
972: END IF;
973:
974: validate_tax_code(x_cascaded_table,
975: n,

Line 979: IF (g_asn_debug = 'Y') THEN

975: n,
976: x_asn_type
977: ); /* Bug3454491 (1) */
978:
979: IF (g_asn_debug = 'Y') THEN
980: asn_debug.put_line('After validate_tax_code: ' || x_cascaded_table(n).error_status);
981: END IF;
982:
983: validate_country_of_origin(x_cascaded_table, n);

Line 980: asn_debug.put_line('After validate_tax_code: ' || x_cascaded_table(n).error_status);

976: x_asn_type
977: ); /* Bug3454491 (1) */
978:
979: IF (g_asn_debug = 'Y') THEN
980: asn_debug.put_line('After validate_tax_code: ' || x_cascaded_table(n).error_status);
981: END IF;
982:
983: validate_country_of_origin(x_cascaded_table, n);
984:

Line 985: IF (g_asn_debug = 'Y') THEN

981: END IF;
982:
983: validate_country_of_origin(x_cascaded_table, n);
984:
985: IF (g_asn_debug = 'Y') THEN
986: asn_debug.put_line('After validate_country_of_origin: ' || x_cascaded_table(n).error_status);
987: END IF;
988:
989: validate_asl(x_cascaded_table, n);

Line 986: asn_debug.put_line('After validate_country_of_origin: ' || x_cascaded_table(n).error_status);

982:
983: validate_country_of_origin(x_cascaded_table, n);
984:
985: IF (g_asn_debug = 'Y') THEN
986: asn_debug.put_line('After validate_country_of_origin: ' || x_cascaded_table(n).error_status);
987: END IF;
988:
989: validate_asl(x_cascaded_table, n);
990:

Line 991: IF (g_asn_debug = 'Y') THEN

987: END IF;
988:
989: validate_asl(x_cascaded_table, n);
990:
991: IF (g_asn_debug = 'Y') THEN
992: asn_debug.put_line('After validate_asl: ' || x_cascaded_table(n).error_status);
993: END IF;
994:
995: validate_ref_integrity(x_cascaded_table,

Line 992: asn_debug.put_line('After validate_asl: ' || x_cascaded_table(n).error_status);

988:
989: validate_asl(x_cascaded_table, n);
990:
991: IF (g_asn_debug = 'Y') THEN
992: asn_debug.put_line('After validate_asl: ' || x_cascaded_table(n).error_status);
993: END IF;
994:
995: validate_ref_integrity(x_cascaded_table,
996: n,

Line 1000: IF (g_asn_debug = 'Y') THEN

996: n,
997: x_header_record
998: );
999:
1000: IF (g_asn_debug = 'Y') THEN
1001: asn_debug.put_line('After validate_ref_integrity: ' || x_cascaded_table(n).error_status);
1002: END IF;
1003:
1004: exchange_sub_items(x_cascaded_table, n);

Line 1001: asn_debug.put_line('After validate_ref_integrity: ' || x_cascaded_table(n).error_status);

997: x_header_record
998: );
999:
1000: IF (g_asn_debug = 'Y') THEN
1001: asn_debug.put_line('After validate_ref_integrity: ' || x_cascaded_table(n).error_status);
1002: END IF;
1003:
1004: exchange_sub_items(x_cascaded_table, n);
1005:

Line 1006: IF (g_asn_debug = 'Y') THEN

1002: END IF;
1003:
1004: exchange_sub_items(x_cascaded_table, n);
1005:
1006: IF (g_asn_debug = 'Y') THEN
1007: asn_debug.put_line('After exchange_sub_items: ' || x_cascaded_table(n).error_status);
1008: END IF;
1009:
1010: validate_consigned_inventory(x_cascaded_table,

Line 1007: asn_debug.put_line('After exchange_sub_items: ' || x_cascaded_table(n).error_status);

1003:
1004: exchange_sub_items(x_cascaded_table, n);
1005:
1006: IF (g_asn_debug = 'Y') THEN
1007: asn_debug.put_line('After exchange_sub_items: ' || x_cascaded_table(n).error_status);
1008: END IF;
1009:
1010: validate_consigned_inventory(x_cascaded_table,
1011: n,

Line 1015: IF (g_asn_debug = 'Y') THEN

1011: n,
1012: x_asn_type
1013: ); /* Bug3454491 (2) */
1014:
1015: IF (g_asn_debug = 'Y') THEN
1016: asn_debug.put_line('After validate_consigned_inventory: ' || x_cascaded_table(n).error_status);
1017: END IF;
1018:
1019: validate_inspection_status(x_cascaded_table, n);

Line 1016: asn_debug.put_line('After validate_consigned_inventory: ' || x_cascaded_table(n).error_status);

1012: x_asn_type
1013: ); /* Bug3454491 (2) */
1014:
1015: IF (g_asn_debug = 'Y') THEN
1016: asn_debug.put_line('After validate_consigned_inventory: ' || x_cascaded_table(n).error_status);
1017: END IF;
1018:
1019: validate_inspection_status(x_cascaded_table, n);
1020:

Line 1021: IF (g_asn_debug = 'Y') THEN

1017: END IF;
1018:
1019: validate_inspection_status(x_cascaded_table, n);
1020:
1021: IF (g_asn_debug = 'Y') THEN
1022: asn_debug.put_line('After validate_inspection_status: ' || x_cascaded_table(n).error_status);
1023: END IF;
1024:
1025: validate_transaction_type(x_cascaded_table, n);

Line 1022: asn_debug.put_line('After validate_inspection_status: ' || x_cascaded_table(n).error_status);

1018:
1019: validate_inspection_status(x_cascaded_table, n);
1020:
1021: IF (g_asn_debug = 'Y') THEN
1022: asn_debug.put_line('After validate_inspection_status: ' || x_cascaded_table(n).error_status);
1023: END IF;
1024:
1025: validate_transaction_type(x_cascaded_table, n);
1026:

Line 1027: IF (g_asn_debug = 'Y') THEN

1023: END IF;
1024:
1025: validate_transaction_type(x_cascaded_table, n);
1026:
1027: IF (g_asn_debug = 'Y') THEN
1028: asn_debug.put_line('After validate_transaction_type: ' || x_cascaded_table(n).error_status);
1029: END IF;
1030:
1031: /** OPM change Bug# 3061052**/

Line 1028: asn_debug.put_line('After validate_transaction_type: ' || x_cascaded_table(n).error_status);

1024:
1025: validate_transaction_type(x_cascaded_table, n);
1026:
1027: IF (g_asn_debug = 'Y') THEN
1028: asn_debug.put_line('After validate_transaction_type: ' || x_cascaded_table(n).error_status);
1029: END IF;
1030:
1031: /** OPM change Bug# 3061052**/
1032: validate_opm_attributes(x_cascaded_table, n);

Line 1034: IF (g_asn_debug = 'Y') THEN

1030:
1031: /** OPM change Bug# 3061052**/
1032: validate_opm_attributes(x_cascaded_table, n);
1033:
1034: IF (g_asn_debug = 'Y') THEN
1035: asn_debug.put_line('After validate_opm_attributes: ' || x_cascaded_table(n).error_status);
1036: END IF;
1037:
1038: /* If destination_type_code is inventory then we need to make

Line 1035: asn_debug.put_line('After validate_opm_attributes: ' || x_cascaded_table(n).error_status);

1031: /** OPM change Bug# 3061052**/
1032: validate_opm_attributes(x_cascaded_table, n);
1033:
1034: IF (g_asn_debug = 'Y') THEN
1035: asn_debug.put_line('After validate_opm_attributes: ' || x_cascaded_table(n).error_status);
1036: END IF;
1037:
1038: /* If destination_type_code is inventory then we need to make
1039: * sure that we can correct this qty since it might have been

Line 1045: IF (g_asn_debug = 'Y') THEN

1041: */
1042: IF (x_cascaded_table(n).destination_type_code = 'INVENTORY') THEN --{
1043: rcv_roi_return.derive_inv_qty(x_cascaded_table, n);
1044:
1045: IF (g_asn_debug = 'Y') THEN
1046: asn_debug.put_line('After derive_inv_qty: ' || x_cascaded_table(n).error_status);
1047: END IF;
1048: END IF; --}
1049:

Line 1046: asn_debug.put_line('After derive_inv_qty: ' || x_cascaded_table(n).error_status);

1042: IF (x_cascaded_table(n).destination_type_code = 'INVENTORY') THEN --{
1043: rcv_roi_return.derive_inv_qty(x_cascaded_table, n);
1044:
1045: IF (g_asn_debug = 'Y') THEN
1046: asn_debug.put_line('After derive_inv_qty: ' || x_cascaded_table(n).error_status);
1047: END IF;
1048: END IF; --}
1049:
1050: IF (g_asn_debug = 'Y') THEN

Line 1050: IF (g_asn_debug = 'Y') THEN

1046: asn_debug.put_line('After derive_inv_qty: ' || x_cascaded_table(n).error_status);
1047: END IF;
1048: END IF; --}
1049:
1050: IF (g_asn_debug = 'Y') THEN
1051: asn_debug.put_line('Leave validate_vendor_rcv_line: ' || x_cascaded_table(n).error_status || ' ' || x_cascaded_table(n).error_message);
1052: END IF;
1053: EXCEPTION
1054: WHEN OTHERS THEN

Line 1051: asn_debug.put_line('Leave validate_vendor_rcv_line: ' || x_cascaded_table(n).error_status || ' ' || x_cascaded_table(n).error_message);

1047: END IF;
1048: END IF; --}
1049:
1050: IF (g_asn_debug = 'Y') THEN
1051: asn_debug.put_line('Leave validate_vendor_rcv_line: ' || x_cascaded_table(n).error_status || ' ' || x_cascaded_table(n).error_message);
1052: END IF;
1053: EXCEPTION
1054: WHEN OTHERS THEN
1055: IF (g_asn_debug = 'Y') THEN

Line 1055: IF (g_asn_debug = 'Y') THEN

1051: asn_debug.put_line('Leave validate_vendor_rcv_line: ' || x_cascaded_table(n).error_status || ' ' || x_cascaded_table(n).error_message);
1052: END IF;
1053: EXCEPTION
1054: WHEN OTHERS THEN
1055: IF (g_asn_debug = 'Y') THEN
1056: asn_debug.put_line('Unexpected exception in validate_vendor_rcv_line: ' || SQLERRM);
1057: END IF;
1058: END validate_vendor_rcv_line;
1059:

Line 1056: asn_debug.put_line('Unexpected exception in validate_vendor_rcv_line: ' || SQLERRM);

1052: END IF;
1053: EXCEPTION
1054: WHEN OTHERS THEN
1055: IF (g_asn_debug = 'Y') THEN
1056: asn_debug.put_line('Unexpected exception in validate_vendor_rcv_line: ' || SQLERRM);
1057: END IF;
1058: END validate_vendor_rcv_line;
1059:
1060: PROCEDURE validate_amt_based_rcv_line(

Line 1067: IF (g_asn_debug = 'Y') THEN

1063: x_asn_type IN rcv_headers_interface.asn_type%TYPE,
1064: x_header_record IN rcv_roi_preprocessor.header_rec_type
1065: ) IS
1066: BEGIN
1067: IF (g_asn_debug = 'Y') THEN
1068: asn_debug.put_line('Enter validate_amt_based_rcv_line');
1069: END IF;
1070:
1071: x_progress := '000';

Line 1068: asn_debug.put_line('Enter validate_amt_based_rcv_line');

1064: x_header_record IN rcv_roi_preprocessor.header_rec_type
1065: ) IS
1066: BEGIN
1067: IF (g_asn_debug = 'Y') THEN
1068: asn_debug.put_line('Enter validate_amt_based_rcv_line');
1069: END IF;
1070:
1071: x_progress := '000';
1072: validate_transaction_date(x_cascaded_table, n);

Line 1094: IF (g_asn_debug = 'Y') THEN

1090: n,
1091: x_header_record
1092: );
1093:
1094: IF (g_asn_debug = 'Y') THEN
1095: asn_debug.put_line('After validate_ref_integrity');
1096: END IF;
1097:
1098: x_progress := '060';

Line 1095: asn_debug.put_line('After validate_ref_integrity');

1091: x_header_record
1092: );
1093:
1094: IF (g_asn_debug = 'Y') THEN
1095: asn_debug.put_line('After validate_ref_integrity');
1096: END IF;
1097:
1098: x_progress := '060';
1099: validate_transaction_type(x_cascaded_table, n);

Line 1101: IF (g_asn_debug = 'Y') THEN

1097:
1098: x_progress := '060';
1099: validate_transaction_type(x_cascaded_table, n);
1100:
1101: IF (g_asn_debug = 'Y') THEN
1102: asn_debug.put_line('After validate_transaction_type');
1103: END IF;
1104:
1105: x_progress := '070';

Line 1102: asn_debug.put_line('After validate_transaction_type');

1098: x_progress := '060';
1099: validate_transaction_type(x_cascaded_table, n);
1100:
1101: IF (g_asn_debug = 'Y') THEN
1102: asn_debug.put_line('After validate_transaction_type');
1103: END IF;
1104:
1105: x_progress := '070';
1106: validate_temp_labor_info(x_cascaded_table,

Line 1111: IF (g_asn_debug = 'Y') THEN

1107: n,
1108: x_header_record
1109: );
1110:
1111: IF (g_asn_debug = 'Y') THEN
1112: asn_debug.put_line('After validate_temp_labour_info');
1113: END IF;
1114:
1115: x_progress := '080';

Line 1112: asn_debug.put_line('After validate_temp_labour_info');

1108: x_header_record
1109: );
1110:
1111: IF (g_asn_debug = 'Y') THEN
1112: asn_debug.put_line('After validate_temp_labour_info');
1113: END IF;
1114:
1115: x_progress := '080';
1116: validate_amount(x_cascaded_table,

Line 1121: IF (g_asn_debug = 'Y') THEN

1117: n,
1118: x_header_record
1119: );
1120:
1121: IF (g_asn_debug = 'Y') THEN
1122: asn_debug.put_line('After validate_amount');
1123: END IF;
1124: EXCEPTION
1125: WHEN OTHERS THEN

Line 1122: asn_debug.put_line('After validate_amount');

1118: x_header_record
1119: );
1120:
1121: IF (g_asn_debug = 'Y') THEN
1122: asn_debug.put_line('After validate_amount');
1123: END IF;
1124: EXCEPTION
1125: WHEN OTHERS THEN
1126: IF (g_asn_debug = 'Y') THEN

Line 1126: IF (g_asn_debug = 'Y') THEN

1122: asn_debug.put_line('After validate_amount');
1123: END IF;
1124: EXCEPTION
1125: WHEN OTHERS THEN
1126: IF (g_asn_debug = 'Y') THEN
1127: asn_debug.put_line('Exception at ' || x_progress);
1128: asn_debug.put_line(SQLERRM);
1129: asn_debug.put_line('Exit validate_amt_based_rcv_line');
1130: END IF;

Line 1127: asn_debug.put_line('Exception at ' || x_progress);

1123: END IF;
1124: EXCEPTION
1125: WHEN OTHERS THEN
1126: IF (g_asn_debug = 'Y') THEN
1127: asn_debug.put_line('Exception at ' || x_progress);
1128: asn_debug.put_line(SQLERRM);
1129: asn_debug.put_line('Exit validate_amt_based_rcv_line');
1130: END IF;
1131: END validate_amt_based_rcv_line;

Line 1128: asn_debug.put_line(SQLERRM);

1124: EXCEPTION
1125: WHEN OTHERS THEN
1126: IF (g_asn_debug = 'Y') THEN
1127: asn_debug.put_line('Exception at ' || x_progress);
1128: asn_debug.put_line(SQLERRM);
1129: asn_debug.put_line('Exit validate_amt_based_rcv_line');
1130: END IF;
1131: END validate_amt_based_rcv_line;
1132:

Line 1129: asn_debug.put_line('Exit validate_amt_based_rcv_line');

1125: WHEN OTHERS THEN
1126: IF (g_asn_debug = 'Y') THEN
1127: asn_debug.put_line('Exception at ' || x_progress);
1128: asn_debug.put_line(SQLERRM);
1129: asn_debug.put_line('Exit validate_amt_based_rcv_line');
1130: END IF;
1131: END validate_amt_based_rcv_line;
1132:
1133: PROCEDURE derive_ship_to_org_info(

Line 1142: asn_debug.put_line('error derive_ship_to_org_info' || x_cascaded_table(n).error_status);

1138: ship_to_org_record rcv_shipment_object_sv.organization_id_record_type;
1139: x_to_organization_code VARCHAR2(5);
1140: BEGIN
1141: -- default org from header in case it is null at the line level
1142: asn_debug.put_line('error derive_ship_to_org_info' || x_cascaded_table(n).error_status);
1143: x_cascaded_table(n).error_status := 'S';
1144: asn_debug.put_line('the to_org_code = ' || x_cascaded_table(n).to_organization_code);
1145:
1146: IF x_cascaded_table(n).to_organization_code IS NULL

Line 1144: asn_debug.put_line('the to_org_code = ' || x_cascaded_table(n).to_organization_code);

1140: BEGIN
1141: -- default org from header in case it is null at the line level
1142: asn_debug.put_line('error derive_ship_to_org_info' || x_cascaded_table(n).error_status);
1143: x_cascaded_table(n).error_status := 'S';
1144: asn_debug.put_line('the to_org_code = ' || x_cascaded_table(n).to_organization_code);
1145:
1146: IF x_cascaded_table(n).to_organization_code IS NULL
1147: AND x_cascaded_table(n).error_status IN('S', 'W') THEN
1148: asn_debug.put_line('Attempting to default the org from the ship to location');

Line 1148: asn_debug.put_line('Attempting to default the org from the ship to location');

1144: asn_debug.put_line('the to_org_code = ' || x_cascaded_table(n).to_organization_code);
1145:
1146: IF x_cascaded_table(n).to_organization_code IS NULL
1147: AND x_cascaded_table(n).error_status IN('S', 'W') THEN
1148: asn_debug.put_line('Attempting to default the org from the ship to location');
1149:
1150: IF (g_asn_debug = 'Y') THEN
1151: asn_debug.put_line('Attempting to default the org from the ship to location');
1152: END IF;

Line 1150: IF (g_asn_debug = 'Y') THEN

1146: IF x_cascaded_table(n).to_organization_code IS NULL
1147: AND x_cascaded_table(n).error_status IN('S', 'W') THEN
1148: asn_debug.put_line('Attempting to default the org from the ship to location');
1149:
1150: IF (g_asn_debug = 'Y') THEN
1151: asn_debug.put_line('Attempting to default the org from the ship to location');
1152: END IF;
1153:
1154: IF (x_cascaded_table(n).ship_to_location_code IS NOT NULL) THEN

Line 1151: asn_debug.put_line('Attempting to default the org from the ship to location');

1147: AND x_cascaded_table(n).error_status IN('S', 'W') THEN
1148: asn_debug.put_line('Attempting to default the org from the ship to location');
1149:
1150: IF (g_asn_debug = 'Y') THEN
1151: asn_debug.put_line('Attempting to default the org from the ship to location');
1152: END IF;
1153:
1154: IF (x_cascaded_table(n).ship_to_location_code IS NOT NULL) THEN
1155: SELECT MAX(org.organization_code)

Line 1164: IF (g_asn_debug = 'Y') THEN

1160: AND hl.inventory_organization_id = org.organization_id;
1161:
1162: x_cascaded_table(n).to_organization_code := x_to_organization_code;
1163:
1164: IF (g_asn_debug = 'Y') THEN
1165: asn_debug.put_line('Set Org Code using location code = ' || x_cascaded_table(n).to_organization_code);
1166: END IF;
1167: END IF;
1168:

Line 1165: asn_debug.put_line('Set Org Code using location code = ' || x_cascaded_table(n).to_organization_code);

1161:
1162: x_cascaded_table(n).to_organization_code := x_to_organization_code;
1163:
1164: IF (g_asn_debug = 'Y') THEN
1165: asn_debug.put_line('Set Org Code using location code = ' || x_cascaded_table(n).to_organization_code);
1166: END IF;
1167: END IF;
1168:
1169: IF ( x_cascaded_table(n).to_organization_code IS NULL

Line 1171: IF (g_asn_debug = 'Y') THEN

1167: END IF;
1168:
1169: IF ( x_cascaded_table(n).to_organization_code IS NULL
1170: AND x_header_record.header_record.ship_to_organization_code IS NOT NULL) THEN
1171: IF (g_asn_debug = 'Y') THEN
1172: asn_debug.put_line('Will default org change DUH to ' || x_header_record.header_record.ship_to_organization_code);
1173: END IF;
1174:
1175: x_cascaded_table(n).to_organization_code := x_header_record.header_record.ship_to_organization_code;

Line 1172: asn_debug.put_line('Will default org change DUH to ' || x_header_record.header_record.ship_to_organization_code);

1168:
1169: IF ( x_cascaded_table(n).to_organization_code IS NULL
1170: AND x_header_record.header_record.ship_to_organization_code IS NOT NULL) THEN
1171: IF (g_asn_debug = 'Y') THEN
1172: asn_debug.put_line('Will default org change DUH to ' || x_header_record.header_record.ship_to_organization_code);
1173: END IF;
1174:
1175: x_cascaded_table(n).to_organization_code := x_header_record.header_record.ship_to_organization_code;
1176: END IF;

Line 1181: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);

1177: END IF;
1178:
1179: -- call derivation procedures if conditions are met
1180:
1181: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
1182: asn_debug.put_line('to_organization_code ' || x_cascaded_table(n).to_organization_code);
1183:
1184: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1185: AND ( x_cascaded_table(n).to_organization_id IS NULL

Line 1182: asn_debug.put_line('to_organization_code ' || x_cascaded_table(n).to_organization_code);

1178:
1179: -- call derivation procedures if conditions are met
1180:
1181: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
1182: asn_debug.put_line('to_organization_code ' || x_cascaded_table(n).to_organization_code);
1183:
1184: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1185: AND ( x_cascaded_table(n).to_organization_id IS NULL
1186: AND x_cascaded_table(n).to_organization_code IS NOT NULL) THEN

Line 1187: IF (g_asn_debug = 'Y') THEN

1183:
1184: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1185: AND ( x_cascaded_table(n).to_organization_id IS NULL
1186: AND x_cascaded_table(n).to_organization_code IS NOT NULL) THEN
1187: IF (g_asn_debug = 'Y') THEN
1188: asn_debug.put_line('X_Progress ' || x_progress);
1189: END IF;
1190:
1191: ship_to_org_record.organization_code := x_cascaded_table(n).to_organization_code;

Line 1188: asn_debug.put_line('X_Progress ' || x_progress);

1184: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1185: AND ( x_cascaded_table(n).to_organization_id IS NULL
1186: AND x_cascaded_table(n).to_organization_code IS NOT NULL) THEN
1187: IF (g_asn_debug = 'Y') THEN
1188: asn_debug.put_line('X_Progress ' || x_progress);
1189: END IF;
1190:
1191: ship_to_org_record.organization_code := x_cascaded_table(n).to_organization_code;
1192: ship_to_org_record.organization_id := x_cascaded_table(n).to_organization_id;

Line 1196: IF (g_asn_debug = 'Y') THEN

1192: ship_to_org_record.organization_id := x_cascaded_table(n).to_organization_id;
1193: ship_to_org_record.error_record.error_status := 'S';
1194: ship_to_org_record.error_record.error_message := NULL;
1195:
1196: IF (g_asn_debug = 'Y') THEN
1197: asn_debug.put_line('Into Derive Organization Record Procedure');
1198: END IF;
1199:
1200: po_orgs_sv.derive_org_info(ship_to_org_record);

Line 1197: asn_debug.put_line('Into Derive Organization Record Procedure');

1193: ship_to_org_record.error_record.error_status := 'S';
1194: ship_to_org_record.error_record.error_message := NULL;
1195:
1196: IF (g_asn_debug = 'Y') THEN
1197: asn_debug.put_line('Into Derive Organization Record Procedure');
1198: END IF;
1199:
1200: po_orgs_sv.derive_org_info(ship_to_org_record);
1201:

Line 1202: IF (g_asn_debug = 'Y') THEN

1198: END IF;
1199:
1200: po_orgs_sv.derive_org_info(ship_to_org_record);
1201:
1202: IF (g_asn_debug = 'Y') THEN
1203: asn_debug.put_line('Debug Output after organization procedure');
1204: asn_debug.put_line(ship_to_org_record.organization_code);
1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));
1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);

Line 1203: asn_debug.put_line('Debug Output after organization procedure');

1199:
1200: po_orgs_sv.derive_org_info(ship_to_org_record);
1201:
1202: IF (g_asn_debug = 'Y') THEN
1203: asn_debug.put_line('Debug Output after organization procedure');
1204: asn_debug.put_line(ship_to_org_record.organization_code);
1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));
1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);
1207: asn_debug.put_line('Debug organization output over');

Line 1204: asn_debug.put_line(ship_to_org_record.organization_code);

1200: po_orgs_sv.derive_org_info(ship_to_org_record);
1201:
1202: IF (g_asn_debug = 'Y') THEN
1203: asn_debug.put_line('Debug Output after organization procedure');
1204: asn_debug.put_line(ship_to_org_record.organization_code);
1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));
1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);
1207: asn_debug.put_line('Debug organization output over');
1208: END IF;

Line 1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));

1201:
1202: IF (g_asn_debug = 'Y') THEN
1203: asn_debug.put_line('Debug Output after organization procedure');
1204: asn_debug.put_line(ship_to_org_record.organization_code);
1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));
1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);
1207: asn_debug.put_line('Debug organization output over');
1208: END IF;
1209:

Line 1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);

1202: IF (g_asn_debug = 'Y') THEN
1203: asn_debug.put_line('Debug Output after organization procedure');
1204: asn_debug.put_line(ship_to_org_record.organization_code);
1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));
1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);
1207: asn_debug.put_line('Debug organization output over');
1208: END IF;
1209:
1210: x_cascaded_table(n).to_organization_code := ship_to_org_record.organization_code;

Line 1207: asn_debug.put_line('Debug organization output over');

1203: asn_debug.put_line('Debug Output after organization procedure');
1204: asn_debug.put_line(ship_to_org_record.organization_code);
1205: asn_debug.put_line(TO_CHAR(ship_to_org_record.organization_id));
1206: asn_debug.put_line(ship_to_org_record.error_record.error_status);
1207: asn_debug.put_line('Debug organization output over');
1208: END IF;
1209:
1210: x_cascaded_table(n).to_organization_code := ship_to_org_record.organization_code;
1211: x_cascaded_table(n).to_organization_id := ship_to_org_record.organization_id;

Line 1223: asn_debug.put_line('i am inside the derive_vendor_info method');

1219: n IN OUT NOCOPY BINARY_INTEGER
1220: ) IS
1221: vendor_record rcv_shipment_header_sv.vendorrectype;
1222: BEGIN
1223: asn_debug.put_line('i am inside the derive_vendor_info method');
1224:
1225: IF (x_cascaded_table(n).error_status IN('S', 'W')) THEN
1226: IF ( x_cascaded_table(n).vendor_name IS NOT NULL
1227: OR x_cascaded_table(n).vendor_num IS NOT NULL

Line 1235: IF (g_asn_debug = 'Y') THEN

1231: vendor_record.vendor_id := x_cascaded_table(n).vendor_id;
1232: vendor_record.error_record.error_message := x_cascaded_table(n).error_message;
1233: vendor_record.error_record.error_status := x_cascaded_table(n).error_status;
1234:
1235: IF (g_asn_debug = 'Y') THEN
1236: asn_debug.put_line('In Vendor Procedure');
1237: END IF;
1238:
1239: po_vendors_sv.derive_vendor_info(vendor_record);

Line 1236: asn_debug.put_line('In Vendor Procedure');

1232: vendor_record.error_record.error_message := x_cascaded_table(n).error_message;
1233: vendor_record.error_record.error_status := x_cascaded_table(n).error_status;
1234:
1235: IF (g_asn_debug = 'Y') THEN
1236: asn_debug.put_line('In Vendor Procedure');
1237: END IF;
1238:
1239: po_vendors_sv.derive_vendor_info(vendor_record);
1240:

Line 1241: IF (g_asn_debug = 'Y') THEN

1237: END IF;
1238:
1239: po_vendors_sv.derive_vendor_info(vendor_record);
1240:
1241: IF (g_asn_debug = 'Y') THEN
1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));
1243: asn_debug.put_line(vendor_record.vendor_name);
1244: asn_debug.put_line(vendor_record.vendor_num);
1245: asn_debug.put_line(vendor_record.error_record.error_status);

Line 1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));

1238:
1239: po_vendors_sv.derive_vendor_info(vendor_record);
1240:
1241: IF (g_asn_debug = 'Y') THEN
1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));
1243: asn_debug.put_line(vendor_record.vendor_name);
1244: asn_debug.put_line(vendor_record.vendor_num);
1245: asn_debug.put_line(vendor_record.error_record.error_status);
1246: asn_debug.put_line(vendor_record.error_record.error_message);

Line 1243: asn_debug.put_line(vendor_record.vendor_name);

1239: po_vendors_sv.derive_vendor_info(vendor_record);
1240:
1241: IF (g_asn_debug = 'Y') THEN
1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));
1243: asn_debug.put_line(vendor_record.vendor_name);
1244: asn_debug.put_line(vendor_record.vendor_num);
1245: asn_debug.put_line(vendor_record.error_record.error_status);
1246: asn_debug.put_line(vendor_record.error_record.error_message);
1247: END IF;

Line 1244: asn_debug.put_line(vendor_record.vendor_num);

1240:
1241: IF (g_asn_debug = 'Y') THEN
1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));
1243: asn_debug.put_line(vendor_record.vendor_name);
1244: asn_debug.put_line(vendor_record.vendor_num);
1245: asn_debug.put_line(vendor_record.error_record.error_status);
1246: asn_debug.put_line(vendor_record.error_record.error_message);
1247: END IF;
1248:

Line 1245: asn_debug.put_line(vendor_record.error_record.error_status);

1241: IF (g_asn_debug = 'Y') THEN
1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));
1243: asn_debug.put_line(vendor_record.vendor_name);
1244: asn_debug.put_line(vendor_record.vendor_num);
1245: asn_debug.put_line(vendor_record.error_record.error_status);
1246: asn_debug.put_line(vendor_record.error_record.error_message);
1247: END IF;
1248:
1249: x_cascaded_table(n).vendor_name := vendor_record.vendor_name;

Line 1246: asn_debug.put_line(vendor_record.error_record.error_message);

1242: asn_debug.put_line(TO_CHAR(vendor_record.vendor_id));
1243: asn_debug.put_line(vendor_record.vendor_name);
1244: asn_debug.put_line(vendor_record.vendor_num);
1245: asn_debug.put_line(vendor_record.error_record.error_status);
1246: asn_debug.put_line(vendor_record.error_record.error_message);
1247: END IF;
1248:
1249: x_cascaded_table(n).vendor_name := vendor_record.vendor_name;
1250: x_cascaded_table(n).vendor_num := vendor_record.vendor_num;

Line 1274: IF (g_asn_debug = 'Y') THEN

1270: vendor_site_record.organization_id := x_cascaded_table(n).to_organization_id;
1271: vendor_site_record.error_record.error_message := x_cascaded_table(n).error_message;
1272: vendor_site_record.error_record.error_status := x_cascaded_table(n).error_status;
1273:
1274: IF (g_asn_debug = 'Y') THEN
1275: asn_debug.put_line('In Vendor Site Procedure');
1276: END IF;
1277:
1278: po_vendor_sites_sv.derive_vendor_site_info(vendor_site_record);

Line 1275: asn_debug.put_line('In Vendor Site Procedure');

1271: vendor_site_record.error_record.error_message := x_cascaded_table(n).error_message;
1272: vendor_site_record.error_record.error_status := x_cascaded_table(n).error_status;
1273:
1274: IF (g_asn_debug = 'Y') THEN
1275: asn_debug.put_line('In Vendor Site Procedure');
1276: END IF;
1277:
1278: po_vendor_sites_sv.derive_vendor_site_info(vendor_site_record);
1279:

Line 1280: IF (g_asn_debug = 'Y') THEN

1276: END IF;
1277:
1278: po_vendor_sites_sv.derive_vendor_site_info(vendor_site_record);
1279:
1280: IF (g_asn_debug = 'Y') THEN
1281: asn_debug.put_line(vendor_site_record.vendor_site_code);
1282: asn_debug.put_line(vendor_site_record.vendor_site_id);
1283: END IF;
1284:

Line 1281: asn_debug.put_line(vendor_site_record.vendor_site_code);

1277:
1278: po_vendor_sites_sv.derive_vendor_site_info(vendor_site_record);
1279:
1280: IF (g_asn_debug = 'Y') THEN
1281: asn_debug.put_line(vendor_site_record.vendor_site_code);
1282: asn_debug.put_line(vendor_site_record.vendor_site_id);
1283: END IF;
1284:
1285: x_cascaded_table(n).vendor_site_code := vendor_site_record.vendor_site_code;

Line 1282: asn_debug.put_line(vendor_site_record.vendor_site_id);

1278: po_vendor_sites_sv.derive_vendor_site_info(vendor_site_record);
1279:
1280: IF (g_asn_debug = 'Y') THEN
1281: asn_debug.put_line(vendor_site_record.vendor_site_code);
1282: asn_debug.put_line(vendor_site_record.vendor_site_id);
1283: END IF;
1284:
1285: x_cascaded_table(n).vendor_site_code := vendor_site_record.vendor_site_code;
1286: x_cascaded_table(n).vendor_id := vendor_site_record.vendor_id;

Line 1304: IF (g_asn_debug = 'Y') THEN

1300: BEGIN
1301: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1302: AND ( x_cascaded_table(n).po_header_id IS NULL
1303: AND x_cascaded_table(n).document_num IS NOT NULL) THEN
1304: IF (g_asn_debug = 'Y') THEN
1305: asn_debug.put_line('X_progress ' || x_progress);
1306: asn_debug.put_line('shipment_header_id ' || x_cascaded_table(n).shipment_header_id);
1307: END IF;
1308:

Line 1305: asn_debug.put_line('X_progress ' || x_progress);

1301: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1302: AND ( x_cascaded_table(n).po_header_id IS NULL
1303: AND x_cascaded_table(n).document_num IS NOT NULL) THEN
1304: IF (g_asn_debug = 'Y') THEN
1305: asn_debug.put_line('X_progress ' || x_progress);
1306: asn_debug.put_line('shipment_header_id ' || x_cascaded_table(n).shipment_header_id);
1307: END IF;
1308:
1309: document_num_record.document_num := x_cascaded_table(n).document_num;

Line 1306: asn_debug.put_line('shipment_header_id ' || x_cascaded_table(n).shipment_header_id);

1302: AND ( x_cascaded_table(n).po_header_id IS NULL
1303: AND x_cascaded_table(n).document_num IS NOT NULL) THEN
1304: IF (g_asn_debug = 'Y') THEN
1305: asn_debug.put_line('X_progress ' || x_progress);
1306: asn_debug.put_line('shipment_header_id ' || x_cascaded_table(n).shipment_header_id);
1307: END IF;
1308:
1309: document_num_record.document_num := x_cascaded_table(n).document_num;
1310: document_num_record.error_record.error_status := 'S';

Line 1313: IF (g_asn_debug = 'Y') THEN

1309: document_num_record.document_num := x_cascaded_table(n).document_num;
1310: document_num_record.error_record.error_status := 'S';
1311: document_num_record.error_record.error_message := NULL;
1312:
1313: IF (g_asn_debug = 'Y') THEN
1314: asn_debug.put_line('Derive po_header_id');
1315: END IF;
1316:
1317: rcv_transactions_interface_sv.get_po_header_id(document_num_record);

Line 1314: asn_debug.put_line('Derive po_header_id');

1310: document_num_record.error_record.error_status := 'S';
1311: document_num_record.error_record.error_message := NULL;
1312:
1313: IF (g_asn_debug = 'Y') THEN
1314: asn_debug.put_line('Derive po_header_id');
1315: END IF;
1316:
1317: rcv_transactions_interface_sv.get_po_header_id(document_num_record);
1318: x_cascaded_table(n).po_header_id := document_num_record.po_header_id;

Line 1326: IF (g_asn_debug = 'Y') THEN

1322: 'DOCUMENT_NUM',
1323: FALSE
1324: );
1325:
1326: IF (g_asn_debug = 'Y') THEN
1327: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).po_header_id));
1328: END IF;
1329: END IF;
1330: END derive_po_header_info;

Line 1327: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).po_header_id));

1323: FALSE
1324: );
1325:
1326: IF (g_asn_debug = 'Y') THEN
1327: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).po_header_id));
1328: END IF;
1329: END IF;
1330: END derive_po_header_info;
1331:

Line 1351: IF (g_asn_debug = 'Y') THEN

1347: AND (rcv_roi_header.g_txn_against_asn = 'Y')) THEN --{ /* Bug4523892 */
1348:
1349: x_cascaded_table(n).shipment_header_id := x_header_record.header_record.receipt_header_id;
1350:
1351: IF (g_asn_debug = 'Y') THEN
1352: asn_debug.put_line('shipment_header_id in derive_asn_header_info ' || x_cascaded_table(n).shipment_header_id);
1353: END IF;
1354:
1355: IF (x_cascaded_table(n).shipment_header_id IS NULL) THEN --{

Line 1352: asn_debug.put_line('shipment_header_id in derive_asn_header_info ' || x_cascaded_table(n).shipment_header_id);

1348:
1349: x_cascaded_table(n).shipment_header_id := x_header_record.header_record.receipt_header_id;
1350:
1351: IF (g_asn_debug = 'Y') THEN
1352: asn_debug.put_line('shipment_header_id in derive_asn_header_info ' || x_cascaded_table(n).shipment_header_id);
1353: END IF;
1354:
1355: IF (x_cascaded_table(n).shipment_header_id IS NULL) THEN --{
1356: IF (g_asn_debug = 'Y') THEN

Line 1356: IF (g_asn_debug = 'Y') THEN

1352: asn_debug.put_line('shipment_header_id in derive_asn_header_info ' || x_cascaded_table(n).shipment_header_id);
1353: END IF;
1354:
1355: IF (x_cascaded_table(n).shipment_header_id IS NULL) THEN --{
1356: IF (g_asn_debug = 'Y') THEN
1357: asn_debug.put_line('Cannot derive shipment_header_id');
1358: END IF;
1359:
1360: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 1357: asn_debug.put_line('Cannot derive shipment_header_id');

1353: END IF;
1354:
1355: IF (x_cascaded_table(n).shipment_header_id IS NULL) THEN --{
1356: IF (g_asn_debug = 'Y') THEN
1357: asn_debug.put_line('Cannot derive shipment_header_id');
1358: END IF;
1359:
1360: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
1361: rcv_error_pkg.set_error_message('RCV_NO_SHIP_ID', x_cascaded_table(n).error_message);

Line 1384: IF (g_asn_debug = 'Y') THEN

1380: BEGIN
1381: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1382: AND ( x_cascaded_table(n).item_id IS NULL
1383: AND (x_cascaded_table(n).item_num IS NOT NULL)) THEN
1384: IF (g_asn_debug = 'Y') THEN
1385: asn_debug.put_line('X_progress ' || x_progress);
1386: END IF;
1387:
1388: item_id_record.item_num := x_cascaded_table(n).item_num;

Line 1385: asn_debug.put_line('X_progress ' || x_progress);

1381: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1382: AND ( x_cascaded_table(n).item_id IS NULL
1383: AND (x_cascaded_table(n).item_num IS NOT NULL)) THEN
1384: IF (g_asn_debug = 'Y') THEN
1385: asn_debug.put_line('X_progress ' || x_progress);
1386: END IF;
1387:
1388: item_id_record.item_num := x_cascaded_table(n).item_num;
1389: item_id_record.vendor_item_num := NULL; -- x_cascaded_table(n).vendor_item_num;

Line 1394: IF (g_asn_debug = 'Y') THEN

1390: item_id_record.to_organization_id := x_cascaded_table(n).to_organization_id;
1391: item_id_record.error_record.error_status := 'S';
1392: item_id_record.error_record.error_message := NULL;
1393:
1394: IF (g_asn_debug = 'Y') THEN
1395: asn_debug.put_line('Derive item_id');
1396: END IF;
1397:
1398: rcv_transactions_interface_sv.get_item_id(item_id_record);

Line 1395: asn_debug.put_line('Derive item_id');

1391: item_id_record.error_record.error_status := 'S';
1392: item_id_record.error_record.error_message := NULL;
1393:
1394: IF (g_asn_debug = 'Y') THEN
1395: asn_debug.put_line('Derive item_id');
1396: END IF;
1397:
1398: rcv_transactions_interface_sv.get_item_id(item_id_record);
1399: x_cascaded_table(n).item_id := item_id_record.item_id;

Line 1428: IF (g_asn_debug = 'Y') THEN

1424:
1425: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1426: AND ( x_cascaded_table(n).substitute_item_id IS NULL
1427: AND (x_cascaded_table(n).substitute_item_num IS NOT NULL)) THEN
1428: IF (g_asn_debug = 'Y') THEN
1429: asn_debug.put_line('X_progress ' || x_progress);
1430: END IF;
1431:
1432: sub_item_id_record.substitute_item_num := x_cascaded_table(n).substitute_item_num;

Line 1429: asn_debug.put_line('X_progress ' || x_progress);

1425: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1426: AND ( x_cascaded_table(n).substitute_item_id IS NULL
1427: AND (x_cascaded_table(n).substitute_item_num IS NOT NULL)) THEN
1428: IF (g_asn_debug = 'Y') THEN
1429: asn_debug.put_line('X_progress ' || x_progress);
1430: END IF;
1431:
1432: sub_item_id_record.substitute_item_num := x_cascaded_table(n).substitute_item_num;
1433: sub_item_id_record.vendor_item_num := NULL; -- x_cascaded_table(n).vendor_item_num;

Line 1437: IF (g_asn_debug = 'Y') THEN

1433: sub_item_id_record.vendor_item_num := NULL; -- x_cascaded_table(n).vendor_item_num;
1434: sub_item_id_record.error_record.error_status := 'S';
1435: sub_item_id_record.error_record.error_message := NULL;
1436:
1437: IF (g_asn_debug = 'Y') THEN
1438: asn_debug.put_line('Derive Substitute Item Id');
1439: END IF;
1440:
1441: rcv_transactions_interface_sv.get_sub_item_id(sub_item_id_record);

Line 1438: asn_debug.put_line('Derive Substitute Item Id');

1434: sub_item_id_record.error_record.error_status := 'S';
1435: sub_item_id_record.error_record.error_message := NULL;
1436:
1437: IF (g_asn_debug = 'Y') THEN
1438: asn_debug.put_line('Derive Substitute Item Id');
1439: END IF;
1440:
1441: rcv_transactions_interface_sv.get_sub_item_id(sub_item_id_record);
1442: x_cascaded_table(n).substitute_item_id := sub_item_id_record.substitute_item_id;

Line 1446: IF (g_asn_debug = 'Y') THEN

1442: x_cascaded_table(n).substitute_item_id := sub_item_id_record.substitute_item_id;
1443: x_cascaded_table(n).error_status := sub_item_id_record.error_record.error_status;
1444: x_cascaded_table(n).error_message := sub_item_id_record.error_record.error_message;
1445:
1446: IF (g_asn_debug = 'Y') THEN
1447: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).substitute_item_id));
1448: END IF;
1449:
1450: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,

Line 1447: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).substitute_item_id));

1443: x_cascaded_table(n).error_status := sub_item_id_record.error_record.error_status;
1444: x_cascaded_table(n).error_message := sub_item_id_record.error_record.error_message;
1445:
1446: IF (g_asn_debug = 'Y') THEN
1447: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).substitute_item_id));
1448: END IF;
1449:
1450: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,
1451: 'SUBSTITUTE_ITEM_NUM',

Line 1466: IF (g_asn_debug = 'Y') THEN

1462: release_id_record rcv_shipment_line_sv.release_id_record_type;
1463: l_asn_type rcv_shipment_headers.asn_type%type;
1464: l_error_column VARCHAR2(30); --Bugfix 4881909
1465: BEGIN
1466: IF (g_asn_debug = 'Y') THEN
1467: asn_debug.put_line('In derive_po_line_info');
1468: END IF;
1469:
1470: IF (x_cascaded_table(n).error_status IN('S', 'W'))

Line 1467: asn_debug.put_line('In derive_po_line_info');

1463: l_asn_type rcv_shipment_headers.asn_type%type;
1464: l_error_column VARCHAR2(30); --Bugfix 4881909
1465: BEGIN
1466: IF (g_asn_debug = 'Y') THEN
1467: asn_debug.put_line('In derive_po_line_info');
1468: END IF;
1469:
1470: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1471: AND ( x_cascaded_table(n).po_line_id IS NULL

Line 1474: IF (g_asn_debug = 'Y') THEN

1470: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1471: AND ( x_cascaded_table(n).po_line_id IS NULL
1472: AND x_cascaded_table(n).po_header_id IS NOT NULL
1473: AND x_cascaded_table(n).document_line_num IS NOT NULL) THEN
1474: IF (g_asn_debug = 'Y') THEN
1475: asn_debug.put_line('X_progress ' || x_progress);
1476: END IF;
1477:
1478: po_line_id_record.po_header_id := x_cascaded_table(n).po_header_id;

Line 1475: asn_debug.put_line('X_progress ' || x_progress);

1471: AND ( x_cascaded_table(n).po_line_id IS NULL
1472: AND x_cascaded_table(n).po_header_id IS NOT NULL
1473: AND x_cascaded_table(n).document_line_num IS NOT NULL) THEN
1474: IF (g_asn_debug = 'Y') THEN
1475: asn_debug.put_line('X_progress ' || x_progress);
1476: END IF;
1477:
1478: po_line_id_record.po_header_id := x_cascaded_table(n).po_header_id;
1479: po_line_id_record.document_line_num := x_cascaded_table(n).document_line_num;

Line 1485: IF (g_asn_debug = 'Y') THEN

1481: po_line_id_record.item_id := x_cascaded_table(n).item_id;
1482: po_line_id_record.error_record.error_status := 'S';
1483: po_line_id_record.error_record.error_message := NULL;
1484:
1485: IF (g_asn_debug = 'Y') THEN
1486: asn_debug.put_line('Derive po_line_id');
1487: END IF;
1488:
1489: rcv_transactions_interface_sv.get_po_line_id(po_line_id_record);

Line 1486: asn_debug.put_line('Derive po_line_id');

1482: po_line_id_record.error_record.error_status := 'S';
1483: po_line_id_record.error_record.error_message := NULL;
1484:
1485: IF (g_asn_debug = 'Y') THEN
1486: asn_debug.put_line('Derive po_line_id');
1487: END IF;
1488:
1489: rcv_transactions_interface_sv.get_po_line_id(po_line_id_record);
1490:

Line 1499: IF (g_asn_debug = 'Y') THEN

1495: x_cascaded_table(n).po_line_id := po_line_id_record.po_line_id;
1496: x_cascaded_table(n).error_status := po_line_id_record.error_record.error_status;
1497: x_cascaded_table(n).error_message := po_line_id_record.error_record.error_message;
1498:
1499: IF (g_asn_debug = 'Y') THEN
1500: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).po_line_id));
1501: END IF;
1502:
1503: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,

Line 1500: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).po_line_id));

1496: x_cascaded_table(n).error_status := po_line_id_record.error_record.error_status;
1497: x_cascaded_table(n).error_message := po_line_id_record.error_record.error_message;
1498:
1499: IF (g_asn_debug = 'Y') THEN
1500: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).po_line_id));
1501: END IF;
1502:
1503: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,
1504: 'DOCUMENT_LINE_NUM',

Line 1509: IF (g_asn_debug = 'Y') THEN

1505: FALSE
1506: );
1507: END IF; -- set line id
1508:
1509: IF (g_asn_debug = 'Y') THEN
1510: asn_debug.put_line('po_line_id to get matching_basis ' || TO_CHAR(x_cascaded_table(n).po_line_id));
1511: END IF;
1512:
1513: /* Complex Work Start.

Line 1510: asn_debug.put_line('po_line_id to get matching_basis ' || TO_CHAR(x_cascaded_table(n).po_line_id));

1506: );
1507: END IF; -- set line id
1508:
1509: IF (g_asn_debug = 'Y') THEN
1510: asn_debug.put_line('po_line_id to get matching_basis ' || TO_CHAR(x_cascaded_table(n).po_line_id));
1511: END IF;
1512:
1513: /* Complex Work Start.
1514: * Moving the logic to derive matching_basis

Line 1532: IF (g_asn_debug = 'Y') THEN

1528: x_cascaded_table(n).matching_basis := 'QUANTITY';
1529: x_cascaded_table(n).purchase_basis := 'GOODS';
1530: END IF;
1531:
1532: IF (g_asn_debug = 'Y') THEN
1533: asn_debug.put_line('matching_basis ' || x_cascaded_table(n).matching_basis);
1534: END IF;
1535:
1536: Complex Work End*/

Line 1533: asn_debug.put_line('matching_basis ' || x_cascaded_table(n).matching_basis);

1529: x_cascaded_table(n).purchase_basis := 'GOODS';
1530: END IF;
1531:
1532: IF (g_asn_debug = 'Y') THEN
1533: asn_debug.put_line('matching_basis ' || x_cascaded_table(n).matching_basis);
1534: END IF;
1535:
1536: Complex Work End*/
1537: -- Get the primary uom in case item_id was determined on the basis of the po_line_id

Line 1557: IF (g_asn_debug = 'Y') THEN

1553: INTO l_primary_unit_of_measure
1554: FROM mtl_system_items
1555: WHERE mtl_system_items.inventory_item_id = x_cascaded_table(n).item_id
1556: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
1557: IF (g_asn_debug = 'Y') THEN
1558: asn_debug.put_line('Primary UOM from RTI :' || x_cascaded_table(n).primary_unit_of_measure);
1559: asn_debug.put_line('Derived PRIMARY UOM from MSI:' || l_primary_unit_of_measure);
1560: END IF;
1561: IF (NVL(x_cascaded_table(n).primary_unit_of_measure, l_primary_unit_of_measure) <> l_primary_unit_of_measure) THEN

Line 1558: asn_debug.put_line('Primary UOM from RTI :' || x_cascaded_table(n).primary_unit_of_measure);

1554: FROM mtl_system_items
1555: WHERE mtl_system_items.inventory_item_id = x_cascaded_table(n).item_id
1556: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
1557: IF (g_asn_debug = 'Y') THEN
1558: asn_debug.put_line('Primary UOM from RTI :' || x_cascaded_table(n).primary_unit_of_measure);
1559: asn_debug.put_line('Derived PRIMARY UOM from MSI:' || l_primary_unit_of_measure);
1560: END IF;
1561: IF (NVL(x_cascaded_table(n).primary_unit_of_measure, l_primary_unit_of_measure) <> l_primary_unit_of_measure) THEN
1562: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 1559: asn_debug.put_line('Derived PRIMARY UOM from MSI:' || l_primary_unit_of_measure);

1555: WHERE mtl_system_items.inventory_item_id = x_cascaded_table(n).item_id
1556: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
1557: IF (g_asn_debug = 'Y') THEN
1558: asn_debug.put_line('Primary UOM from RTI :' || x_cascaded_table(n).primary_unit_of_measure);
1559: asn_debug.put_line('Derived PRIMARY UOM from MSI:' || l_primary_unit_of_measure);
1560: END IF;
1561: IF (NVL(x_cascaded_table(n).primary_unit_of_measure, l_primary_unit_of_measure) <> l_primary_unit_of_measure) THEN
1562: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
1563: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE');

Line 1571: IF (g_asn_debug = 'Y') THEN

1567: rcv_error_pkg.log_interface_error('PRIMARY_UNIT_OF_MEASURE');
1568: ELSE
1569: x_cascaded_table(n).primary_unit_of_measure := l_primary_unit_of_measure;
1570: END IF;
1571: IF (g_asn_debug = 'Y') THEN
1572: asn_debug.put_line('Primary UOM: ' || x_cascaded_table(n).primary_unit_of_measure);
1573: END IF;
1574: EXCEPTION
1575: WHEN NO_DATA_FOUND THEN

Line 1572: asn_debug.put_line('Primary UOM: ' || x_cascaded_table(n).primary_unit_of_measure);

1568: ELSE
1569: x_cascaded_table(n).primary_unit_of_measure := l_primary_unit_of_measure;
1570: END IF;
1571: IF (g_asn_debug = 'Y') THEN
1572: asn_debug.put_line('Primary UOM: ' || x_cascaded_table(n).primary_unit_of_measure);
1573: END IF;
1574: EXCEPTION
1575: WHEN NO_DATA_FOUND THEN
1576: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 1603: IF (g_asn_debug = 'Y') THEN

1599: FROM mtl_system_items
1600: WHERE mtl_system_items.inventory_item_id = x_cascaded_table(n).item_id
1601: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
1602:
1603: IF (g_asn_debug = 'Y') THEN
1604: asn_debug.put_line('use_mtl_lot: ' || x_cascaded_table(n).use_mtl_lot);
1605: asn_debug.put_line('use_mtl_serial: ' || x_cascaded_table(n).use_mtl_serial);
1606: END IF;
1607: EXCEPTION

Line 1604: asn_debug.put_line('use_mtl_lot: ' || x_cascaded_table(n).use_mtl_lot);

1600: WHERE mtl_system_items.inventory_item_id = x_cascaded_table(n).item_id
1601: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
1602:
1603: IF (g_asn_debug = 'Y') THEN
1604: asn_debug.put_line('use_mtl_lot: ' || x_cascaded_table(n).use_mtl_lot);
1605: asn_debug.put_line('use_mtl_serial: ' || x_cascaded_table(n).use_mtl_serial);
1606: END IF;
1607: EXCEPTION
1608: WHEN NO_DATA_FOUND THEN

Line 1605: asn_debug.put_line('use_mtl_serial: ' || x_cascaded_table(n).use_mtl_serial);

1601: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
1602:
1603: IF (g_asn_debug = 'Y') THEN
1604: asn_debug.put_line('use_mtl_lot: ' || x_cascaded_table(n).use_mtl_lot);
1605: asn_debug.put_line('use_mtl_serial: ' || x_cascaded_table(n).use_mtl_serial);
1606: END IF;
1607: EXCEPTION
1608: WHEN NO_DATA_FOUND THEN
1609: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 1620: IF (g_asn_debug = 'Y') THEN

1616: /* Bug 2020269 : uom_code needs to be derived from unit_of_measure
1617: entered in rcv_transactions_interface.
1618: */
1619: IF (x_cascaded_table(n).unit_of_measure IS NOT NULL) THEN
1620: IF (g_asn_debug = 'Y') THEN
1621: asn_debug.put_line('X_progress ' || x_progress);
1622: END IF;
1623:
1624: SELECT muom.uom_code

Line 1621: asn_debug.put_line('X_progress ' || x_progress);

1617: entered in rcv_transactions_interface.
1618: */
1619: IF (x_cascaded_table(n).unit_of_measure IS NOT NULL) THEN
1620: IF (g_asn_debug = 'Y') THEN
1621: asn_debug.put_line('X_progress ' || x_progress);
1622: END IF;
1623:
1624: SELECT muom.uom_code
1625: INTO x_cascaded_table(n).uom_code

Line 1629: IF (g_asn_debug = 'Y') THEN

1625: INTO x_cascaded_table(n).uom_code
1626: FROM mtl_units_of_measure muom
1627: WHERE muom.unit_of_measure = x_cascaded_table(n).unit_of_measure;
1628: ELSE
1629: IF (g_asn_debug = 'Y') THEN
1630: asn_debug.put_line('uom_code not dereived as unit_of_measure is null');
1631: END IF;
1632: END IF; -- set uom_code
1633:

Line 1630: asn_debug.put_line('uom_code not dereived as unit_of_measure is null');

1626: FROM mtl_units_of_measure muom
1627: WHERE muom.unit_of_measure = x_cascaded_table(n).unit_of_measure;
1628: ELSE
1629: IF (g_asn_debug = 'Y') THEN
1630: asn_debug.put_line('uom_code not dereived as unit_of_measure is null');
1631: END IF;
1632: END IF; -- set uom_code
1633:
1634: x_progress := '026';

Line 1656: IF (g_asn_debug = 'Y') THEN

1652: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1653: AND x_cascaded_table(n).po_release_id IS NULL
1654: AND -- Maybe we need an or with shipnum,relnum
1655: x_cascaded_table(n).po_header_id IS NOT NULL THEN --{
1656: IF (g_asn_debug = 'Y') THEN
1657: asn_debug.put_line('X_progress ' || x_progress);
1658: END IF;
1659:
1660: release_id_record.po_header_id := x_cascaded_table(n).po_header_id;

Line 1657: asn_debug.put_line('X_progress ' || x_progress);

1653: AND x_cascaded_table(n).po_release_id IS NULL
1654: AND -- Maybe we need an or with shipnum,relnum
1655: x_cascaded_table(n).po_header_id IS NOT NULL THEN --{
1656: IF (g_asn_debug = 'Y') THEN
1657: asn_debug.put_line('X_progress ' || x_progress);
1658: END IF;
1659:
1660: release_id_record.po_header_id := x_cascaded_table(n).po_header_id;
1661: release_id_record.release_num := x_cascaded_table(n).release_num;

Line 1667: IF (g_asn_debug = 'Y') THEN

1663: release_id_record.shipment_num := x_cascaded_table(n).document_shipment_line_num;
1664: release_id_record.error_record.error_status := 'S';
1665: release_id_record.error_record.error_message := NULL;
1666:
1667: IF (g_asn_debug = 'Y') THEN
1668: asn_debug.put_line('Derive po_line_location_id, shipment_num, po_release_id');
1669: END IF;
1670:
1671: IF (g_asn_debug = 'Y') THEN

Line 1668: asn_debug.put_line('Derive po_line_location_id, shipment_num, po_release_id');

1664: release_id_record.error_record.error_status := 'S';
1665: release_id_record.error_record.error_message := NULL;
1666:
1667: IF (g_asn_debug = 'Y') THEN
1668: asn_debug.put_line('Derive po_line_location_id, shipment_num, po_release_id');
1669: END IF;
1670:
1671: IF (g_asn_debug = 'Y') THEN
1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);

Line 1671: IF (g_asn_debug = 'Y') THEN

1667: IF (g_asn_debug = 'Y') THEN
1668: asn_debug.put_line('Derive po_line_location_id, shipment_num, po_release_id');
1669: END IF;
1670:
1671: IF (g_asn_debug = 'Y') THEN
1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);
1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);
1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);
1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);

Line 1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);

1668: asn_debug.put_line('Derive po_line_location_id, shipment_num, po_release_id');
1669: END IF;
1670:
1671: IF (g_asn_debug = 'Y') THEN
1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);
1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);
1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);
1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);
1676: asn_debug.put_line('### po_rel_id ' || release_id_record.po_release_id);

Line 1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);

1669: END IF;
1670:
1671: IF (g_asn_debug = 'Y') THEN
1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);
1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);
1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);
1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);
1676: asn_debug.put_line('### po_rel_id ' || release_id_record.po_release_id);
1677: END IF;

Line 1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);

1670:
1671: IF (g_asn_debug = 'Y') THEN
1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);
1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);
1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);
1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);
1676: asn_debug.put_line('### po_rel_id ' || release_id_record.po_release_id);
1677: END IF;
1678:

Line 1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);

1671: IF (g_asn_debug = 'Y') THEN
1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);
1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);
1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);
1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);
1676: asn_debug.put_line('### po_rel_id ' || release_id_record.po_release_id);
1677: END IF;
1678:
1679: po_releases_sv4.get_po_release_id(release_id_record);

Line 1676: asn_debug.put_line('### po_rel_id ' || release_id_record.po_release_id);

1672: asn_debug.put_line('### po_header_id ' || release_id_record.po_header_id);
1673: asn_debug.put_line('### release_num ' || release_id_record.release_num);
1674: asn_debug.put_line('### po_line_id ' || release_id_record.po_line_id);
1675: asn_debug.put_line('### shipment_num ' || release_id_record.shipment_num);
1676: asn_debug.put_line('### po_rel_id ' || release_id_record.po_release_id);
1677: END IF;
1678:
1679: po_releases_sv4.get_po_release_id(release_id_record);
1680:

Line 1681: IF (g_asn_debug = 'Y') THEN

1677: END IF;
1678:
1679: po_releases_sv4.get_po_release_id(release_id_record);
1680:
1681: IF (g_asn_debug = 'Y') THEN
1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);
1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);
1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);
1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);

Line 1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);

1678:
1679: po_releases_sv4.get_po_release_id(release_id_record);
1680:
1681: IF (g_asn_debug = 'Y') THEN
1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);
1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);
1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);
1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);
1686: asn_debug.put_line('^^^ po_rel_id ' || release_id_record.po_release_id);

Line 1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);

1679: po_releases_sv4.get_po_release_id(release_id_record);
1680:
1681: IF (g_asn_debug = 'Y') THEN
1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);
1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);
1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);
1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);
1686: asn_debug.put_line('^^^ po_rel_id ' || release_id_record.po_release_id);
1687: END IF;

Line 1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);

1680:
1681: IF (g_asn_debug = 'Y') THEN
1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);
1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);
1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);
1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);
1686: asn_debug.put_line('^^^ po_rel_id ' || release_id_record.po_release_id);
1687: END IF;
1688:

Line 1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);

1681: IF (g_asn_debug = 'Y') THEN
1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);
1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);
1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);
1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);
1686: asn_debug.put_line('^^^ po_rel_id ' || release_id_record.po_release_id);
1687: END IF;
1688:
1689: x_cascaded_table(n).error_status := release_id_record.error_record.error_status;

Line 1686: asn_debug.put_line('^^^ po_rel_id ' || release_id_record.po_release_id);

1682: asn_debug.put_line('^^^ po_header_id ' || release_id_record.po_header_id);
1683: asn_debug.put_line('^^^ release_num ' || release_id_record.release_num);
1684: asn_debug.put_line('^^^ po_line_id ' || release_id_record.po_line_id);
1685: asn_debug.put_line('^^^ shipment_num ' || release_id_record.shipment_num);
1686: asn_debug.put_line('^^^ po_rel_id ' || release_id_record.po_release_id);
1687: END IF;
1688:
1689: x_cascaded_table(n).error_status := release_id_record.error_record.error_status;
1690: x_cascaded_table(n).error_message := release_id_record.error_record.error_message;

Line 1731: IF (g_asn_debug = 'Y') THEN

1727:
1728: IF x_cascaded_table(n).po_line_location_id IS NULL THEN
1729: x_cascaded_table(n).po_line_location_id := release_id_record.po_line_location_id;
1730:
1731: IF (g_asn_debug = 'Y') THEN
1732: asn_debug.put_line('PO_LINE_LOCATION_ID ' || TO_CHAR(x_cascaded_table(n).po_line_location_id));
1733: END IF;
1734: END IF;
1735:

Line 1732: asn_debug.put_line('PO_LINE_LOCATION_ID ' || TO_CHAR(x_cascaded_table(n).po_line_location_id));

1728: IF x_cascaded_table(n).po_line_location_id IS NULL THEN
1729: x_cascaded_table(n).po_line_location_id := release_id_record.po_line_location_id;
1730:
1731: IF (g_asn_debug = 'Y') THEN
1732: asn_debug.put_line('PO_LINE_LOCATION_ID ' || TO_CHAR(x_cascaded_table(n).po_line_location_id));
1733: END IF;
1734: END IF;
1735:
1736: IF x_cascaded_table(n).document_shipment_line_num IS NULL THEN

Line 1739: IF (g_asn_debug = 'Y') THEN

1735:
1736: IF x_cascaded_table(n).document_shipment_line_num IS NULL THEN
1737: x_cascaded_table(n).document_shipment_line_num := release_id_record.shipment_num;
1738:
1739: IF (g_asn_debug = 'Y') THEN
1740: asn_debug.put_line('DOCUMENT_SHIPMENT_NUM ' || TO_CHAR(x_cascaded_table(n).document_shipment_line_num));
1741: END IF;
1742: END IF;
1743:

Line 1740: asn_debug.put_line('DOCUMENT_SHIPMENT_NUM ' || TO_CHAR(x_cascaded_table(n).document_shipment_line_num));

1736: IF x_cascaded_table(n).document_shipment_line_num IS NULL THEN
1737: x_cascaded_table(n).document_shipment_line_num := release_id_record.shipment_num;
1738:
1739: IF (g_asn_debug = 'Y') THEN
1740: asn_debug.put_line('DOCUMENT_SHIPMENT_NUM ' || TO_CHAR(x_cascaded_table(n).document_shipment_line_num));
1741: END IF;
1742: END IF;
1743:
1744: x_cascaded_table(n).po_release_id := release_id_record.po_release_id;

Line 1746: IF (g_asn_debug = 'Y') THEN

1742: END IF;
1743:
1744: x_cascaded_table(n).po_release_id := release_id_record.po_release_id;
1745:
1746: IF (g_asn_debug = 'Y') THEN
1747: asn_debug.put_line('PO_RELEASE_ID ' || TO_CHAR(x_cascaded_table(n).po_release_id));
1748: END IF;
1749: END IF; -- }set release info
1750: End if; --}-- <> 'WC'

Line 1747: asn_debug.put_line('PO_RELEASE_ID ' || TO_CHAR(x_cascaded_table(n).po_release_id));

1743:
1744: x_cascaded_table(n).po_release_id := release_id_record.po_release_id;
1745:
1746: IF (g_asn_debug = 'Y') THEN
1747: asn_debug.put_line('PO_RELEASE_ID ' || TO_CHAR(x_cascaded_table(n).po_release_id));
1748: END IF;
1749: END IF; -- }set release info
1750: End if; --}-- <> 'WC'
1751: /* Complex Work.

Line 1756: IF (g_asn_debug = 'Y') THEN

1752: * Add exception block.
1753: */
1754: exception
1755: when others then
1756: IF (g_asn_debug = 'Y') THEN
1757: asn_debug.put_line('Exception in derive_po_line_info'||x_progress);
1758: END IF;
1759: raise;
1760: END derive_po_line_info;

Line 1757: asn_debug.put_line('Exception in derive_po_line_info'||x_progress);

1753: */
1754: exception
1755: when others then
1756: IF (g_asn_debug = 'Y') THEN
1757: asn_debug.put_line('Exception in derive_po_line_info'||x_progress);
1758: END IF;
1759: raise;
1760: END derive_po_line_info;
1761:

Line 1771: IF (g_asn_debug = 'Y') THEN

1767: BEGIN
1768: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1769: AND ( x_cascaded_table(n).from_organization_id IS NULL
1770: AND x_cascaded_table(n).from_organization_code IS NOT NULL) THEN
1771: IF (g_asn_debug = 'Y') THEN
1772: asn_debug.put_line('X_progress ' || x_progress);
1773: END IF;
1774:
1775: ship_to_org_record.organization_code := x_cascaded_table(n).from_organization_code;

Line 1772: asn_debug.put_line('X_progress ' || x_progress);

1768: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1769: AND ( x_cascaded_table(n).from_organization_id IS NULL
1770: AND x_cascaded_table(n).from_organization_code IS NOT NULL) THEN
1771: IF (g_asn_debug = 'Y') THEN
1772: asn_debug.put_line('X_progress ' || x_progress);
1773: END IF;
1774:
1775: ship_to_org_record.organization_code := x_cascaded_table(n).from_organization_code;
1776: ship_to_org_record.organization_id := x_cascaded_table(n).from_organization_id;

Line 1780: IF (g_asn_debug = 'Y') THEN

1776: ship_to_org_record.organization_id := x_cascaded_table(n).from_organization_id;
1777: ship_to_org_record.error_record.error_status := 'S';
1778: ship_to_org_record.error_record.error_message := NULL;
1779:
1780: IF (g_asn_debug = 'Y') THEN
1781: asn_debug.put_line('In From Organization Procedure');
1782: END IF;
1783:
1784: po_orgs_sv.derive_org_info(ship_to_org_record);

Line 1781: asn_debug.put_line('In From Organization Procedure');

1777: ship_to_org_record.error_record.error_status := 'S';
1778: ship_to_org_record.error_record.error_message := NULL;
1779:
1780: IF (g_asn_debug = 'Y') THEN
1781: asn_debug.put_line('In From Organization Procedure');
1782: END IF;
1783:
1784: po_orgs_sv.derive_org_info(ship_to_org_record);
1785:

Line 1786: IF (g_asn_debug = 'Y') THEN

1782: END IF;
1783:
1784: po_orgs_sv.derive_org_info(ship_to_org_record);
1785:
1786: IF (g_asn_debug = 'Y') THEN
1787: asn_debug.put_line('From organization code ' || ship_to_org_record.organization_code);
1788: asn_debug.put_line('From organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1789: asn_debug.put_line('From organization error status ' || ship_to_org_record.error_record.error_status);
1790: END IF;

Line 1787: asn_debug.put_line('From organization code ' || ship_to_org_record.organization_code);

1783:
1784: po_orgs_sv.derive_org_info(ship_to_org_record);
1785:
1786: IF (g_asn_debug = 'Y') THEN
1787: asn_debug.put_line('From organization code ' || ship_to_org_record.organization_code);
1788: asn_debug.put_line('From organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1789: asn_debug.put_line('From organization error status ' || ship_to_org_record.error_record.error_status);
1790: END IF;
1791:

Line 1788: asn_debug.put_line('From organization id ' || TO_CHAR(ship_to_org_record.organization_id));

1784: po_orgs_sv.derive_org_info(ship_to_org_record);
1785:
1786: IF (g_asn_debug = 'Y') THEN
1787: asn_debug.put_line('From organization code ' || ship_to_org_record.organization_code);
1788: asn_debug.put_line('From organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1789: asn_debug.put_line('From organization error status ' || ship_to_org_record.error_record.error_status);
1790: END IF;
1791:
1792: x_cascaded_table(n).from_organization_code := ship_to_org_record.organization_code;

Line 1789: asn_debug.put_line('From organization error status ' || ship_to_org_record.error_record.error_status);

1785:
1786: IF (g_asn_debug = 'Y') THEN
1787: asn_debug.put_line('From organization code ' || ship_to_org_record.organization_code);
1788: asn_debug.put_line('From organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1789: asn_debug.put_line('From organization error status ' || ship_to_org_record.error_record.error_status);
1790: END IF;
1791:
1792: x_cascaded_table(n).from_organization_code := ship_to_org_record.organization_code;
1793: x_cascaded_table(n).from_organization_id := ship_to_org_record.organization_id;

Line 1815: IF (g_asn_debug = 'Y') THEN

1811: BEGIN
1812: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1813: AND ( x_cascaded_table(n).intransit_owning_org_id IS NULL
1814: AND x_cascaded_table(n).intransit_owning_org_code IS NOT NULL) THEN
1815: IF (g_asn_debug = 'Y') THEN
1816: asn_debug.put_line('X_progress ' || x_progress);
1817: END IF;
1818:
1819: ship_to_org_record.organization_code := x_cascaded_table(n).intransit_owning_org_code;

Line 1816: asn_debug.put_line('X_progress ' || x_progress);

1812: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1813: AND ( x_cascaded_table(n).intransit_owning_org_id IS NULL
1814: AND x_cascaded_table(n).intransit_owning_org_code IS NOT NULL) THEN
1815: IF (g_asn_debug = 'Y') THEN
1816: asn_debug.put_line('X_progress ' || x_progress);
1817: END IF;
1818:
1819: ship_to_org_record.organization_code := x_cascaded_table(n).intransit_owning_org_code;
1820: ship_to_org_record.organization_id := x_cascaded_table(n).intransit_owning_org_id;

Line 1824: IF (g_asn_debug = 'Y') THEN

1820: ship_to_org_record.organization_id := x_cascaded_table(n).intransit_owning_org_id;
1821: ship_to_org_record.error_record.error_status := 'S';
1822: ship_to_org_record.error_record.error_message := NULL;
1823:
1824: IF (g_asn_debug = 'Y') THEN
1825: asn_debug.put_line('In Intransit Owning Org Record Procedure');
1826: END IF;
1827:
1828: po_orgs_sv.derive_org_info(ship_to_org_record);

Line 1825: asn_debug.put_line('In Intransit Owning Org Record Procedure');

1821: ship_to_org_record.error_record.error_status := 'S';
1822: ship_to_org_record.error_record.error_message := NULL;
1823:
1824: IF (g_asn_debug = 'Y') THEN
1825: asn_debug.put_line('In Intransit Owning Org Record Procedure');
1826: END IF;
1827:
1828: po_orgs_sv.derive_org_info(ship_to_org_record);
1829:

Line 1830: IF (g_asn_debug = 'Y') THEN

1826: END IF;
1827:
1828: po_orgs_sv.derive_org_info(ship_to_org_record);
1829:
1830: IF (g_asn_debug = 'Y') THEN
1831: asn_debug.put_line('Intransit organization code ' || ship_to_org_record.organization_code);
1832: asn_debug.put_line('Intransit organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1833: asn_debug.put_line('Intransit error status ' || ship_to_org_record.error_record.error_status);
1834: END IF;

Line 1831: asn_debug.put_line('Intransit organization code ' || ship_to_org_record.organization_code);

1827:
1828: po_orgs_sv.derive_org_info(ship_to_org_record);
1829:
1830: IF (g_asn_debug = 'Y') THEN
1831: asn_debug.put_line('Intransit organization code ' || ship_to_org_record.organization_code);
1832: asn_debug.put_line('Intransit organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1833: asn_debug.put_line('Intransit error status ' || ship_to_org_record.error_record.error_status);
1834: END IF;
1835:

Line 1832: asn_debug.put_line('Intransit organization id ' || TO_CHAR(ship_to_org_record.organization_id));

1828: po_orgs_sv.derive_org_info(ship_to_org_record);
1829:
1830: IF (g_asn_debug = 'Y') THEN
1831: asn_debug.put_line('Intransit organization code ' || ship_to_org_record.organization_code);
1832: asn_debug.put_line('Intransit organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1833: asn_debug.put_line('Intransit error status ' || ship_to_org_record.error_record.error_status);
1834: END IF;
1835:
1836: x_cascaded_table(n).intransit_owning_org_code := ship_to_org_record.organization_code;

Line 1833: asn_debug.put_line('Intransit error status ' || ship_to_org_record.error_record.error_status);

1829:
1830: IF (g_asn_debug = 'Y') THEN
1831: asn_debug.put_line('Intransit organization code ' || ship_to_org_record.organization_code);
1832: asn_debug.put_line('Intransit organization id ' || TO_CHAR(ship_to_org_record.organization_id));
1833: asn_debug.put_line('Intransit error status ' || ship_to_org_record.error_record.error_status);
1834: END IF;
1835:
1836: x_cascaded_table(n).intransit_owning_org_code := ship_to_org_record.organization_code;
1837: x_cascaded_table(n).intransit_owning_org_id := ship_to_org_record.organization_id;

Line 1859: IF (g_asn_debug = 'Y') THEN

1855: BEGIN
1856: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1857: AND ( x_cascaded_table(n).location_id IS NULL
1858: AND x_cascaded_table(n).location_code IS NOT NULL) THEN
1859: IF (g_asn_debug = 'Y') THEN
1860: asn_debug.put_line('X_progress ' || x_progress);
1861: END IF;
1862:
1863: location_id_record.location_code := x_cascaded_table(n).location_code;

Line 1860: asn_debug.put_line('X_progress ' || x_progress);

1856: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1857: AND ( x_cascaded_table(n).location_id IS NULL
1858: AND x_cascaded_table(n).location_code IS NOT NULL) THEN
1859: IF (g_asn_debug = 'Y') THEN
1860: asn_debug.put_line('X_progress ' || x_progress);
1861: END IF;
1862:
1863: location_id_record.location_code := x_cascaded_table(n).location_code;
1864: location_id_record.error_record.error_status := 'S';

Line 1867: IF (g_asn_debug = 'Y') THEN

1863: location_id_record.location_code := x_cascaded_table(n).location_code;
1864: location_id_record.error_record.error_status := 'S';
1865: location_id_record.error_record.error_message := NULL;
1866:
1867: IF (g_asn_debug = 'Y') THEN
1868: asn_debug.put_line('Derive location_id');
1869: END IF;
1870:
1871: rcv_transactions_interface_sv.get_location_id(location_id_record);

Line 1868: asn_debug.put_line('Derive location_id');

1864: location_id_record.error_record.error_status := 'S';
1865: location_id_record.error_record.error_message := NULL;
1866:
1867: IF (g_asn_debug = 'Y') THEN
1868: asn_debug.put_line('Derive location_id');
1869: END IF;
1870:
1871: rcv_transactions_interface_sv.get_location_id(location_id_record);
1872: x_cascaded_table(n).location_id := location_id_record.location_id;

Line 1887: IF (g_asn_debug = 'Y') THEN

1883: BEGIN
1884: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1885: AND ( x_cascaded_table(n).ship_to_location_id IS NULL
1886: AND x_cascaded_table(n).ship_to_location_code IS NOT NULL) THEN
1887: IF (g_asn_debug = 'Y') THEN
1888: asn_debug.put_line('X_progress ' || x_progress);
1889: END IF;
1890:
1891: location_id_record.location_code := x_cascaded_table(n).ship_to_location_code;

Line 1888: asn_debug.put_line('X_progress ' || x_progress);

1884: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1885: AND ( x_cascaded_table(n).ship_to_location_id IS NULL
1886: AND x_cascaded_table(n).ship_to_location_code IS NOT NULL) THEN
1887: IF (g_asn_debug = 'Y') THEN
1888: asn_debug.put_line('X_progress ' || x_progress);
1889: END IF;
1890:
1891: location_id_record.location_code := x_cascaded_table(n).ship_to_location_code;
1892: location_id_record.error_record.error_status := 'S';

Line 1895: IF (g_asn_debug = 'Y') THEN

1891: location_id_record.location_code := x_cascaded_table(n).ship_to_location_code;
1892: location_id_record.error_record.error_status := 'S';
1893: location_id_record.error_record.error_message := NULL;
1894:
1895: IF (g_asn_debug = 'Y') THEN
1896: asn_debug.put_line('Derive ship to location_id');
1897: END IF;
1898:
1899: rcv_transactions_interface_sv.get_location_id(location_id_record);

Line 1896: asn_debug.put_line('Derive ship to location_id');

1892: location_id_record.error_record.error_status := 'S';
1893: location_id_record.error_record.error_message := NULL;
1894:
1895: IF (g_asn_debug = 'Y') THEN
1896: asn_debug.put_line('Derive ship to location_id');
1897: END IF;
1898:
1899: rcv_transactions_interface_sv.get_location_id(location_id_record);
1900: x_cascaded_table(n).ship_to_location_id := location_id_record.location_id;

Line 1915: IF (g_asn_debug = 'Y') THEN

1911: BEGIN
1912: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1913: AND ( x_cascaded_table(n).routing_header_id IS NULL
1914: AND x_cascaded_table(n).routing_code IS NOT NULL) THEN
1915: IF (g_asn_debug = 'Y') THEN
1916: asn_debug.put_line('X_progress ' || x_progress);
1917: END IF;
1918:
1919: routing_header_id_record.routing_code := x_cascaded_table(n).routing_code;

Line 1916: asn_debug.put_line('X_progress ' || x_progress);

1912: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1913: AND ( x_cascaded_table(n).routing_header_id IS NULL
1914: AND x_cascaded_table(n).routing_code IS NOT NULL) THEN
1915: IF (g_asn_debug = 'Y') THEN
1916: asn_debug.put_line('X_progress ' || x_progress);
1917: END IF;
1918:
1919: routing_header_id_record.routing_code := x_cascaded_table(n).routing_code;
1920: routing_header_id_record.error_record.error_status := 'S';

Line 1923: IF (g_asn_debug = 'Y') THEN

1919: routing_header_id_record.routing_code := x_cascaded_table(n).routing_code;
1920: routing_header_id_record.error_record.error_status := 'S';
1921: routing_header_id_record.error_record.error_message := NULL;
1922:
1923: IF (g_asn_debug = 'Y') THEN
1924: asn_debug.put_line('Derive routing_header_id');
1925: END IF;
1926:
1927: rcv_transactions_interface_sv.get_routing_header_id(routing_header_id_record);

Line 1924: asn_debug.put_line('Derive routing_header_id');

1920: routing_header_id_record.error_record.error_status := 'S';
1921: routing_header_id_record.error_record.error_message := NULL;
1922:
1923: IF (g_asn_debug = 'Y') THEN
1924: asn_debug.put_line('Derive routing_header_id');
1925: END IF;
1926:
1927: rcv_transactions_interface_sv.get_routing_header_id(routing_header_id_record);
1928: x_cascaded_table(n).routing_header_id := routing_header_id_record.routing_header_id;

Line 1943: IF (g_asn_debug = 'Y') THEN

1939: BEGIN
1940: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1941: AND ( x_cascaded_table(n).routing_step_id IS NULL
1942: AND x_cascaded_table(n).routing_step IS NOT NULL) THEN
1943: IF (g_asn_debug = 'Y') THEN
1944: asn_debug.put_line('X_progress ' || x_progress);
1945: END IF;
1946:
1947: routing_step_id_record.routing_step := x_cascaded_table(n).routing_step;

Line 1944: asn_debug.put_line('X_progress ' || x_progress);

1940: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1941: AND ( x_cascaded_table(n).routing_step_id IS NULL
1942: AND x_cascaded_table(n).routing_step IS NOT NULL) THEN
1943: IF (g_asn_debug = 'Y') THEN
1944: asn_debug.put_line('X_progress ' || x_progress);
1945: END IF;
1946:
1947: routing_step_id_record.routing_step := x_cascaded_table(n).routing_step;
1948: routing_step_id_record.error_record.error_status := 'S';

Line 1951: IF (g_asn_debug = 'Y') THEN

1947: routing_step_id_record.routing_step := x_cascaded_table(n).routing_step;
1948: routing_step_id_record.error_record.error_status := 'S';
1949: routing_step_id_record.error_record.error_message := NULL;
1950:
1951: IF (g_asn_debug = 'Y') THEN
1952: asn_debug.put_line('Derive routing Step Id');
1953: END IF;
1954:
1955: rcv_transactions_interface_sv.get_routing_step_id(routing_step_id_record);

Line 1952: asn_debug.put_line('Derive routing Step Id');

1948: routing_step_id_record.error_record.error_status := 'S';
1949: routing_step_id_record.error_record.error_message := NULL;
1950:
1951: IF (g_asn_debug = 'Y') THEN
1952: asn_debug.put_line('Derive routing Step Id');
1953: END IF;
1954:
1955: rcv_transactions_interface_sv.get_routing_step_id(routing_step_id_record);
1956: x_cascaded_table(n).routing_step_id := routing_step_id_record.routing_step_id;

Line 1971: IF (g_asn_debug = 'Y') THEN

1967: BEGIN
1968: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1969: AND ( x_cascaded_table(n).deliver_to_person_id IS NULL
1970: AND x_cascaded_table(n).deliver_to_person_name IS NOT NULL) THEN
1971: IF (g_asn_debug = 'Y') THEN
1972: asn_debug.put_line('X_progress ' || x_progress);
1973: END IF;
1974:
1975: employee_id_record.employee_name := x_cascaded_table(n).deliver_to_person_name;

Line 1972: asn_debug.put_line('X_progress ' || x_progress);

1968: IF (x_cascaded_table(n).error_status IN('S', 'W'))
1969: AND ( x_cascaded_table(n).deliver_to_person_id IS NULL
1970: AND x_cascaded_table(n).deliver_to_person_name IS NOT NULL) THEN
1971: IF (g_asn_debug = 'Y') THEN
1972: asn_debug.put_line('X_progress ' || x_progress);
1973: END IF;
1974:
1975: employee_id_record.employee_name := x_cascaded_table(n).deliver_to_person_name;
1976: employee_id_record.employee_id := x_cascaded_table(n).deliver_to_person_id;

Line 1980: IF (g_asn_debug = 'Y') THEN

1976: employee_id_record.employee_id := x_cascaded_table(n).deliver_to_person_id;
1977: employee_id_record.error_record.error_status := 'S';
1978: employee_id_record.error_record.error_message := NULL;
1979:
1980: IF (g_asn_debug = 'Y') THEN
1981: asn_debug.put_line('In Derive deliver_to_person_id Information');
1982: END IF;
1983:
1984: po_employees_sv.derive_employee_info(employee_id_record);

Line 1981: asn_debug.put_line('In Derive deliver_to_person_id Information');

1977: employee_id_record.error_record.error_status := 'S';
1978: employee_id_record.error_record.error_message := NULL;
1979:
1980: IF (g_asn_debug = 'Y') THEN
1981: asn_debug.put_line('In Derive deliver_to_person_id Information');
1982: END IF;
1983:
1984: po_employees_sv.derive_employee_info(employee_id_record);
1985:

Line 1986: IF (g_asn_debug = 'Y') THEN

1982: END IF;
1983:
1984: po_employees_sv.derive_employee_info(employee_id_record);
1985:
1986: IF (g_asn_debug = 'Y') THEN
1987: asn_debug.put_line('Employee name ' || employee_id_record.employee_name);
1988: asn_debug.put_line('Employee id ' || TO_CHAR(employee_id_record.employee_id));
1989: asn_debug.put_line('Employee error status ' || employee_id_record.error_record.error_status);
1990: END IF;

Line 1987: asn_debug.put_line('Employee name ' || employee_id_record.employee_name);

1983:
1984: po_employees_sv.derive_employee_info(employee_id_record);
1985:
1986: IF (g_asn_debug = 'Y') THEN
1987: asn_debug.put_line('Employee name ' || employee_id_record.employee_name);
1988: asn_debug.put_line('Employee id ' || TO_CHAR(employee_id_record.employee_id));
1989: asn_debug.put_line('Employee error status ' || employee_id_record.error_record.error_status);
1990: END IF;
1991:

Line 1988: asn_debug.put_line('Employee id ' || TO_CHAR(employee_id_record.employee_id));

1984: po_employees_sv.derive_employee_info(employee_id_record);
1985:
1986: IF (g_asn_debug = 'Y') THEN
1987: asn_debug.put_line('Employee name ' || employee_id_record.employee_name);
1988: asn_debug.put_line('Employee id ' || TO_CHAR(employee_id_record.employee_id));
1989: asn_debug.put_line('Employee error status ' || employee_id_record.error_record.error_status);
1990: END IF;
1991:
1992: x_cascaded_table(n).deliver_to_person_name := employee_id_record.employee_name;

Line 1989: asn_debug.put_line('Employee error status ' || employee_id_record.error_record.error_status);

1985:
1986: IF (g_asn_debug = 'Y') THEN
1987: asn_debug.put_line('Employee name ' || employee_id_record.employee_name);
1988: asn_debug.put_line('Employee id ' || TO_CHAR(employee_id_record.employee_id));
1989: asn_debug.put_line('Employee error status ' || employee_id_record.error_record.error_status);
1990: END IF;
1991:
1992: x_cascaded_table(n).deliver_to_person_name := employee_id_record.employee_name;
1993: x_cascaded_table(n).deliver_to_person_id := employee_id_record.employee_id;

Line 2015: IF (g_asn_debug = 'Y') THEN

2011: BEGIN
2012: IF (x_cascaded_table(n).error_status IN('S', 'W'))
2013: AND ( x_cascaded_table(n).deliver_to_location_id IS NULL
2014: AND x_cascaded_table(n).deliver_to_location_code IS NOT NULL) THEN
2015: IF (g_asn_debug = 'Y') THEN
2016: asn_debug.put_line('X_progress ' || x_progress);
2017: END IF;
2018:
2019: location_id_record.location_code := x_cascaded_table(n).deliver_to_location_code;

Line 2016: asn_debug.put_line('X_progress ' || x_progress);

2012: IF (x_cascaded_table(n).error_status IN('S', 'W'))
2013: AND ( x_cascaded_table(n).deliver_to_location_id IS NULL
2014: AND x_cascaded_table(n).deliver_to_location_code IS NOT NULL) THEN
2015: IF (g_asn_debug = 'Y') THEN
2016: asn_debug.put_line('X_progress ' || x_progress);
2017: END IF;
2018:
2019: location_id_record.location_code := x_cascaded_table(n).deliver_to_location_code;
2020: location_id_record.error_record.error_status := 'S';

Line 2023: IF (g_asn_debug = 'Y') THEN

2019: location_id_record.location_code := x_cascaded_table(n).deliver_to_location_code;
2020: location_id_record.error_record.error_status := 'S';
2021: location_id_record.error_record.error_message := NULL;
2022:
2023: IF (g_asn_debug = 'Y') THEN
2024: asn_debug.put_line('Derive deliver_to_location_id');
2025: END IF;
2026:
2027: rcv_transactions_interface_sv.get_location_id(location_id_record);

Line 2024: asn_debug.put_line('Derive deliver_to_location_id');

2020: location_id_record.error_record.error_status := 'S';
2021: location_id_record.error_record.error_message := NULL;
2022:
2023: IF (g_asn_debug = 'Y') THEN
2024: asn_debug.put_line('Derive deliver_to_location_id');
2025: END IF;
2026:
2027: rcv_transactions_interface_sv.get_location_id(location_id_record);
2028: x_cascaded_table(n).deliver_to_location_id := location_id_record.location_id;

Line 2042: IF (g_asn_debug = 'Y') THEN

2038: ) IS
2039: BEGIN
2040: IF ( x_cascaded_table(n).from_locator_id IS NULL
2041: AND x_cascaded_table(n).from_locator IS NOT NULL) THEN
2042: IF (g_asn_debug = 'Y') THEN
2043: asn_debug.put_line('inside derive_from_locator_id');
2044: END IF;
2045:
2046: SELECT MAX(ml.inventory_location_id)

Line 2043: asn_debug.put_line('inside derive_from_locator_id');

2039: BEGIN
2040: IF ( x_cascaded_table(n).from_locator_id IS NULL
2041: AND x_cascaded_table(n).from_locator IS NOT NULL) THEN
2042: IF (g_asn_debug = 'Y') THEN
2043: asn_debug.put_line('inside derive_from_locator_id');
2044: END IF;
2045:
2046: SELECT MAX(ml.inventory_location_id)
2047: INTO x_cascaded_table(n).from_locator_id

Line 2076: IF (g_asn_debug = 'Y') THEN

2072: IF ( x_cascaded_table(n).locator_id IS NULL
2073: AND x_cascaded_table(n).LOCATOR IS NOT NULL
2074: AND x_cascaded_table(n).subinventory IS NOT NULL) THEN /* Bug3993867 */
2075:
2076: IF (g_asn_debug = 'Y') THEN
2077: asn_debug.put_line('inside derive_to_locator_id');
2078: END IF;
2079:
2080: SELECT MAX(ml.inventory_location_id)

Line 2077: asn_debug.put_line('inside derive_to_locator_id');

2073: AND x_cascaded_table(n).LOCATOR IS NOT NULL
2074: AND x_cascaded_table(n).subinventory IS NOT NULL) THEN /* Bug3993867 */
2075:
2076: IF (g_asn_debug = 'Y') THEN
2077: asn_debug.put_line('inside derive_to_locator_id');
2078: END IF;
2079:
2080: SELECT MAX(ml.inventory_location_id)
2081: INTO x_cascaded_table(n).locator_id

Line 2106: IF (g_asn_debug = 'Y') THEN

2102: x_cascaded_table IN OUT NOCOPY rcv_roi_preprocessor.cascaded_trans_tab_type,
2103: n IN BINARY_INTEGER
2104: ) IS
2105: BEGIN
2106: IF (g_asn_debug = 'Y') THEN
2107: asn_debug.put_line('In validate_non_services_fields');
2108: END IF;
2109:
2110: IF x_cascaded_table(n).matching_basis = 'AMOUNT' THEN --{

Line 2107: asn_debug.put_line('In validate_non_services_fields');

2103: n IN BINARY_INTEGER
2104: ) IS
2105: BEGIN
2106: IF (g_asn_debug = 'Y') THEN
2107: asn_debug.put_line('In validate_non_services_fields');
2108: END IF;
2109:
2110: IF x_cascaded_table(n).matching_basis = 'AMOUNT' THEN --{
2111: IF (g_asn_debug = 'Y') THEN

Line 2111: IF (g_asn_debug = 'Y') THEN

2107: asn_debug.put_line('In validate_non_services_fields');
2108: END IF;
2109:
2110: IF x_cascaded_table(n).matching_basis = 'AMOUNT' THEN --{
2111: IF (g_asn_debug = 'Y') THEN
2112: asn_debug.put_line('In first part validate_non_services_fields');
2113: END IF;
2114:
2115: /* Bug 5186378: Added the following condtions,

Line 2112: asn_debug.put_line('In first part validate_non_services_fields');

2108: END IF;
2109:
2110: IF x_cascaded_table(n).matching_basis = 'AMOUNT' THEN --{
2111: IF (g_asn_debug = 'Y') THEN
2112: asn_debug.put_line('In first part validate_non_services_fields');
2113: END IF;
2114:
2115: /* Bug 5186378: Added the following condtions,
2116: * 1) source_doc_quantity <> 0 and

Line 2143: IF (g_asn_debug = 'Y') THEN

2139:
2140: IF x_cascaded_table(n).error_status IN('S', 'W') THEN --{
2141: IF ( x_cascaded_table(n).value_basis = 'RATE'
2142: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR') THEN
2143: IF (g_asn_debug = 'Y') THEN
2144: asn_debug.put_line('RATE/TEMP LABOR. They can have the foll values. Hence return.');
2145: END IF;
2146:
2147: RETURN;

Line 2144: asn_debug.put_line('RATE/TEMP LABOR. They can have the foll values. Hence return.');

2140: IF x_cascaded_table(n).error_status IN('S', 'W') THEN --{
2141: IF ( x_cascaded_table(n).value_basis = 'RATE'
2142: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR') THEN
2143: IF (g_asn_debug = 'Y') THEN
2144: asn_debug.put_line('RATE/TEMP LABOR. They can have the foll values. Hence return.');
2145: END IF;
2146:
2147: RETURN;
2148: END IF;

Line 2160: IF (g_asn_debug = 'Y') THEN

2156: OR x_cascaded_table(n).po_unit_price IS NOT NULL
2157: OR x_cascaded_table(n).timecard_id IS NOT NULL
2158: OR x_cascaded_table(n).timecard_ovn IS NOT NULL
2159: ) THEN --{
2160: IF (g_asn_debug = 'Y') THEN
2161: asn_debug.put_line('Not RATE/TEMP LABOR');
2162: END IF;
2163:
2164: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 2161: asn_debug.put_line('Not RATE/TEMP LABOR');

2157: OR x_cascaded_table(n).timecard_id IS NOT NULL
2158: OR x_cascaded_table(n).timecard_ovn IS NOT NULL
2159: ) THEN --{
2160: IF (g_asn_debug = 'Y') THEN
2161: asn_debug.put_line('Not RATE/TEMP LABOR');
2162: END IF;
2163:
2164: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
2165: rcv_error_pkg.set_error_message('RCV_IRRELEVANT_VALUES', x_cascaded_table(n).error_message);

Line 2171: IF (g_asn_debug = 'Y') THEN

2167: END IF; --}
2168: END IF; --}
2169: END IF; --}
2170:
2171: IF (g_asn_debug = 'Y') THEN
2172: asn_debug.put_line('Leave validate_non_services_fields');
2173: END IF;
2174: EXCEPTION
2175: WHEN OTHERS THEN

Line 2172: asn_debug.put_line('Leave validate_non_services_fields');

2168: END IF; --}
2169: END IF; --}
2170:
2171: IF (g_asn_debug = 'Y') THEN
2172: asn_debug.put_line('Leave validate_non_services_fields');
2173: END IF;
2174: EXCEPTION
2175: WHEN OTHERS THEN
2176: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_unexp_error;

Line 2196: IF (g_asn_debug = 'Y') THEN

2192: l_from_locator_id rcv_transactions.from_locator_id%TYPE;
2193: l_to_subinventory rcv_transactions.subinventory%TYPE;
2194: l_to_locator_id rcv_transactions.locator_id%TYPE;
2195: BEGIN
2196: IF (g_asn_debug = 'Y') THEN
2197: asn_debug.put_line('inside default_from_subloc_info');
2198: END IF;
2199:
2200: /* If parent_interface_id is not null then it means it is a parent

Line 2197: asn_debug.put_line('inside default_from_subloc_info');

2193: l_to_subinventory rcv_transactions.subinventory%TYPE;
2194: l_to_locator_id rcv_transactions.locator_id%TYPE;
2195: BEGIN
2196: IF (g_asn_debug = 'Y') THEN
2197: asn_debug.put_line('inside default_from_subloc_info');
2198: END IF;
2199:
2200: /* If parent_interface_id is not null then it means it is a parent
2201: * child relation ship. So look in rti. If parent_transaction_id

Line 2228: IF (g_asn_debug = 'Y') THEN

2224: FROM rcv_transactions rt
2225: WHERE rt.transaction_id = x_cascaded_table(n).parent_transaction_id;
2226: END IF;
2227:
2228: IF (g_asn_debug = 'Y') THEN
2229: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2230: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2231: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2232: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);

Line 2229: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);

2225: WHERE rt.transaction_id = x_cascaded_table(n).parent_transaction_id;
2226: END IF;
2227:
2228: IF (g_asn_debug = 'Y') THEN
2229: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2230: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2231: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2232: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2233: END IF;

Line 2230: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);

2226: END IF;
2227:
2228: IF (g_asn_debug = 'Y') THEN
2229: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2230: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2231: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2232: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2233: END IF;
2234:

Line 2231: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);

2227:
2228: IF (g_asn_debug = 'Y') THEN
2229: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2230: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2231: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2232: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2233: END IF;
2234:
2235: /* For Accept, Reject and +ve corrections, from_subinventory and

Line 2232: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);

2228: IF (g_asn_debug = 'Y') THEN
2229: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2230: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2231: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2232: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2233: END IF;
2234:
2235: /* For Accept, Reject and +ve corrections, from_subinventory and
2236: * from_locator is same as that of the parent. For RTV, this will come here only

Line 2255: IF (g_asn_debug = 'Y') THEN

2251: x_cascaded_table(n).from_subinventory := l_to_subinventory;
2252: x_cascaded_table(n).from_locator_id := l_to_locator_id;
2253: END IF;
2254:
2255: IF (g_asn_debug = 'Y') THEN
2256: asn_debug.put_line('x_cascaded_table(n).from_subinventory ' || x_cascaded_table(n).from_subinventory);
2257: asn_debug.put_line('x_cascaded_table(n).from_locator_id ' || x_cascaded_table(n).from_locator_id);
2258: END IF;
2259: EXCEPTION

Line 2256: asn_debug.put_line('x_cascaded_table(n).from_subinventory ' || x_cascaded_table(n).from_subinventory);

2252: x_cascaded_table(n).from_locator_id := l_to_locator_id;
2253: END IF;
2254:
2255: IF (g_asn_debug = 'Y') THEN
2256: asn_debug.put_line('x_cascaded_table(n).from_subinventory ' || x_cascaded_table(n).from_subinventory);
2257: asn_debug.put_line('x_cascaded_table(n).from_locator_id ' || x_cascaded_table(n).from_locator_id);
2258: END IF;
2259: EXCEPTION
2260: WHEN OTHERS THEN

Line 2257: asn_debug.put_line('x_cascaded_table(n).from_locator_id ' || x_cascaded_table(n).from_locator_id);

2253: END IF;
2254:
2255: IF (g_asn_debug = 'Y') THEN
2256: asn_debug.put_line('x_cascaded_table(n).from_subinventory ' || x_cascaded_table(n).from_subinventory);
2257: asn_debug.put_line('x_cascaded_table(n).from_locator_id ' || x_cascaded_table(n).from_locator_id);
2258: END IF;
2259: EXCEPTION
2260: WHEN OTHERS THEN
2261: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_unexp_error;

Line 2279: IF (g_asn_debug = 'Y') THEN

2275: x_default_subinventory VARCHAR2(10);
2276: x_default_locator_id NUMBER;
2277: x_success BOOLEAN;
2278: BEGIN
2279: IF (g_asn_debug = 'Y') THEN
2280: asn_debug.put_line('inside default_to_subloc_info');
2281: END IF;
2282:
2283: /* Get default subinventory from the setup if it is a direct delivery

Line 2280: asn_debug.put_line('inside default_to_subloc_info');

2276: x_default_locator_id NUMBER;
2277: x_success BOOLEAN;
2278: BEGIN
2279: IF (g_asn_debug = 'Y') THEN
2280: asn_debug.put_line('inside default_to_subloc_info');
2281: END IF;
2282:
2283: /* Get default subinventory from the setup if it is a direct delivery
2284: * or just a delivery and if subinventory is null.

Line 2307: IF (g_asn_debug = 'Y') THEN

2303: x_cascaded_table(n).item_id,
2304: x_cascaded_table(n).subinventory
2305: );
2306:
2307: IF (g_asn_debug = 'Y') THEN
2308: asn_debug.put_line('Defaulting subinventory from item: Sub = ' || x_cascaded_table(n).subinventory);
2309: END IF;
2310: END IF; --} (X_cascaded_table(n).subinventory IS NULL)
2311: END IF; --}

Line 2308: asn_debug.put_line('Defaulting subinventory from item: Sub = ' || x_cascaded_table(n).subinventory);

2304: x_cascaded_table(n).subinventory
2305: );
2306:
2307: IF (g_asn_debug = 'Y') THEN
2308: asn_debug.put_line('Defaulting subinventory from item: Sub = ' || x_cascaded_table(n).subinventory);
2309: END IF;
2310: END IF; --} (X_cascaded_table(n).subinventory IS NULL)
2311: END IF; --}
2312:

Line 2325: IF (g_asn_debug = 'Y') THEN

2321: x_cascaded_table(n).item_id,
2322: x_locator_control
2323: );
2324:
2325: IF (g_asn_debug = 'Y') THEN
2326: asn_debug.put_line('Locator Control = ' || TO_CHAR(x_locator_control));
2327: END IF;
2328:
2329: /*

Line 2326: asn_debug.put_line('Locator Control = ' || TO_CHAR(x_locator_control));

2322: x_locator_control
2323: );
2324:
2325: IF (g_asn_debug = 'Y') THEN
2326: asn_debug.put_line('Locator Control = ' || TO_CHAR(x_locator_control));
2327: END IF;
2328:
2329: /*
2330: ** If locator control is 2 which means it is under predefined

Line 2344: IF (g_asn_debug = 'Y') THEN

2340: x_cascaded_table(n).subinventory,
2341: x_cascaded_table(n).locator_id
2342: );
2343:
2344: IF (g_asn_debug = 'Y') THEN
2345: asn_debug.put_line('Defaulting locator from Sub: Locator_id = ' || TO_CHAR(x_cascaded_table(n).locator_id));
2346: END IF;
2347: END IF; --}
2348: END IF; --} matches subinventory not null

Line 2345: asn_debug.put_line('Defaulting locator from Sub: Locator_id = ' || TO_CHAR(x_cascaded_table(n).locator_id));

2341: x_cascaded_table(n).locator_id
2342: );
2343:
2344: IF (g_asn_debug = 'Y') THEN
2345: asn_debug.put_line('Defaulting locator from Sub: Locator_id = ' || TO_CHAR(x_cascaded_table(n).locator_id));
2346: END IF;
2347: END IF; --}
2348: END IF; --} matches subinventory not null
2349:

Line 2387: IF (g_asn_debug = 'Y') THEN

2383: * been enabled and change the transaction back to ASN import*/
2384: IF ( (x_auto_deliver = 'Y') AND
2385: (x_cascaded_table(n).subinventory IS NULL)) THEN --{
2386:
2387: IF (g_asn_debug = 'Y') THEN
2388: asn_debug.put_line('Warning: Changing the dropship ASN auto deliver back to ASN import.');
2389: asn_debug.put_line('Cause: Receiving preprocessor could not default a subinventory for this trxn.');
2390: END IF;
2391:

Line 2388: asn_debug.put_line('Warning: Changing the dropship ASN auto deliver back to ASN import.');

2384: IF ( (x_auto_deliver = 'Y') AND
2385: (x_cascaded_table(n).subinventory IS NULL)) THEN --{
2386:
2387: IF (g_asn_debug = 'Y') THEN
2388: asn_debug.put_line('Warning: Changing the dropship ASN auto deliver back to ASN import.');
2389: asn_debug.put_line('Cause: Receiving preprocessor could not default a subinventory for this trxn.');
2390: END IF;
2391:
2392: -- Change the transaction back to ASN import

Line 2389: asn_debug.put_line('Cause: Receiving preprocessor could not default a subinventory for this trxn.');

2385: (x_cascaded_table(n).subinventory IS NULL)) THEN --{
2386:
2387: IF (g_asn_debug = 'Y') THEN
2388: asn_debug.put_line('Warning: Changing the dropship ASN auto deliver back to ASN import.');
2389: asn_debug.put_line('Cause: Receiving preprocessor could not default a subinventory for this trxn.');
2390: END IF;
2391:
2392: -- Change the transaction back to ASN import
2393: x_cascaded_table(n).transaction_type := 'SHIP';

Line 2419: IF (g_asn_debug = 'Y') THEN

2415: IF ( ( ( x_cascaded_table(n).transaction_type = 'CORRECT'
2416: AND SIGN(x_cascaded_table(n).quantity) = 1)
2417: OR (x_cascaded_table(n).transaction_type = 'RETURN TO RECEIVING'))
2418: AND (x_cascaded_table(n).transfer_lpn_id IS NOT NULL)) THEN
2419: IF (g_asn_debug = 'Y') THEN
2420: asn_debug.put_line('+Ve correct or RTR with transfer_lpn_id not null');
2421: END IF;
2422:
2423: SELECT subinventory_code,

Line 2420: asn_debug.put_line('+Ve correct or RTR with transfer_lpn_id not null');

2416: AND SIGN(x_cascaded_table(n).quantity) = 1)
2417: OR (x_cascaded_table(n).transaction_type = 'RETURN TO RECEIVING'))
2418: AND (x_cascaded_table(n).transfer_lpn_id IS NOT NULL)) THEN
2419: IF (g_asn_debug = 'Y') THEN
2420: asn_debug.put_line('+Ve correct or RTR with transfer_lpn_id not null');
2421: END IF;
2422:
2423: SELECT subinventory_code,
2424: locator_id

Line 2430: IF (g_asn_debug = 'Y') THEN

2426: x_cascaded_table(n).locator_id
2427: FROM wms_license_plate_numbers
2428: WHERE lpn_id = x_cascaded_table(n).transfer_lpn_id;
2429:
2430: IF (g_asn_debug = 'Y') THEN
2431: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2432: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2433: asn_debug.put_line('Return ');
2434: END IF;

Line 2431: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);

2427: FROM wms_license_plate_numbers
2428: WHERE lpn_id = x_cascaded_table(n).transfer_lpn_id;
2429:
2430: IF (g_asn_debug = 'Y') THEN
2431: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2432: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2433: asn_debug.put_line('Return ');
2434: END IF;
2435:

Line 2432: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);

2428: WHERE lpn_id = x_cascaded_table(n).transfer_lpn_id;
2429:
2430: IF (g_asn_debug = 'Y') THEN
2431: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2432: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2433: asn_debug.put_line('Return ');
2434: END IF;
2435:
2436: RETURN;

Line 2433: asn_debug.put_line('Return ');

2429:
2430: IF (g_asn_debug = 'Y') THEN
2431: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2432: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2433: asn_debug.put_line('Return ');
2434: END IF;
2435:
2436: RETURN;
2437: END IF;

Line 2442: IF (g_asn_debug = 'Y') THEN

2438:
2439: IF ( ( x_cascaded_table(n).transaction_type = 'CORRECT'
2440: AND SIGN(x_cascaded_table(n).quantity) = -1)
2441: AND (x_cascaded_table(n).lpn_id IS NOT NULL)) THEN
2442: IF (g_asn_debug = 'Y') THEN
2443: asn_debug.put_line('-Ve correct with lpn_id not null');
2444: END IF;
2445:
2446: SELECT subinventory_code,

Line 2443: asn_debug.put_line('-Ve correct with lpn_id not null');

2439: IF ( ( x_cascaded_table(n).transaction_type = 'CORRECT'
2440: AND SIGN(x_cascaded_table(n).quantity) = -1)
2441: AND (x_cascaded_table(n).lpn_id IS NOT NULL)) THEN
2442: IF (g_asn_debug = 'Y') THEN
2443: asn_debug.put_line('-Ve correct with lpn_id not null');
2444: END IF;
2445:
2446: SELECT subinventory_code,
2447: locator_id

Line 2453: IF (g_asn_debug = 'Y') THEN

2449: x_cascaded_table(n).locator_id
2450: FROM wms_license_plate_numbers
2451: WHERE lpn_id = x_cascaded_table(n).lpn_id;
2452:
2453: IF (g_asn_debug = 'Y') THEN
2454: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2455: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2456: asn_debug.put_line('Return ');
2457: END IF;

Line 2454: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);

2450: FROM wms_license_plate_numbers
2451: WHERE lpn_id = x_cascaded_table(n).lpn_id;
2452:
2453: IF (g_asn_debug = 'Y') THEN
2454: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2455: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2456: asn_debug.put_line('Return ');
2457: END IF;
2458:

Line 2455: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);

2451: WHERE lpn_id = x_cascaded_table(n).lpn_id;
2452:
2453: IF (g_asn_debug = 'Y') THEN
2454: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2455: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2456: asn_debug.put_line('Return ');
2457: END IF;
2458:
2459: RETURN;

Line 2456: asn_debug.put_line('Return ');

2452:
2453: IF (g_asn_debug = 'Y') THEN
2454: asn_debug.put_line('Sub is ' || x_cascaded_table(n).subinventory);
2455: asn_debug.put_line('Loc is ' || x_cascaded_table(n).locator_id);
2456: asn_debug.put_line('Return ');
2457: END IF;
2458:
2459: RETURN;
2460: END IF;

Line 2492: IF (g_asn_debug = 'Y') THEN

2488: FROM rcv_transactions rt
2489: WHERE rt.transaction_id = x_cascaded_table(n).parent_transaction_id;
2490: END IF;
2491:
2492: IF (g_asn_debug = 'Y') THEN
2493: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2494: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2495: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2496: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);

Line 2493: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);

2489: WHERE rt.transaction_id = x_cascaded_table(n).parent_transaction_id;
2490: END IF;
2491:
2492: IF (g_asn_debug = 'Y') THEN
2493: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2494: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2495: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2496: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2497: END IF;

Line 2494: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);

2490: END IF;
2491:
2492: IF (g_asn_debug = 'Y') THEN
2493: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2494: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2495: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2496: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2497: END IF;
2498:

Line 2495: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);

2491:
2492: IF (g_asn_debug = 'Y') THEN
2493: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2494: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2495: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2496: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2497: END IF;
2498:
2499: /* For Accept, Reject and +ve corrections, to_subinventory and

Line 2496: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);

2492: IF (g_asn_debug = 'Y') THEN
2493: asn_debug.put_line('l_to_subinventory ' || l_to_subinventory);
2494: asn_debug.put_line('l_to_locator_id ' || l_to_locator_id);
2495: asn_debug.put_line('l_from_subinventory, ' || l_from_subinventory);
2496: asn_debug.put_line('l_from_locator_id ' || l_from_locator_id);
2497: END IF;
2498:
2499: /* For Accept, Reject and +ve corrections, to_subinventory and
2500: * to_locator is same as that of the parent.

Line 2512: IF (g_asn_debug = 'Y') THEN

2508: x_cascaded_table(n).subinventory := l_from_subinventory;
2509: x_cascaded_table(n).locator_id := l_from_locator_id;
2510: END IF;
2511:
2512: IF (g_asn_debug = 'Y') THEN
2513: asn_debug.put_line('x_cascaded_table(n).subinventory ' || x_cascaded_table(n).subinventory);
2514: asn_debug.put_line('x_cascaded_table(n).locator_id ' || x_cascaded_table(n).locator_id);
2515: END IF;
2516:

Line 2513: asn_debug.put_line('x_cascaded_table(n).subinventory ' || x_cascaded_table(n).subinventory);

2509: x_cascaded_table(n).locator_id := l_from_locator_id;
2510: END IF;
2511:
2512: IF (g_asn_debug = 'Y') THEN
2513: asn_debug.put_line('x_cascaded_table(n).subinventory ' || x_cascaded_table(n).subinventory);
2514: asn_debug.put_line('x_cascaded_table(n).locator_id ' || x_cascaded_table(n).locator_id);
2515: END IF;
2516:
2517: EXCEPTION

Line 2514: asn_debug.put_line('x_cascaded_table(n).locator_id ' || x_cascaded_table(n).locator_id);

2510: END IF;
2511:
2512: IF (g_asn_debug = 'Y') THEN
2513: asn_debug.put_line('x_cascaded_table(n).subinventory ' || x_cascaded_table(n).subinventory);
2514: asn_debug.put_line('x_cascaded_table(n).locator_id ' || x_cascaded_table(n).locator_id);
2515: END IF;
2516:
2517: EXCEPTION
2518: WHEN OTHERS THEN

Line 2534: IF (g_asn_debug = 'Y') THEN

2530: BEGIN
2531: IF (x_cascaded_table(n).error_status IN('S', 'W'))
2532: AND ( x_cascaded_table(n).reason_id IS NULL
2533: AND x_cascaded_table(n).reason_name IS NOT NULL) THEN
2534: IF (g_asn_debug = 'Y') THEN
2535: asn_debug.put_line('X_progress ' || x_progress);
2536: END IF;
2537:
2538: reason_id_record.reason_name := x_cascaded_table(n).reason_name;

Line 2535: asn_debug.put_line('X_progress ' || x_progress);

2531: IF (x_cascaded_table(n).error_status IN('S', 'W'))
2532: AND ( x_cascaded_table(n).reason_id IS NULL
2533: AND x_cascaded_table(n).reason_name IS NOT NULL) THEN
2534: IF (g_asn_debug = 'Y') THEN
2535: asn_debug.put_line('X_progress ' || x_progress);
2536: END IF;
2537:
2538: reason_id_record.reason_name := x_cascaded_table(n).reason_name;
2539: reason_id_record.error_record.error_status := 'S';

Line 2542: IF (g_asn_debug = 'Y') THEN

2538: reason_id_record.reason_name := x_cascaded_table(n).reason_name;
2539: reason_id_record.error_record.error_status := 'S';
2540: reason_id_record.error_record.error_message := NULL;
2541:
2542: IF (g_asn_debug = 'Y') THEN
2543: asn_debug.put_line('Derive Reason_id');
2544: END IF;
2545:
2546: rcv_transactions_interface_sv.get_reason_id(reason_id_record);

Line 2543: asn_debug.put_line('Derive Reason_id');

2539: reason_id_record.error_record.error_status := 'S';
2540: reason_id_record.error_record.error_message := NULL;
2541:
2542: IF (g_asn_debug = 'Y') THEN
2543: asn_debug.put_line('Derive Reason_id');
2544: END IF;
2545:
2546: rcv_transactions_interface_sv.get_reason_id(reason_id_record);
2547: x_cascaded_table(n).reason_id := reason_id_record.reason_id;

Line 2569: IF (g_asn_debug = 'Y') THEN

2565: WHERE line_location_id = x_cascaded_table(n).po_line_location_id;
2566: -- if no data found, do nothing
2567: EXCEPTION
2568: WHEN NO_DATA_FOUND THEN
2569: IF (g_asn_debug = 'Y') THEN
2570: asn_debug.put_line('No data found for dropship flag');
2571: END IF;
2572: END;
2573:

Line 2570: asn_debug.put_line('No data found for dropship flag');

2566: -- if no data found, do nothing
2567: EXCEPTION
2568: WHEN NO_DATA_FOUND THEN
2569: IF (g_asn_debug = 'Y') THEN
2570: asn_debug.put_line('No data found for dropship flag');
2571: END IF;
2572: END;
2573:
2574: /* FPJ Services. If matching_basis is AMOUNT, then this is a service

Line 2589: IF (g_asn_debug = 'Y') THEN

2585: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;
2586: rcv_error_pkg.set_error_message('RCV_DIRECT_DEL_REQ', x_cascaded_table(n).error_message);
2587: rcv_error_pkg.log_interface_warning('DOCUMENT_NUM');
2588:
2589: IF (g_asn_debug = 'Y') THEN
2590: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);
2591: END IF;
2592: END IF; --}
2593:

Line 2590: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);

2586: rcv_error_pkg.set_error_message('RCV_DIRECT_DEL_REQ', x_cascaded_table(n).error_message);
2587: rcv_error_pkg.log_interface_warning('DOCUMENT_NUM');
2588:
2589: IF (g_asn_debug = 'Y') THEN
2590: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);
2591: END IF;
2592: END IF; --}
2593:
2594: IF (g_asn_debug = 'Y') THEN

Line 2594: IF (g_asn_debug = 'Y') THEN

2590: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);
2591: END IF;
2592: END IF; --}
2593:
2594: IF (g_asn_debug = 'Y') THEN
2595: asn_debug.put_line('Matching Basis is Amount:Setting RCV Routing to Direct Deliver');
2596: END IF;
2597:
2598: x_cascaded_table(n).routing_header_id := 3;

Line 2595: asn_debug.put_line('Matching Basis is Amount:Setting RCV Routing to Direct Deliver');

2591: END IF;
2592: END IF; --}
2593:
2594: IF (g_asn_debug = 'Y') THEN
2595: asn_debug.put_line('Matching Basis is Amount:Setting RCV Routing to Direct Deliver');
2596: END IF;
2597:
2598: x_cascaded_table(n).routing_header_id := 3;
2599: x_cascaded_table(n).auto_transact_code := 'DELIVER';

Line 2613: IF (g_asn_debug = 'Y') THEN

2609: *
2610: * FPJ International Drop Shipment project - pjiang
2611: */
2612: IF x_drop_ship_flag = 'Y' THEN
2613: IF (g_asn_debug = 'Y') THEN
2614: asn_debug.put_line('Dropship: Setting RCV Routing to Direct Deliver');
2615: END IF;
2616:
2617: x_cascaded_table(n).routing_header_id := 3;

Line 2614: asn_debug.put_line('Dropship: Setting RCV Routing to Direct Deliver');

2610: * FPJ International Drop Shipment project - pjiang
2611: */
2612: IF x_drop_ship_flag = 'Y' THEN
2613: IF (g_asn_debug = 'Y') THEN
2614: asn_debug.put_line('Dropship: Setting RCV Routing to Direct Deliver');
2615: END IF;
2616:
2617: x_cascaded_table(n).routing_header_id := 3;
2618: fnd_profile.get('PO_AUTO_DELIVER_DROPSHIP_ASN', x_auto_deliver);

Line 2621: IF (g_asn_debug = 'Y') THEN

2617: x_cascaded_table(n).routing_header_id := 3;
2618: fnd_profile.get('PO_AUTO_DELIVER_DROPSHIP_ASN', x_auto_deliver);
2619:
2620: IF x_auto_deliver = 'Y' THEN
2621: IF (g_asn_debug = 'Y') THEN
2622: asn_debug.put_line('Dropship: Auto deliver feature enabled, ' || 'set auto_transact_code to DELIVER for drop ship ASNs');
2623: END IF;
2624:
2625: x_cascaded_table(n).auto_transact_code := 'DELIVER';

Line 2622: asn_debug.put_line('Dropship: Auto deliver feature enabled, ' || 'set auto_transact_code to DELIVER for drop ship ASNs');

2618: fnd_profile.get('PO_AUTO_DELIVER_DROPSHIP_ASN', x_auto_deliver);
2619:
2620: IF x_auto_deliver = 'Y' THEN
2621: IF (g_asn_debug = 'Y') THEN
2622: asn_debug.put_line('Dropship: Auto deliver feature enabled, ' || 'set auto_transact_code to DELIVER for drop ship ASNs');
2623: END IF;
2624:
2625: x_cascaded_table(n).auto_transact_code := 'DELIVER';
2626: END IF; -- end auto deliver

Line 2632: IF (g_asn_debug = 'Y') THEN

2628: END IF; -- end transaction_type = 'SHIP' (ASN)
2629:
2630: IF ( x_cascaded_table(n).auto_transact_code IS NULL
2631: AND x_cascaded_table(n).transaction_type IN('SHIP', 'RECEIVE')) THEN
2632: IF (g_asn_debug = 'Y') THEN
2633: asn_debug.put_line('X_progress ' || x_progress);
2634: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);
2635: END IF;
2636:

Line 2633: asn_debug.put_line('X_progress ' || x_progress);

2629:
2630: IF ( x_cascaded_table(n).auto_transact_code IS NULL
2631: AND x_cascaded_table(n).transaction_type IN('SHIP', 'RECEIVE')) THEN
2632: IF (g_asn_debug = 'Y') THEN
2633: asn_debug.put_line('X_progress ' || x_progress);
2634: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);
2635: END IF;
2636:
2637: x_cascaded_table(n).auto_transact_code := x_cascaded_table(n).transaction_type;

Line 2634: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);

2630: IF ( x_cascaded_table(n).auto_transact_code IS NULL
2631: AND x_cascaded_table(n).transaction_type IN('SHIP', 'RECEIVE')) THEN
2632: IF (g_asn_debug = 'Y') THEN
2633: asn_debug.put_line('X_progress ' || x_progress);
2634: asn_debug.put_line('Setting auto_transact_code to transaction_type ' || x_cascaded_table(n).transaction_type);
2635: END IF;
2636:
2637: x_cascaded_table(n).auto_transact_code := x_cascaded_table(n).transaction_type;
2638: END IF;

Line 2647: IF (g_asn_debug = 'Y') THEN

2643: -- Change transaction type based on combination of
2644: -- transaction_type and auto_transact_code
2645:
2646: IF (x_cascaded_table(n).error_status IN('S', 'W')) THEN
2647: IF (g_asn_debug = 'Y') THEN
2648: asn_debug.put_line('X_progress ' || x_progress);
2649: END IF;
2650:
2651: IF x_cascaded_table(n).transaction_type = 'SHIP'

Line 2648: asn_debug.put_line('X_progress ' || x_progress);

2644: -- transaction_type and auto_transact_code
2645:
2646: IF (x_cascaded_table(n).error_status IN('S', 'W')) THEN
2647: IF (g_asn_debug = 'Y') THEN
2648: asn_debug.put_line('X_progress ' || x_progress);
2649: END IF;
2650:
2651: IF x_cascaded_table(n).transaction_type = 'SHIP'
2652: AND x_cascaded_table(n).auto_transact_code = 'DELIVER' THEN

Line 2653: IF (g_asn_debug = 'Y') THEN

2649: END IF;
2650:
2651: IF x_cascaded_table(n).transaction_type = 'SHIP'
2652: AND x_cascaded_table(n).auto_transact_code = 'DELIVER' THEN
2653: IF (g_asn_debug = 'Y') THEN
2654: asn_debug.put_line('Changing the transaction_type to RECEIVE FROM SHIP');
2655: END IF;
2656:
2657: x_cascaded_table(n).transaction_type := 'RECEIVE';

Line 2654: asn_debug.put_line('Changing the transaction_type to RECEIVE FROM SHIP');

2650:
2651: IF x_cascaded_table(n).transaction_type = 'SHIP'
2652: AND x_cascaded_table(n).auto_transact_code = 'DELIVER' THEN
2653: IF (g_asn_debug = 'Y') THEN
2654: asn_debug.put_line('Changing the transaction_type to RECEIVE FROM SHIP');
2655: END IF;
2656:
2657: x_cascaded_table(n).transaction_type := 'RECEIVE';
2658: END IF;

Line 2988: IF (g_asn_debug = 'Y') THEN

2984: x_include_closed_po,
2985: defined
2986: );
2987:
2988: IF (g_asn_debug = 'Y') THEN
2989: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);
2990: END IF;
2991:
2992: IF (g_asn_debug = 'Y') THEN

Line 2989: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);

2985: defined
2986: );
2987:
2988: IF (g_asn_debug = 'Y') THEN
2989: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);
2990: END IF;
2991:
2992: IF (g_asn_debug = 'Y') THEN
2993: asn_debug.put_line('X_progress ' || x_progress);

Line 2992: IF (g_asn_debug = 'Y') THEN

2988: IF (g_asn_debug = 'Y') THEN
2989: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);
2990: END IF;
2991:
2992: IF (g_asn_debug = 'Y') THEN
2993: asn_debug.put_line('X_progress ' || x_progress);
2994: END IF;
2995:
2996: IF x_cascaded_table(n).error_status IN('S', 'W')

Line 2993: asn_debug.put_line('X_progress ' || x_progress);

2989: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);
2990: END IF;
2991:
2992: IF (g_asn_debug = 'Y') THEN
2993: asn_debug.put_line('X_progress ' || x_progress);
2994: END IF;
2995:
2996: IF x_cascaded_table(n).error_status IN('S', 'W')
2997: AND x_cascaded_table(n).quantity <= 0 THEN --{

Line 2998: IF (g_asn_debug = 'Y') THEN

2994: END IF;
2995:
2996: IF x_cascaded_table(n).error_status IN('S', 'W')
2997: AND x_cascaded_table(n).quantity <= 0 THEN --{
2998: IF (g_asn_debug = 'Y') THEN
2999: asn_debug.put_line('Quantity is <= zero. Cascade will fail');
3000: END IF;
3001:
3002: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 2999: asn_debug.put_line('Quantity is <= zero. Cascade will fail');

2995:
2996: IF x_cascaded_table(n).error_status IN('S', 'W')
2997: AND x_cascaded_table(n).quantity <= 0 THEN --{
2998: IF (g_asn_debug = 'Y') THEN
2999: asn_debug.put_line('Quantity is <= zero. Cascade will fail');
3000: END IF;
3001:
3002: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3003: rcv_error_pkg.set_error_message('RCV_ITEM_NO_SHIP_QTY', x_cascaded_table(n).error_message);

Line 3020: IF (g_asn_debug = 'Y') THEN

3016: such a way that the ROI validation does'nt error out when
3017: po_line_id is populated for one time items. */
3018: x_progress := '098';
3019:
3020: IF (g_asn_debug = 'Y') THEN
3021: asn_debug.put_line('X_progress ' || x_progress);
3022: END IF;
3023:
3024: IF ( ( x_cascaded_table(n).po_header_id IS NOT NULL

Line 3021: asn_debug.put_line('X_progress ' || x_progress);

3017: po_line_id is populated for one time items. */
3018: x_progress := '098';
3019:
3020: IF (g_asn_debug = 'Y') THEN
3021: asn_debug.put_line('X_progress ' || x_progress);
3022: END IF;
3023:
3024: IF ( ( x_cascaded_table(n).po_header_id IS NOT NULL
3025: AND ( x_cascaded_table(n).item_id IS NOT NULL

Line 3034: IF (g_asn_debug = 'Y') THEN

3030: AND x_cascaded_table(n).error_status IN('S', 'W')
3031: ) THEN --{
3032:
3033: -- Copy record from main table to temp table
3034: IF (g_asn_debug = 'Y') THEN
3035: asn_debug.put_line('Copy record from main table to temp table');
3036: END IF;
3037:
3038: current_n := 1;

Line 3035: asn_debug.put_line('Copy record from main table to temp table');

3031: ) THEN --{
3032:
3033: -- Copy record from main table to temp table
3034: IF (g_asn_debug = 'Y') THEN
3035: asn_debug.put_line('Copy record from main table to temp table');
3036: END IF;
3037:
3038: current_n := 1;
3039: temp_cascaded_table(current_n) := x_cascaded_table(n);

Line 3048: IF (g_asn_debug = 'Y') THEN

3044: x_is_asn := FALSE;
3045: END IF;
3046:
3047: -- Get all rows which meet this condition
3048: IF (g_asn_debug = 'Y') THEN
3049: asn_debug.put_line('Get all rows which meet this condition');
3050: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
3051: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
3052:

Line 3049: asn_debug.put_line('Get all rows which meet this condition');

3045: END IF;
3046:
3047: -- Get all rows which meet this condition
3048: IF (g_asn_debug = 'Y') THEN
3049: asn_debug.put_line('Get all rows which meet this condition');
3050: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
3051: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
3052:
3053: IF (x_is_asn = TRUE) THEN

Line 3050: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);

3046:
3047: -- Get all rows which meet this condition
3048: IF (g_asn_debug = 'Y') THEN
3049: asn_debug.put_line('Get all rows which meet this condition');
3050: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
3051: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
3052:
3053: IF (x_is_asn = TRUE) THEN
3054: asn_debug.put_line('This is a Receive against an ASN');

Line 3051: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);

3047: -- Get all rows which meet this condition
3048: IF (g_asn_debug = 'Y') THEN
3049: asn_debug.put_line('Get all rows which meet this condition');
3050: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
3051: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
3052:
3053: IF (x_is_asn = TRUE) THEN
3054: asn_debug.put_line('This is a Receive against an ASN');
3055: ELSE

Line 3054: asn_debug.put_line('This is a Receive against an ASN');

3050: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
3051: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
3052:
3053: IF (x_is_asn = TRUE) THEN
3054: asn_debug.put_line('This is a Receive against an ASN');
3055: ELSE
3056: asn_debug.put_line('This is a Receive against a PO');
3057: END IF;
3058: END IF;

Line 3056: asn_debug.put_line('This is a Receive against a PO');

3052:
3053: IF (x_is_asn = TRUE) THEN
3054: asn_debug.put_line('This is a Receive against an ASN');
3055: ELSE
3056: asn_debug.put_line('This is a Receive against a PO');
3057: END IF;
3058: END IF;
3059:
3060: -- bug 1362237 Deriving the document_line_num

Line 3073: IF (g_asn_debug = 'Y') THEN

3069: FROM po_lines
3070: WHERE po_line_id = temp_cascaded_table(current_n).po_line_id;
3071: EXCEPTION
3072: WHEN OTHERS THEN
3073: IF (g_asn_debug = 'Y') THEN
3074: asn_debug.put_line('wrong po_line_id entered in rcv_transactions_interface');
3075: END IF;
3076: END;
3077: END IF; --}

Line 3074: asn_debug.put_line('wrong po_line_id entered in rcv_transactions_interface');

3070: WHERE po_line_id = temp_cascaded_table(current_n).po_line_id;
3071: EXCEPTION
3072: WHEN OTHERS THEN
3073: IF (g_asn_debug = 'Y') THEN
3074: asn_debug.put_line('wrong po_line_id entered in rcv_transactions_interface');
3075: END IF;
3076: END;
3077: END IF; --}
3078:

Line 3088: IF (g_asn_debug = 'Y') THEN

3084: FROM po_line_locations
3085: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
3086: EXCEPTION
3087: WHEN OTHERS THEN
3088: IF (g_asn_debug = 'Y') THEN
3089: asn_debug.put_line('wrong po_line_location_id entered in rcv_transactions_interface');
3090: END IF;
3091: END;
3092: END IF; --}

Line 3089: asn_debug.put_line('wrong po_line_location_id entered in rcv_transactions_interface');

3085: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
3086: EXCEPTION
3087: WHEN OTHERS THEN
3088: IF (g_asn_debug = 'Y') THEN
3089: asn_debug.put_line('wrong po_line_location_id entered in rcv_transactions_interface');
3090: END IF;
3091: END;
3092: END IF; --}
3093:

Line 3103: IF (g_asn_debug = 'Y') THEN

3099: FROM po_distributions
3100: WHERE po_distribution_id = temp_cascaded_table(current_n).po_distribution_id;
3101: EXCEPTION
3102: WHEN OTHERS THEN
3103: IF (g_asn_debug = 'Y') THEN
3104: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
3105: END IF;
3106: END;
3107: END IF; --}

Line 3104: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');

3100: WHERE po_distribution_id = temp_cascaded_table(current_n).po_distribution_id;
3101: EXCEPTION
3102: WHEN OTHERS THEN
3103: IF (g_asn_debug = 'Y') THEN
3104: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
3105: END IF;
3106: END;
3107: END IF; --}
3108:

Line 3125: IF (g_asn_debug = 'Y') THEN

3121: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3122: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3123:
3124: -- if txn != deliver
3125: IF (g_asn_debug = 'Y') THEN
3126: asn_debug.put_line('Open Shipment records');
3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));

Line 3126: asn_debug.put_line('Open Shipment records');

3122: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3123:
3124: -- if txn != deliver
3125: IF (g_asn_debug = 'Y') THEN
3126: asn_debug.put_line('Open Shipment records');
3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));

Line 3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));

3123:
3124: -- if txn != deliver
3125: IF (g_asn_debug = 'Y') THEN
3126: asn_debug.put_line('Open Shipment records');
3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));

Line 3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));

3124: -- if txn != deliver
3125: IF (g_asn_debug = 'Y') THEN
3126: asn_debug.put_line('Open Shipment records');
3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));

Line 3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));

3125: IF (g_asn_debug = 'Y') THEN
3126: asn_debug.put_line('Open Shipment records');
3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));

Line 3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));

3126: asn_debug.put_line('Open Shipment records');
3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));

Line 3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));

3127: asn_debug.put_line('Shipment Header Id if this is an ASN receive ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));

Line 3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));

3128: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);

Line 3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));

3129: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3137: asn_debug.put_line('Proceed to open cursor');

Line 3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));

3130: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3137: asn_debug.put_line('Proceed to open cursor');
3138: END IF;

Line 3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));

3131: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3137: asn_debug.put_line('Proceed to open cursor');
3138: END IF;
3139:

Line 3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);

3132: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3137: asn_debug.put_line('Proceed to open cursor');
3138: END IF;
3139:
3140: /* Bug 2208664 : Nullified the ship_to_location_id when calling

Line 3137: asn_debug.put_line('Proceed to open cursor');

3133: asn_debug.put_line('Document distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3134: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3135: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3136: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3137: asn_debug.put_line('Proceed to open cursor');
3138: END IF;
3139:
3140: /* Bug 2208664 : Nullified the ship_to_location_id when calling
3141: the cursors shipments, count_shipments, distributions and

Line 3151: IF (g_asn_debug = 'Y') THEN

3147: /* Forward port for Bug 4523892 , the use of x_is_asn is commented to make it consistent
3148: with the previous code line
3149: */
3150: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3151: IF (g_asn_debug = 'Y') THEN
3152: asn_debug.put_line('Open ASN Shipment records');
3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);

Line 3152: asn_debug.put_line('Open ASN Shipment records');

3148: with the previous code line
3149: */
3150: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3151: IF (g_asn_debug = 'Y') THEN
3152: asn_debug.put_line('Open ASN Shipment records');
3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);

Line 3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);

3149: */
3150: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3151: IF (g_asn_debug = 'Y') THEN
3152: asn_debug.put_line('Open ASN Shipment records');
3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);

Line 3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);

3150: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3151: IF (g_asn_debug = 'Y') THEN
3152: asn_debug.put_line('Open ASN Shipment records');
3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);

Line 3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);

3151: IF (g_asn_debug = 'Y') THEN
3152: asn_debug.put_line('Open ASN Shipment records');
3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

Line 3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);

3152: asn_debug.put_line('Open ASN Shipment records');
3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

Line 3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);

3153: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

Line 3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);

3154: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3162: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

Line 3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

3155: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3162: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3163: END IF;

Line 3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

3156: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3162: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3163: END IF;
3164:

Line 3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

3157: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3162: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3163: END IF;
3164:
3165: OPEN asn_shipments(temp_cascaded_table(current_n).shipment_header_id,

Line 3162: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

3158: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3159: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3160: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3161: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3162: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3163: END IF;
3164:
3165: OPEN asn_shipments(temp_cascaded_table(current_n).shipment_header_id,
3166: temp_cascaded_table(current_n).shipment_line_id,

Line 3179: IF (g_asn_debug = 'Y') THEN

3175: x_include_closed_po
3176: );
3177:
3178: -- count_shipments just gets the count of rows found in shipments
3179: IF (g_asn_debug = 'Y') THEN
3180: asn_debug.put_line('After Open ASN Shipment records');
3181: END IF;
3182:
3183: OPEN count_asn_shipments(temp_cascaded_table(current_n).shipment_header_id,

Line 3180: asn_debug.put_line('After Open ASN Shipment records');

3176: );
3177:
3178: -- count_shipments just gets the count of rows found in shipments
3179: IF (g_asn_debug = 'Y') THEN
3180: asn_debug.put_line('After Open ASN Shipment records');
3181: END IF;
3182:
3183: OPEN count_asn_shipments(temp_cascaded_table(current_n).shipment_header_id,
3184: temp_cascaded_table(current_n).shipment_line_id,

Line 3196: IF (g_asn_debug = 'Y') THEN

3192: temp_cascaded_table(current_n).vendor_item_num,
3193: x_include_closed_po
3194: );
3195:
3196: IF (g_asn_debug = 'Y') THEN
3197: asn_debug.put_line('After Open Count ASN Shipment records');
3198: END IF;
3199: ELSE --}{
3200: IF (g_asn_debug = 'Y') THEN

Line 3197: asn_debug.put_line('After Open Count ASN Shipment records');

3193: x_include_closed_po
3194: );
3195:
3196: IF (g_asn_debug = 'Y') THEN
3197: asn_debug.put_line('After Open Count ASN Shipment records');
3198: END IF;
3199: ELSE --}{
3200: IF (g_asn_debug = 'Y') THEN
3201: asn_debug.put_line('Open PO Shipment records');

Line 3200: IF (g_asn_debug = 'Y') THEN

3196: IF (g_asn_debug = 'Y') THEN
3197: asn_debug.put_line('After Open Count ASN Shipment records');
3198: END IF;
3199: ELSE --}{
3200: IF (g_asn_debug = 'Y') THEN
3201: asn_debug.put_line('Open PO Shipment records');
3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);

Line 3201: asn_debug.put_line('Open PO Shipment records');

3197: asn_debug.put_line('After Open Count ASN Shipment records');
3198: END IF;
3199: ELSE --}{
3200: IF (g_asn_debug = 'Y') THEN
3201: asn_debug.put_line('Open PO Shipment records');
3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);

Line 3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);

3198: END IF;
3199: ELSE --}{
3200: IF (g_asn_debug = 'Y') THEN
3201: asn_debug.put_line('Open PO Shipment records');
3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

Line 3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);

3199: ELSE --}{
3200: IF (g_asn_debug = 'Y') THEN
3201: asn_debug.put_line('Open PO Shipment records');
3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

Line 3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);

3200: IF (g_asn_debug = 'Y') THEN
3201: asn_debug.put_line('Open PO Shipment records');
3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3208: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

Line 3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);

3201: asn_debug.put_line('Open PO Shipment records');
3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3208: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3209: END IF;

Line 3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

3202: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3208: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3209: END IF;
3210:

Line 3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

3203: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3208: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3209: END IF;
3210:
3211: OPEN shipments(temp_cascaded_table(current_n).po_header_id,

Line 3208: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

3204: asn_debug.put_line('document_line_num ' || temp_cascaded_table(current_n).document_line_num);
3205: asn_debug.put_line('line_location_id ' || temp_cascaded_table(current_n).po_line_location_id);
3206: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3207: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3208: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3209: END IF;
3210:
3211: OPEN shipments(temp_cascaded_table(current_n).po_header_id,
3212: temp_cascaded_table(current_n).item_id,

Line 3233: IF (g_asn_debug = 'Y') THEN

3229: temp_cascaded_table(current_n).vendor_item_num
3230: );
3231: END IF; --}
3232:
3233: IF (g_asn_debug = 'Y') THEN
3234: asn_debug.put_line('After opening relavant records for Receive');
3235: END IF;
3236: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3237: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{

Line 3234: asn_debug.put_line('After opening relavant records for Receive');

3230: );
3231: END IF; --}
3232:
3233: IF (g_asn_debug = 'Y') THEN
3234: asn_debug.put_line('After opening relavant records for Receive');
3235: END IF;
3236: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3237: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3238: IF (g_asn_debug = 'Y') THEN

Line 3238: IF (g_asn_debug = 'Y') THEN

3234: asn_debug.put_line('After opening relavant records for Receive');
3235: END IF;
3236: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3237: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3238: IF (g_asn_debug = 'Y') THEN
3239: asn_debug.put_line('Open Distribution records');
3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));

Line 3239: asn_debug.put_line('Open Distribution records');

3235: END IF;
3236: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3237: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3238: IF (g_asn_debug = 'Y') THEN
3239: asn_debug.put_line('Open Distribution records');
3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));

Line 3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));

3236: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3237: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3238: IF (g_asn_debug = 'Y') THEN
3239: asn_debug.put_line('Open Distribution records');
3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));

Line 3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));

3237: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3238: IF (g_asn_debug = 'Y') THEN
3239: asn_debug.put_line('Open Distribution records');
3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));

Line 3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));

3238: IF (g_asn_debug = 'Y') THEN
3239: asn_debug.put_line('Open Distribution records');
3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));

Line 3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));

3239: asn_debug.put_line('Open Distribution records');
3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));

Line 3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));

3240: asn_debug.put_line('Ship Header id ' || TO_CHAR(temp_cascaded_table(current_n).shipment_header_id));
3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));

Line 3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));

3241: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_header_id));
3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);

Line 3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));

3242: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3250: asn_debug.put_line('Proceed to open cursor');

Line 3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));

3243: asn_debug.put_line('PO Line Num ' || TO_CHAR(temp_cascaded_table(current_n).document_line_num));
3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3250: asn_debug.put_line('Proceed to open cursor');
3251: END IF;

Line 3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));

3244: asn_debug.put_line('PO Release Id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3250: asn_debug.put_line('Proceed to open cursor');
3251: END IF;
3252:

Line 3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);

3245: asn_debug.put_line('Shipment Line num ' || TO_CHAR(temp_cascaded_table(current_n).document_shipment_line_num));
3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3250: asn_debug.put_line('Proceed to open cursor');
3251: END IF;
3252:
3253: /* IF (x_is_asn = TRUE) THEN --{ This call is replaced by forward port of 4523892 */

Line 3250: asn_debug.put_line('Proceed to open cursor');

3246: asn_debug.put_line('Distribution num ' || TO_CHAR(temp_cascaded_table(current_n).document_distribution_num));
3247: asn_debug.put_line('Ship To Organization ID ' || TO_CHAR(temp_cascaded_table(current_n).to_organization_id));
3248: asn_debug.put_line('Ship To Location Id ' || TO_CHAR(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id)));
3249: asn_debug.put_line('Vendor Item Num ' || temp_cascaded_table(current_n).vendor_item_num);
3250: asn_debug.put_line('Proceed to open cursor');
3251: END IF;
3252:
3253: /* IF (x_is_asn = TRUE) THEN --{ This call is replaced by forward port of 4523892 */
3254: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892

Line 3255: IF (g_asn_debug = 'Y') THEN

3251: END IF;
3252:
3253: /* IF (x_is_asn = TRUE) THEN --{ This call is replaced by forward port of 4523892 */
3254: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3255: IF (g_asn_debug = 'Y') THEN
3256: asn_debug.put_line('Open ASN Distribution records');
3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);

Line 3256: asn_debug.put_line('Open ASN Distribution records');

3252:
3253: /* IF (x_is_asn = TRUE) THEN --{ This call is replaced by forward port of 4523892 */
3254: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3255: IF (g_asn_debug = 'Y') THEN
3256: asn_debug.put_line('Open ASN Distribution records');
3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);

Line 3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);

3253: /* IF (x_is_asn = TRUE) THEN --{ This call is replaced by forward port of 4523892 */
3254: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3255: IF (g_asn_debug = 'Y') THEN
3256: asn_debug.put_line('Open ASN Distribution records');
3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);

Line 3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);

3254: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3255: IF (g_asn_debug = 'Y') THEN
3256: asn_debug.put_line('Open ASN Distribution records');
3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);

Line 3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);

3255: IF (g_asn_debug = 'Y') THEN
3256: asn_debug.put_line('Open ASN Distribution records');
3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

Line 3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);

3256: asn_debug.put_line('Open ASN Distribution records');
3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

Line 3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);

3257: asn_debug.put_line('shipment_header_id ' || temp_cascaded_table(current_n).shipment_header_id);
3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

Line 3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);

3258: asn_debug.put_line('shipment_line_id ' || temp_cascaded_table(current_n).shipment_line_id);
3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3266: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

Line 3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

3259: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3266: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3267: END IF;

Line 3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

3260: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3266: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3267: END IF;
3268:

Line 3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

3261: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3266: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3267: END IF;
3268:
3269: OPEN asn_distributions(temp_cascaded_table(current_n).shipment_header_id,

Line 3266: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

3262: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3263: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3264: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3265: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3266: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3267: END IF;
3268:
3269: OPEN asn_distributions(temp_cascaded_table(current_n).shipment_header_id,
3270: temp_cascaded_table(current_n).shipment_line_id,

Line 3283: IF (g_asn_debug = 'Y') THEN

3279: temp_cascaded_table(current_n).vendor_item_num,
3280: x_include_closed_po
3281: );
3282:
3283: IF (g_asn_debug = 'Y') THEN
3284: asn_debug.put_line('After Open ASN distribution records');
3285: END IF;
3286:
3287: OPEN count_asn_distributions(temp_cascaded_table(current_n).shipment_header_id,

Line 3284: asn_debug.put_line('After Open ASN distribution records');

3280: x_include_closed_po
3281: );
3282:
3283: IF (g_asn_debug = 'Y') THEN
3284: asn_debug.put_line('After Open ASN distribution records');
3285: END IF;
3286:
3287: OPEN count_asn_distributions(temp_cascaded_table(current_n).shipment_header_id,
3288: temp_cascaded_table(current_n).shipment_line_id,

Line 3301: IF (g_asn_debug = 'Y') THEN

3297: temp_cascaded_table(current_n).vendor_item_num,
3298: x_include_closed_po
3299: );
3300:
3301: IF (g_asn_debug = 'Y') THEN
3302: asn_debug.put_line('After Open count ASN distribution records');
3303: END IF;
3304: ELSE --}{
3305: IF (g_asn_debug = 'Y') THEN

Line 3302: asn_debug.put_line('After Open count ASN distribution records');

3298: x_include_closed_po
3299: );
3300:
3301: IF (g_asn_debug = 'Y') THEN
3302: asn_debug.put_line('After Open count ASN distribution records');
3303: END IF;
3304: ELSE --}{
3305: IF (g_asn_debug = 'Y') THEN
3306: asn_debug.put_line('Open PO Distribution records');

Line 3305: IF (g_asn_debug = 'Y') THEN

3301: IF (g_asn_debug = 'Y') THEN
3302: asn_debug.put_line('After Open count ASN distribution records');
3303: END IF;
3304: ELSE --}{
3305: IF (g_asn_debug = 'Y') THEN
3306: asn_debug.put_line('Open PO Distribution records');
3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);

Line 3306: asn_debug.put_line('Open PO Distribution records');

3302: asn_debug.put_line('After Open count ASN distribution records');
3303: END IF;
3304: ELSE --}{
3305: IF (g_asn_debug = 'Y') THEN
3306: asn_debug.put_line('Open PO Distribution records');
3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);

Line 3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);

3303: END IF;
3304: ELSE --}{
3305: IF (g_asn_debug = 'Y') THEN
3306: asn_debug.put_line('Open PO Distribution records');
3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

Line 3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);

3304: ELSE --}{
3305: IF (g_asn_debug = 'Y') THEN
3306: asn_debug.put_line('Open PO Distribution records');
3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

Line 3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);

3305: IF (g_asn_debug = 'Y') THEN
3306: asn_debug.put_line('Open PO Distribution records');
3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3313: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

Line 3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);

3306: asn_debug.put_line('Open PO Distribution records');
3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3313: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3314: END IF;

Line 3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);

3307: asn_debug.put_line('po_header_id ' || temp_cascaded_table(current_n).po_header_id);
3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3313: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3314: END IF;
3315:

Line 3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);

3308: asn_debug.put_line('item_id ' || temp_cascaded_table(current_n).item_id);
3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3313: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3314: END IF;
3315:
3316: OPEN distributions(temp_cascaded_table(current_n).po_header_id,

Line 3313: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);

3309: asn_debug.put_line('document_num ' || temp_cascaded_table(current_n).document_line_num);
3310: asn_debug.put_line('document_shipment_line_num ' || temp_cascaded_table(current_n).document_shipment_line_num);
3311: asn_debug.put_line('po_release_id ' || temp_cascaded_table(current_n).po_release_id);
3312: asn_debug.put_line('to_organization_id ' || temp_cascaded_table(current_n).to_organization_id);
3313: asn_debug.put_line('vendor_item_num ' || temp_cascaded_table(current_n).vendor_item_num);
3314: END IF;
3315:
3316: OPEN distributions(temp_cascaded_table(current_n).po_header_id,
3317: temp_cascaded_table(current_n).item_id,

Line 3340: IF (g_asn_debug = 'Y') THEN

3336: temp_cascaded_table(current_n).vendor_item_num
3337: );
3338: END IF; --}
3339:
3340: IF (g_asn_debug = 'Y') THEN
3341: asn_debug.put_line('After opening relavant records for Direct delivery');
3342: END IF;
3343: END IF; -- for txn = deliver --}
3344:

Line 3341: asn_debug.put_line('After opening relavant records for Direct delivery');

3337: );
3338: END IF; --}
3339:
3340: IF (g_asn_debug = 'Y') THEN
3341: asn_debug.put_line('After opening relavant records for Direct delivery');
3342: END IF;
3343: END IF; -- for txn = deliver --}
3344:
3345:

Line 3348: IF (g_asn_debug = 'Y') THEN

3344:
3345:
3346: -- Assign shipped quantity to remaining quantity
3347:
3348: IF (g_asn_debug = 'Y') THEN
3349: asn_debug.put_line('Assign shipped quantity to remaining quantity');
3350: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
3351: END IF;
3352:

Line 3349: asn_debug.put_line('Assign shipped quantity to remaining quantity');

3345:
3346: -- Assign shipped quantity to remaining quantity
3347:
3348: IF (g_asn_debug = 'Y') THEN
3349: asn_debug.put_line('Assign shipped quantity to remaining quantity');
3350: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
3351: END IF;
3352:
3353: x_remaining_quantity := temp_cascaded_table(current_n).quantity;

Line 3350: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));

3346: -- Assign shipped quantity to remaining quantity
3347:
3348: IF (g_asn_debug = 'Y') THEN
3349: asn_debug.put_line('Assign shipped quantity to remaining quantity');
3350: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
3351: END IF;
3352:
3353: x_remaining_quantity := temp_cascaded_table(current_n).quantity;
3354: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record

Line 3357: IF (g_asn_debug = 'Y') THEN

3353: x_remaining_quantity := temp_cascaded_table(current_n).quantity;
3354: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record
3355: x_remaining_qty_po_uom := 0;
3356:
3357: IF (g_asn_debug = 'Y') THEN
3358: asn_debug.put_line('Have assigned the quantity');
3359: END IF;
3360:
3361: -- Calculate tax_amount_factor for calculating tax_amount for

Line 3358: asn_debug.put_line('Have assigned the quantity');

3354: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record
3355: x_remaining_qty_po_uom := 0;
3356:
3357: IF (g_asn_debug = 'Y') THEN
3358: asn_debug.put_line('Have assigned the quantity');
3359: END IF;
3360:
3361: -- Calculate tax_amount_factor for calculating tax_amount for
3362: -- each cascaded line

Line 3370: IF (g_asn_debug = 'Y') THEN

3366: ELSE
3367: tax_amount_factor := 0;
3368: END IF;
3369:
3370: IF (g_asn_debug = 'Y') THEN
3371: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
3372: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));
3373: END IF;
3374:

Line 3371: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));

3367: tax_amount_factor := 0;
3368: END IF;
3369:
3370: IF (g_asn_debug = 'Y') THEN
3371: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
3372: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));
3373: END IF;
3374:
3375: x_first_trans := TRUE;

Line 3372: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));

3368: END IF;
3369:
3370: IF (g_asn_debug = 'Y') THEN
3371: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
3372: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));
3373: END IF;
3374:
3375: x_first_trans := TRUE;
3376: transaction_ok := FALSE;

Line 3386: IF (g_asn_debug = 'Y') THEN

3382: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3383: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3384: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for bug 4523892 */
3385: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3386: IF (g_asn_debug = 'Y') THEN
3387: asn_debug.put_line('Count of asn shipments');
3388: END IF;
3389:
3390: FETCH count_asn_shipments INTO x_record_count;

Line 3387: asn_debug.put_line('Count of asn shipments');

3383: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3384: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for bug 4523892 */
3385: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3386: IF (g_asn_debug = 'Y') THEN
3387: asn_debug.put_line('Count of asn shipments');
3388: END IF;
3389:
3390: FETCH count_asn_shipments INTO x_record_count;
3391: ELSE --}{

Line 3392: IF (g_asn_debug = 'Y') THEN

3388: END IF;
3389:
3390: FETCH count_asn_shipments INTO x_record_count;
3391: ELSE --}{
3392: IF (g_asn_debug = 'Y') THEN
3393: asn_debug.put_line('Count of PO shipments');
3394: END IF;
3395:
3396: FETCH count_shipments INTO x_record_count;

Line 3393: asn_debug.put_line('Count of PO shipments');

3389:
3390: FETCH count_asn_shipments INTO x_record_count;
3391: ELSE --}{
3392: IF (g_asn_debug = 'Y') THEN
3393: asn_debug.put_line('Count of PO shipments');
3394: END IF;
3395:
3396: FETCH count_shipments INTO x_record_count;
3397: END IF; --}

Line 3401: IF (g_asn_debug = 'Y') THEN

3397: END IF; --}
3398: ELSE --}{
3399: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for Bug 4523892 */
3400: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3401: IF (g_asn_debug = 'Y') THEN
3402: asn_debug.put_line('Count of asn distributions');
3403: END IF;
3404:
3405: FETCH count_asn_distributions INTO x_record_count;

Line 3402: asn_debug.put_line('Count of asn distributions');

3398: ELSE --}{
3399: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for Bug 4523892 */
3400: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
3401: IF (g_asn_debug = 'Y') THEN
3402: asn_debug.put_line('Count of asn distributions');
3403: END IF;
3404:
3405: FETCH count_asn_distributions INTO x_record_count;
3406: ELSE --}{

Line 3407: IF (g_asn_debug = 'Y') THEN

3403: END IF;
3404:
3405: FETCH count_asn_distributions INTO x_record_count;
3406: ELSE --}{
3407: IF (g_asn_debug = 'Y') THEN
3408: asn_debug.put_line('Count of PO distributions');
3409: END IF;
3410:
3411: FETCH count_distributions INTO x_record_count;

Line 3408: asn_debug.put_line('Count of PO distributions');

3404:
3405: FETCH count_asn_distributions INTO x_record_count;
3406: ELSE --}{
3407: IF (g_asn_debug = 'Y') THEN
3408: asn_debug.put_line('Count of PO distributions');
3409: END IF;
3410:
3411: FETCH count_distributions INTO x_record_count;
3412: END IF; --}

Line 3415: IF (g_asn_debug = 'Y') THEN

3411: FETCH count_distributions INTO x_record_count;
3412: END IF; --}
3413: END IF; --}
3414:
3415: IF (g_asn_debug = 'Y') THEN
3416: asn_debug.put_line('Before starting Cascade');
3417: END IF;
3418:
3419: IF (g_asn_debug = 'Y') THEN

Line 3416: asn_debug.put_line('Before starting Cascade');

3412: END IF; --}
3413: END IF; --}
3414:
3415: IF (g_asn_debug = 'Y') THEN
3416: asn_debug.put_line('Before starting Cascade');
3417: END IF;
3418:
3419: IF (g_asn_debug = 'Y') THEN
3420: asn_debug.put_line('Record Count = ' || x_record_count);

Line 3419: IF (g_asn_debug = 'Y') THEN

3415: IF (g_asn_debug = 'Y') THEN
3416: asn_debug.put_line('Before starting Cascade');
3417: END IF;
3418:
3419: IF (g_asn_debug = 'Y') THEN
3420: asn_debug.put_line('Record Count = ' || x_record_count);
3421: END IF;
3422:
3423: LOOP --{

Line 3420: asn_debug.put_line('Record Count = ' || x_record_count);

3416: asn_debug.put_line('Before starting Cascade');
3417: END IF;
3418:
3419: IF (g_asn_debug = 'Y') THEN
3420: asn_debug.put_line('Record Count = ' || x_record_count);
3421: END IF;
3422:
3423: LOOP --{
3424: IF (g_asn_debug = 'Y') THEN

Line 3424: IF (g_asn_debug = 'Y') THEN

3420: asn_debug.put_line('Record Count = ' || x_record_count);
3421: END IF;
3422:
3423: LOOP --{
3424: IF (g_asn_debug = 'Y') THEN
3425: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
3426: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
3427: END IF;
3428:

Line 3425: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));

3421: END IF;
3422:
3423: LOOP --{
3424: IF (g_asn_debug = 'Y') THEN
3425: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
3426: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
3427: END IF;
3428:
3429: IF (g_asn_debug = 'Y') THEN

Line 3426: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));

3422:
3423: LOOP --{
3424: IF (g_asn_debug = 'Y') THEN
3425: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
3426: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
3427: END IF;
3428:
3429: IF (g_asn_debug = 'Y') THEN
3430: asn_debug.put_line('open shipments and fetch');

Line 3429: IF (g_asn_debug = 'Y') THEN

3425: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
3426: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
3427: END IF;
3428:
3429: IF (g_asn_debug = 'Y') THEN
3430: asn_debug.put_line('open shipments and fetch');
3431: END IF;
3432:
3433: /*

Line 3430: asn_debug.put_line('open shipments and fetch');

3426: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
3427: END IF;
3428:
3429: IF (g_asn_debug = 'Y') THEN
3430: asn_debug.put_line('open shipments and fetch');
3431: END IF;
3432:
3433: /*
3434: ** Fetch the appropriate record

Line 3436: IF (g_asn_debug = 'Y') THEN

3432:
3433: /*
3434: ** Fetch the appropriate record
3435: */
3436: IF (g_asn_debug = 'Y') THEN
3437: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
3438: END IF;
3439:
3440: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'

Line 3437: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);

3433: /*
3434: ** Fetch the appropriate record
3435: */
3436: IF (g_asn_debug = 'Y') THEN
3437: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
3438: END IF;
3439:
3440: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3441: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{

Line 3442: IF (g_asn_debug = 'Y') THEN

3438: END IF;
3439:
3440: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3441: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3442: IF (g_asn_debug = 'Y') THEN
3443: asn_debug.put_line('Fetching Shipments Cursor');
3444: END IF;
3445:
3446: IF (shipments%ISOPEN) THEN

Line 3443: asn_debug.put_line('Fetching Shipments Cursor');

3439:
3440: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3441: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3442: IF (g_asn_debug = 'Y') THEN
3443: asn_debug.put_line('Fetching Shipments Cursor');
3444: END IF;
3445:
3446: IF (shipments%ISOPEN) THEN
3447: FETCH shipments INTO x_shipmentdistributionrec;

Line 3467: IF (g_asn_debug = 'Y') THEN

3463:
3464: /*
3465: ** Check if this is the last record
3466: */
3467: IF (g_asn_debug = 'Y') THEN
3468: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));
3469: END IF;
3470: -- }
3471: ELSE -- txn = deliver and other cases --{

Line 3468: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));

3464: /*
3465: ** Check if this is the last record
3466: */
3467: IF (g_asn_debug = 'Y') THEN
3468: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));
3469: END IF;
3470: -- }
3471: ELSE -- txn = deliver and other cases --{
3472: IF (g_asn_debug = 'Y') THEN

Line 3472: IF (g_asn_debug = 'Y') THEN

3468: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));
3469: END IF;
3470: -- }
3471: ELSE -- txn = deliver and other cases --{
3472: IF (g_asn_debug = 'Y') THEN
3473: asn_debug.put_line('Fetching Distributions Cursor');
3474: END IF;
3475:
3476: IF (distributions%ISOPEN) THEN

Line 3473: asn_debug.put_line('Fetching Distributions Cursor');

3469: END IF;
3470: -- }
3471: ELSE -- txn = deliver and other cases --{
3472: IF (g_asn_debug = 'Y') THEN
3473: asn_debug.put_line('Fetching Distributions Cursor');
3474: END IF;
3475:
3476: IF (distributions%ISOPEN) THEN
3477: FETCH distributions INTO x_shipmentdistributionrec;

Line 3497: IF (g_asn_debug = 'Y') THEN

3493:
3494: /*
3495: ** Check if this is the last record
3496: */
3497: IF (g_asn_debug = 'Y') THEN
3498: asn_debug.put_line('Distribution Rows fetched ' || TO_CHAR(rows_fetched));
3499: END IF;
3500: END IF; -- matches if condition of txn ! deliver --}
3501:

Line 3498: asn_debug.put_line('Distribution Rows fetched ' || TO_CHAR(rows_fetched));

3494: /*
3495: ** Check if this is the last record
3496: */
3497: IF (g_asn_debug = 'Y') THEN
3498: asn_debug.put_line('Distribution Rows fetched ' || TO_CHAR(rows_fetched));
3499: END IF;
3500: END IF; -- matches if condition of txn ! deliver --}
3501:
3502: IF ( lastrecord

Line 3504: IF (g_asn_debug = 'Y') THEN

3500: END IF; -- matches if condition of txn ! deliver --}
3501:
3502: IF ( lastrecord
3503: OR x_remaining_quantity <= 0) THEN --{
3504: IF (g_asn_debug = 'Y') THEN
3505: asn_debug.put_line('Hit exit condition');
3506: END IF;
3507:
3508: IF NOT x_first_trans THEN

Line 3505: asn_debug.put_line('Hit exit condition');

3501:
3502: IF ( lastrecord
3503: OR x_remaining_quantity <= 0) THEN --{
3504: IF (g_asn_debug = 'Y') THEN
3505: asn_debug.put_line('Hit exit condition');
3506: END IF;
3507:
3508: IF NOT x_first_trans THEN
3509: -- x_first_trans has been reset which means some cascade has

Line 3515: IF (g_asn_debug = 'Y') THEN

3511: current_n := current_n - 1;
3512: END IF;
3513:
3514: -- do the tolerance act here
3515: IF (g_asn_debug = 'Y') THEN
3516: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
3517: asn_debug.put_line('Check which condition has occured');
3518: END IF;
3519:

Line 3516: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));

3512: END IF;
3513:
3514: -- do the tolerance act here
3515: IF (g_asn_debug = 'Y') THEN
3516: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
3517: asn_debug.put_line('Check which condition has occured');
3518: END IF;
3519:
3520: -- lastrecord...we have run out of rows and we still have quantity to allocate

Line 3517: asn_debug.put_line('Check which condition has occured');

3513:
3514: -- do the tolerance act here
3515: IF (g_asn_debug = 'Y') THEN
3516: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
3517: asn_debug.put_line('Check which condition has occured');
3518: END IF;
3519:
3520: -- lastrecord...we have run out of rows and we still have quantity to allocate
3521: IF x_remaining_quantity > 0 THEN --{

Line 3522: IF (g_asn_debug = 'Y') THEN

3518: END IF;
3519:
3520: -- lastrecord...we have run out of rows and we still have quantity to allocate
3521: IF x_remaining_quantity > 0 THEN --{
3522: IF (g_asn_debug = 'Y') THEN
3523: asn_debug.put_line('There is quantity remaining');
3524: asn_debug.put_line('Need to check qty tolerances');
3525: END IF;
3526:

Line 3523: asn_debug.put_line('There is quantity remaining');

3519:
3520: -- lastrecord...we have run out of rows and we still have quantity to allocate
3521: IF x_remaining_quantity > 0 THEN --{
3522: IF (g_asn_debug = 'Y') THEN
3523: asn_debug.put_line('There is quantity remaining');
3524: asn_debug.put_line('Need to check qty tolerances');
3525: END IF;
3526:
3527: IF rows_fetched > 0

Line 3524: asn_debug.put_line('Need to check qty tolerances');

3520: -- lastrecord...we have run out of rows and we still have quantity to allocate
3521: IF x_remaining_quantity > 0 THEN --{
3522: IF (g_asn_debug = 'Y') THEN
3523: asn_debug.put_line('There is quantity remaining');
3524: asn_debug.put_line('Need to check qty tolerances');
3525: END IF;
3526:
3527: IF rows_fetched > 0
3528: AND NOT x_first_trans THEN --{

Line 3536: IF (g_asn_debug = 'Y') THEN

3532: INTO x_qty_rcv_exception_code
3533: FROM po_line_locations
3534: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
3535:
3536: IF (g_asn_debug = 'Y') THEN
3537: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
3538: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
3539: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
3540: END IF;

Line 3537: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));

3533: FROM po_line_locations
3534: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
3535:
3536: IF (g_asn_debug = 'Y') THEN
3537: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
3538: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
3539: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
3540: END IF;
3541:

Line 3538: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);

3534: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
3535:
3536: IF (g_asn_debug = 'Y') THEN
3537: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
3538: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
3539: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
3540: END IF;
3541:
3542: -- Bug 6796920 Start

Line 3539: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);

3535:
3536: IF (g_asn_debug = 'Y') THEN
3537: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
3538: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
3539: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
3540: END IF;
3541:
3542: -- Bug 6796920 Start
3543: BEGIN

Line 3553: IF (g_asn_debug = 'Y') THEN

3549: when others THEN
3550: NULL;
3551: END;
3552:
3553: IF (g_asn_debug = 'Y') THEN
3554: asn_debug.put_line('Current Organization id = '|| temp_cascaded_table(current_n).to_organization_id);
3555: asn_debug.put_line('Blind Receiving Flag = '|| l_blind_receiving_flag);
3556: END IF;
3557: -- Bug 6796920 End

Line 3554: asn_debug.put_line('Current Organization id = '|| temp_cascaded_table(current_n).to_organization_id);

3550: NULL;
3551: END;
3552:
3553: IF (g_asn_debug = 'Y') THEN
3554: asn_debug.put_line('Current Organization id = '|| temp_cascaded_table(current_n).to_organization_id);
3555: asn_debug.put_line('Blind Receiving Flag = '|| l_blind_receiving_flag);
3556: END IF;
3557: -- Bug 6796920 End
3558:

Line 3555: asn_debug.put_line('Blind Receiving Flag = '|| l_blind_receiving_flag);

3551: END;
3552:
3553: IF (g_asn_debug = 'Y') THEN
3554: asn_debug.put_line('Current Organization id = '|| temp_cascaded_table(current_n).to_organization_id);
3555: asn_debug.put_line('Blind Receiving Flag = '|| l_blind_receiving_flag);
3556: END IF;
3557: -- Bug 6796920 End
3558:
3559: -- The following if condition is commented out as part of bug 6796920

Line 3574: IF (g_asn_debug = 'Y') THEN

3570: temp_cascaded_table(current_n).quantity <=
3571: x_converted_trx_qty
3572: ) THEN --{
3573: */
3574: IF (g_asn_debug = 'Y') THEN
3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));
3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');

Line 3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));

3571: x_converted_trx_qty
3572: ) THEN --{
3573: */
3574: IF (g_asn_debug = 'Y') THEN
3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));
3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
3579: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');

Line 3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));

3572: ) THEN --{
3573: */
3574: IF (g_asn_debug = 'Y') THEN
3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));
3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
3579: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
3580: END IF;

Line 3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));

3573: */
3574: IF (g_asn_debug = 'Y') THEN
3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));
3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
3579: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
3580: END IF;
3581: /* Bug 4907269.

Line 3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');

3574: IF (g_asn_debug = 'Y') THEN
3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));
3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
3579: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
3580: END IF;
3581: /* Bug 4907269.
3582: x_remaining_quantity is the unused transaction qty, it has to be rounded to 6 decimals

Line 3579: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');

3575: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_qty));
3576: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3577: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3578: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
3579: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
3580: END IF;
3581: /* Bug 4907269.
3582: x_remaining_quantity is the unused transaction qty, it has to be rounded to 6 decimals
3583: so that quantity and primary quantity will computed correctly rounded to 6 decimals.

Line 3598: IF (g_asn_debug = 'Y') THEN

3594: temp_cascaded_table(1).item_id,
3595: temp_cascaded_table(1).primary_unit_of_measure
3596: );
3597:
3598: IF (g_asn_debug = 'Y') THEN
3599: asn_debug.put_line('primary_qty for the last row ' || temp_cascaded_table(current_n).primary_quantity);
3600: asn_debug.put_line('quantity for the last row ' || temp_cascaded_table(current_n).quantity);
3601: END IF;
3602:

Line 3599: asn_debug.put_line('primary_qty for the last row ' || temp_cascaded_table(current_n).primary_quantity);

3595: temp_cascaded_table(1).primary_unit_of_measure
3596: );
3597:
3598: IF (g_asn_debug = 'Y') THEN
3599: asn_debug.put_line('primary_qty for the last row ' || temp_cascaded_table(current_n).primary_quantity);
3600: asn_debug.put_line('quantity for the last row ' || temp_cascaded_table(current_n).quantity);
3601: END IF;
3602:
3603: /* Bug 3506964.

Line 3600: asn_debug.put_line('quantity for the last row ' || temp_cascaded_table(current_n).quantity);

3596: );
3597:
3598: IF (g_asn_debug = 'Y') THEN
3599: asn_debug.put_line('primary_qty for the last row ' || temp_cascaded_table(current_n).primary_quantity);
3600: asn_debug.put_line('quantity for the last row ' || temp_cascaded_table(current_n).quantity);
3601: END IF;
3602:
3603: /* Bug 3506964.
3604: END IF; Bug# 1807842 --}

Line 3615: IF (g_asn_debug = 'Y') THEN

3611: END IF;
3612:
3613: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 6);
3614:
3615: IF (g_asn_debug = 'Y') THEN
3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

Line 3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));

3612:
3613: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 6);
3614:
3615: IF (g_asn_debug = 'Y') THEN
3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3620: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

Line 3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));

3613: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 6);
3614:
3615: IF (g_asn_debug = 'Y') THEN
3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3620: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3621: END IF;

Line 3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));

3614:
3615: IF (g_asn_debug = 'Y') THEN
3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3620: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3621: END IF;
3622:

Line 3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

3615: IF (g_asn_debug = 'Y') THEN
3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3620: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3621: END IF;
3622:
3623: -- Bug 6796920 - Modified the following if condition to check for blind receiving flag

Line 3620: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

3616: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3617: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3618: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3619: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3620: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3621: END IF;
3622:
3623: -- Bug 6796920 - Modified the following if condition to check for blind receiving flag
3624: IF (x_qty_rcv_exception_code = 'WARNING' AND NVL(l_blind_receiving_flag,'N') <> 'Y') THEN --{

Line 3625: IF (g_asn_debug = 'Y') THEN

3621: END IF;
3622:
3623: -- Bug 6796920 - Modified the following if condition to check for blind receiving flag
3624: IF (x_qty_rcv_exception_code = 'WARNING' AND NVL(l_blind_receiving_flag,'N') <> 'Y') THEN --{
3625: IF (g_asn_debug = 'Y') THEN
3626: asn_debug.put_line('IN WARNING');
3627: END IF;
3628:
3629: IF (g_asn_debug = 'Y') THEN

Line 3626: asn_debug.put_line('IN WARNING');

3622:
3623: -- Bug 6796920 - Modified the following if condition to check for blind receiving flag
3624: IF (x_qty_rcv_exception_code = 'WARNING' AND NVL(l_blind_receiving_flag,'N') <> 'Y') THEN --{
3625: IF (g_asn_debug = 'Y') THEN
3626: asn_debug.put_line('IN WARNING');
3627: END IF;
3628:
3629: IF (g_asn_debug = 'Y') THEN
3630: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));

Line 3629: IF (g_asn_debug = 'Y') THEN

3625: IF (g_asn_debug = 'Y') THEN
3626: asn_debug.put_line('IN WARNING');
3627: END IF;
3628:
3629: IF (g_asn_debug = 'Y') THEN
3630: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
3631: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
3632: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
3633: END IF;

Line 3630: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));

3626: asn_debug.put_line('IN WARNING');
3627: END IF;
3628:
3629: IF (g_asn_debug = 'Y') THEN
3630: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
3631: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
3632: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
3633: END IF;
3634:

Line 3631: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));

3627: END IF;
3628:
3629: IF (g_asn_debug = 'Y') THEN
3630: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
3631: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
3632: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
3633: END IF;
3634:
3635: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 3632: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));

3628:
3629: IF (g_asn_debug = 'Y') THEN
3630: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
3631: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
3632: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
3633: END IF;
3634:
3635: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;
3636: rcv_error_pkg.set_error_message('RCV_SHIP_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 3641: IF (g_asn_debug = 'Y') THEN

3637: rcv_error_pkg.set_token('QTY_A', temp_cascaded_table(current_n).quantity);
3638: rcv_error_pkg.set_token('QTY_B', temp_cascaded_table(current_n).quantity - x_remaining_quantity);
3639: rcv_error_pkg.log_interface_warning('QUANTITY');
3640:
3641: IF (g_asn_debug = 'Y') THEN
3642: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
3643: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
3644: asn_debug.put_line('Need to insert into po_interface_errors');
3645: END IF;

Line 3642: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);

3638: rcv_error_pkg.set_token('QTY_B', temp_cascaded_table(current_n).quantity - x_remaining_quantity);
3639: rcv_error_pkg.log_interface_warning('QUANTITY');
3640:
3641: IF (g_asn_debug = 'Y') THEN
3642: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
3643: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
3644: asn_debug.put_line('Need to insert into po_interface_errors');
3645: END IF;
3646: -- Commented out the following END IF as part of bug 6796920

Line 3643: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);

3639: rcv_error_pkg.log_interface_warning('QUANTITY');
3640:
3641: IF (g_asn_debug = 'Y') THEN
3642: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
3643: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
3644: asn_debug.put_line('Need to insert into po_interface_errors');
3645: END IF;
3646: -- Commented out the following END IF as part of bug 6796920
3647: -- END IF; --} matches x_qty_rcv_exception_code = 'WARNING'

Line 3644: asn_debug.put_line('Need to insert into po_interface_errors');

3640:
3641: IF (g_asn_debug = 'Y') THEN
3642: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
3643: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
3644: asn_debug.put_line('Need to insert into po_interface_errors');
3645: END IF;
3646: -- Commented out the following END IF as part of bug 6796920
3647: -- END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
3648:

Line 3649: IF (g_asn_debug = 'Y') THEN

3645: END IF;
3646: -- Commented out the following END IF as part of bug 6796920
3647: -- END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
3648:
3649: IF (g_asn_debug = 'Y') THEN
3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

Line 3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));

3646: -- Commented out the following END IF as part of bug 6796920
3647: -- END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
3648:
3649: IF (g_asn_debug = 'Y') THEN
3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3654: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

Line 3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));

3647: -- END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
3648:
3649: IF (g_asn_debug = 'Y') THEN
3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3654: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3655: END IF;

Line 3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));

3648:
3649: IF (g_asn_debug = 'Y') THEN
3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3654: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3655: END IF;
3656: -- }

Line 3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

3649: IF (g_asn_debug = 'Y') THEN
3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3654: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3655: END IF;
3656: -- }
3657: -- ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{

Line 3654: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

3650: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
3651: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
3652: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
3653: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
3654: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
3655: END IF;
3656: -- }
3657: -- ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{
3658: -- Bug 6796920 - Modified the following elsif condition to check for blind receiving flag

Line 3660: IF (g_asn_debug = 'Y') THEN

3656: -- }
3657: -- ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{
3658: -- Bug 6796920 - Modified the following elsif condition to check for blind receiving flag
3659: ELSIF (x_qty_rcv_exception_code = 'REJECT' AND NVL(l_blind_receiving_flag,'N') <> 'Y') THEN
3660: IF (g_asn_debug = 'Y') THEN
3661: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
3662: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
3663: END IF;
3664:

Line 3661: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));

3657: -- ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{
3658: -- Bug 6796920 - Modified the following elsif condition to check for blind receiving flag
3659: ELSIF (x_qty_rcv_exception_code = 'REJECT' AND NVL(l_blind_receiving_flag,'N') <> 'Y') THEN
3660: IF (g_asn_debug = 'Y') THEN
3661: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
3662: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
3663: END IF;
3664:
3665: IF (g_asn_debug = 'Y') THEN

Line 3662: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));

3658: -- Bug 6796920 - Modified the following elsif condition to check for blind receiving flag
3659: ELSIF (x_qty_rcv_exception_code = 'REJECT' AND NVL(l_blind_receiving_flag,'N') <> 'Y') THEN
3660: IF (g_asn_debug = 'Y') THEN
3661: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
3662: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
3663: END IF;
3664:
3665: IF (g_asn_debug = 'Y') THEN
3666: asn_debug.put_line('delete the temp table ');

Line 3665: IF (g_asn_debug = 'Y') THEN

3661: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
3662: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
3663: END IF;
3664:
3665: IF (g_asn_debug = 'Y') THEN
3666: asn_debug.put_line('delete the temp table ');
3667: END IF;
3668:
3669: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3666: asn_debug.put_line('delete the temp table ');

3662: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
3663: END IF;
3664:
3665: IF (g_asn_debug = 'Y') THEN
3666: asn_debug.put_line('delete the temp table ');
3667: END IF;
3668:
3669: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3670: rcv_error_pkg.set_error_message('RCV_SHIP_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 3681: IF (g_asn_debug = 'Y') THEN

3677: temp_cascaded_table.DELETE(i);
3678: END LOOP;
3679: END IF;
3680:
3681: IF (g_asn_debug = 'Y') THEN
3682: asn_debug.put_line('mark the actual table with error status');
3683: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
3685: END IF;

Line 3682: asn_debug.put_line('mark the actual table with error status');

3678: END LOOP;
3679: END IF;
3680:
3681: IF (g_asn_debug = 'Y') THEN
3682: asn_debug.put_line('mark the actual table with error status');
3683: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
3685: END IF;
3686:

Line 3683: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

3679: END IF;
3680:
3681: IF (g_asn_debug = 'Y') THEN
3682: asn_debug.put_line('mark the actual table with error status');
3683: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
3685: END IF;
3686:
3687: IF (g_asn_debug = 'Y') THEN

Line 3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

3680:
3681: IF (g_asn_debug = 'Y') THEN
3682: asn_debug.put_line('mark the actual table with error status');
3683: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
3685: END IF;
3686:
3687: IF (g_asn_debug = 'Y') THEN
3688: asn_debug.put_line('Need to insert a row into po_interface_errors');

Line 3687: IF (g_asn_debug = 'Y') THEN

3683: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
3685: END IF;
3686:
3687: IF (g_asn_debug = 'Y') THEN
3688: asn_debug.put_line('Need to insert a row into po_interface_errors');
3689: END IF;
3690: END IF; --} matches if(none/warning) and elseif(reject)
3691: --}

Line 3688: asn_debug.put_line('Need to insert a row into po_interface_errors');

3684: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
3685: END IF;
3686:
3687: IF (g_asn_debug = 'Y') THEN
3688: asn_debug.put_line('Need to insert a row into po_interface_errors');
3689: END IF;
3690: END IF; --} matches if(none/warning) and elseif(reject)
3691: --}
3692: ELSE --{ else for rows fetched = 0 OR x_first_trans = true

Line 3694: IF (g_asn_debug = 'Y') THEN

3690: END IF; --} matches if(none/warning) and elseif(reject)
3691: --}
3692: ELSE --{ else for rows fetched = 0 OR x_first_trans = true
3693: IF rows_fetched = 0 THEN
3694: IF (g_asn_debug = 'Y') THEN
3695: asn_debug.put_line('No rows were retrieved from cursor.');
3696: END IF;
3697: ELSIF x_first_trans THEN
3698: IF (g_asn_debug = 'Y') THEN

Line 3695: asn_debug.put_line('No rows were retrieved from cursor.');

3691: --}
3692: ELSE --{ else for rows fetched = 0 OR x_first_trans = true
3693: IF rows_fetched = 0 THEN
3694: IF (g_asn_debug = 'Y') THEN
3695: asn_debug.put_line('No rows were retrieved from cursor.');
3696: END IF;
3697: ELSIF x_first_trans THEN
3698: IF (g_asn_debug = 'Y') THEN
3699: asn_debug.put_line('No rows were cascaded');

Line 3698: IF (g_asn_debug = 'Y') THEN

3694: IF (g_asn_debug = 'Y') THEN
3695: asn_debug.put_line('No rows were retrieved from cursor.');
3696: END IF;
3697: ELSIF x_first_trans THEN
3698: IF (g_asn_debug = 'Y') THEN
3699: asn_debug.put_line('No rows were cascaded');
3700: END IF;
3701: END IF;
3702:

Line 3699: asn_debug.put_line('No rows were cascaded');

3695: asn_debug.put_line('No rows were retrieved from cursor.');
3696: END IF;
3697: ELSIF x_first_trans THEN
3698: IF (g_asn_debug = 'Y') THEN
3699: asn_debug.put_line('No rows were cascaded');
3700: END IF;
3701: END IF;
3702:
3703: x_temp_count := 1;

Line 3712: IF (g_asn_debug = 'Y') THEN

3708: */
3709: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3710: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3711: -- Bug 2551443 Removed po_distributions from the FROM clause
3712: IF (g_asn_debug = 'Y') THEN
3713: asn_debug.put_line('This is receive');
3714: END IF;
3715:
3716: IF (x_is_asn = FALSE) THEN --{

Line 3713: asn_debug.put_line('This is receive');

3709: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
3710: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
3711: -- Bug 2551443 Removed po_distributions from the FROM clause
3712: IF (g_asn_debug = 'Y') THEN
3713: asn_debug.put_line('This is receive');
3714: END IF;
3715:
3716: IF (x_is_asn = FALSE) THEN --{
3717: SELECT COUNT(*)

Line 3730: IF (g_asn_debug = 'Y') THEN

3726: AND pll.line_location_id = NVL(temp_cascaded_table(current_n).po_line_location_id, pll.line_location_id)
3727: AND pll.po_line_id = pl.po_line_id;
3728: END IF; --}
3729:
3730: IF (g_asn_debug = 'Y') THEN
3731: asn_debug.put_line('x_temp_count ' || x_temp_count);
3732: END IF;
3733:
3734: IF x_temp_count = 0 THEN --{

Line 3731: asn_debug.put_line('x_temp_count ' || x_temp_count);

3727: AND pll.po_line_id = pl.po_line_id;
3728: END IF; --}
3729:
3730: IF (g_asn_debug = 'Y') THEN
3731: asn_debug.put_line('x_temp_count ' || x_temp_count);
3732: END IF;
3733:
3734: IF x_temp_count = 0 THEN --{
3735: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3741: IF (g_asn_debug = 'Y') THEN

3737: rcv_error_pkg.set_token('PONUM', temp_cascaded_table(current_n).document_num);
3738: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
3739: ELSE -- x_item_count != 0 --}{
3740: IF (x_is_asn = FALSE) THEN --{
3741: IF (g_asn_debug = 'Y') THEN
3742: asn_debug.put_line('Get the flag values');
3743: END IF;
3744:
3745: SELECT NVL(pl.item_id, 0),

Line 3742: asn_debug.put_line('Get the flag values');

3738: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
3739: ELSE -- x_item_count != 0 --}{
3740: IF (x_is_asn = FALSE) THEN --{
3741: IF (g_asn_debug = 'Y') THEN
3742: asn_debug.put_line('Get the flag values');
3743: END IF;
3744:
3745: SELECT NVL(pl.item_id, 0),
3746: NVL(pll.approved_flag, 'N'),

Line 3771: IF (g_asn_debug = 'Y') THEN

3767: AND NVL(pll.po_release_id, 0) = NVL(temp_cascaded_table(current_n).po_release_id, NVL(pll.po_release_id, 0))
3768: AND pll.line_location_id = NVL(temp_cascaded_table(current_n).po_line_location_id, pll.line_location_id)
3769: AND pll.po_line_id = pl.po_line_id;
3770:
3771: IF (g_asn_debug = 'Y') THEN
3772: asn_debug.put_line('x_item_id ' || x_item_id);
3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);

Line 3772: asn_debug.put_line('x_item_id ' || x_item_id);

3768: AND pll.line_location_id = NVL(temp_cascaded_table(current_n).po_line_location_id, pll.line_location_id)
3769: AND pll.po_line_id = pl.po_line_id;
3770:
3771: IF (g_asn_debug = 'Y') THEN
3772: asn_debug.put_line('x_item_id ' || x_item_id);
3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

Line 3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);

3769: AND pll.po_line_id = pl.po_line_id;
3770:
3771: IF (g_asn_debug = 'Y') THEN
3772: asn_debug.put_line('x_item_id ' || x_item_id);
3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);

Line 3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);

3770:
3771: IF (g_asn_debug = 'Y') THEN
3772: asn_debug.put_line('x_item_id ' || x_item_id);
3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);

Line 3775: asn_debug.put_line('x_closed_code ' || x_closed_code);

3771: IF (g_asn_debug = 'Y') THEN
3772: asn_debug.put_line('x_item_id ' || x_item_id);
3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);

Line 3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

3772: asn_debug.put_line('x_item_id ' || x_item_id);
3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3780: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);

Line 3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);

3773: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3780: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3781: END IF;

Line 3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);

3774: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3780: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3781: END IF;
3782: END IF; --}

Line 3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);

3775: asn_debug.put_line('x_closed_code ' || x_closed_code);
3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3780: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3781: END IF;
3782: END IF; --}
3783: END IF; --} -- x_temp_count = 0

Line 3780: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);

3776: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3777: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3778: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3779: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3780: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3781: END IF;
3782: END IF; --}
3783: END IF; --} -- x_temp_count = 0
3784: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'

Line 3786: IF (g_asn_debug = 'Y') THEN

3782: END IF; --}
3783: END IF; --} -- x_temp_count = 0
3784: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3785: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3786: IF (g_asn_debug = 'Y') THEN
3787: asn_debug.put_line('This is deliver');
3788: END IF;
3789:
3790: IF (x_is_asn = FALSE) THEN --{

Line 3787: asn_debug.put_line('This is deliver');

3783: END IF; --} -- x_temp_count = 0
3784: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
3785: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --}{
3786: IF (g_asn_debug = 'Y') THEN
3787: asn_debug.put_line('This is deliver');
3788: END IF;
3789:
3790: IF (x_is_asn = FALSE) THEN --{
3791: SELECT COUNT(*)

Line 3807: IF (g_asn_debug = 'Y') THEN

3803: AND pll.po_line_id = pl.po_line_id
3804: AND pod.distribution_num = NVL(temp_cascaded_table(current_n).document_distribution_num, pod.distribution_num);
3805: END IF; --}
3806:
3807: IF (g_asn_debug = 'Y') THEN
3808: asn_debug.put_line('x_temp_count ' || x_temp_count);
3809: END IF;
3810:
3811: IF x_temp_count = 0 THEN --{

Line 3808: asn_debug.put_line('x_temp_count ' || x_temp_count);

3804: AND pod.distribution_num = NVL(temp_cascaded_table(current_n).document_distribution_num, pod.distribution_num);
3805: END IF; --}
3806:
3807: IF (g_asn_debug = 'Y') THEN
3808: asn_debug.put_line('x_temp_count ' || x_temp_count);
3809: END IF;
3810:
3811: IF x_temp_count = 0 THEN --{
3812: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3818: IF (g_asn_debug = 'Y') THEN

3814: rcv_error_pkg.set_token('NUMBER', temp_cascaded_table(current_n).document_distribution_num);
3815: rcv_error_pkg.log_interface_error('DOCUMENT_DISTRIBUTION_NUM', FALSE);
3816: ELSE -- x_temp_count != 0 --}{
3817: IF (x_is_asn = FALSE) THEN --{
3818: IF (g_asn_debug = 'Y') THEN
3819: asn_debug.put_line('Get flag values ');
3820: END IF;
3821:
3822: SELECT NVL(pl.item_id, 0),

Line 3819: asn_debug.put_line('Get flag values ');

3815: rcv_error_pkg.log_interface_error('DOCUMENT_DISTRIBUTION_NUM', FALSE);
3816: ELSE -- x_temp_count != 0 --}{
3817: IF (x_is_asn = FALSE) THEN --{
3818: IF (g_asn_debug = 'Y') THEN
3819: asn_debug.put_line('Get flag values ');
3820: END IF;
3821:
3822: SELECT NVL(pl.item_id, 0),
3823: NVL(pll.approved_flag, 'N'),

Line 3851: IF (g_asn_debug = 'Y') THEN

3847: AND pll.line_location_id = NVL(temp_cascaded_table(current_n).po_line_location_id, pll.line_location_id)
3848: AND pll.po_line_id = pl.po_line_id
3849: AND pod.distribution_num = NVL(temp_cascaded_table(current_n).document_distribution_num, pod.distribution_num);
3850:
3851: IF (g_asn_debug = 'Y') THEN
3852: asn_debug.put_line('x_item_id ' || x_item_id);
3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);

Line 3852: asn_debug.put_line('x_item_id ' || x_item_id);

3848: AND pll.po_line_id = pl.po_line_id
3849: AND pod.distribution_num = NVL(temp_cascaded_table(current_n).document_distribution_num, pod.distribution_num);
3850:
3851: IF (g_asn_debug = 'Y') THEN
3852: asn_debug.put_line('x_item_id ' || x_item_id);
3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

Line 3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);

3849: AND pod.distribution_num = NVL(temp_cascaded_table(current_n).document_distribution_num, pod.distribution_num);
3850:
3851: IF (g_asn_debug = 'Y') THEN
3852: asn_debug.put_line('x_item_id ' || x_item_id);
3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);

Line 3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);

3850:
3851: IF (g_asn_debug = 'Y') THEN
3852: asn_debug.put_line('x_item_id ' || x_item_id);
3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);

Line 3855: asn_debug.put_line('x_closed_code ' || x_closed_code);

3851: IF (g_asn_debug = 'Y') THEN
3852: asn_debug.put_line('x_item_id ' || x_item_id);
3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);

Line 3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

3852: asn_debug.put_line('x_item_id ' || x_item_id);
3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3860: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);

Line 3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);

3853: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3860: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3861: END IF;

Line 3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);

3854: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3860: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3861: END IF;
3862: END IF; --}

Line 3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);

3855: asn_debug.put_line('x_closed_code ' || x_closed_code);
3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3860: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3861: END IF;
3862: END IF; --}
3863: END IF; -- x_temp_count = 0; --}

Line 3860: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);

3856: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3857: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3858: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3859: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3860: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3861: END IF;
3862: END IF; --}
3863: END IF; -- x_temp_count = 0; --}
3864: END IF; -- transaction_type <> 'DELIVER' --}

Line 3867: IF (g_asn_debug = 'Y') THEN

3863: END IF; -- x_temp_count = 0; --}
3864: END IF; -- transaction_type <> 'DELIVER' --}
3865:
3866: IF (x_is_asn = TRUE) THEN --{
3867: IF (g_asn_debug = 'Y') THEN
3868: asn_debug.put_line('Shipment header_id not null ');
3869: END IF;
3870:
3871: SELECT NVL(rsl.item_id, 0),

Line 3868: asn_debug.put_line('Shipment header_id not null ');

3864: END IF; -- transaction_type <> 'DELIVER' --}
3865:
3866: IF (x_is_asn = TRUE) THEN --{
3867: IF (g_asn_debug = 'Y') THEN
3868: asn_debug.put_line('Shipment header_id not null ');
3869: END IF;
3870:
3871: SELECT NVL(rsl.item_id, 0),
3872: NVL(pll.approved_flag, 'N'),

Line 3913: IF (g_asn_debug = 'Y') THEN

3909: AND NVL(pll.po_release_id, 0) = NVL(temp_cascaded_table(current_n).po_release_id,0)
3910: AND pll.line_location_id = temp_cascaded_table(current_n).po_line_location_id
3911: AND pll.po_line_id = pl.po_line_id;
3912:
3913: IF (g_asn_debug = 'Y') THEN
3914: asn_debug.put_line('x_item_id ' || x_item_id);
3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);

Line 3914: asn_debug.put_line('x_item_id ' || x_item_id);

3910: AND pll.line_location_id = temp_cascaded_table(current_n).po_line_location_id
3911: AND pll.po_line_id = pl.po_line_id;
3912:
3913: IF (g_asn_debug = 'Y') THEN
3914: asn_debug.put_line('x_item_id ' || x_item_id);
3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

Line 3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);

3911: AND pll.po_line_id = pl.po_line_id;
3912:
3913: IF (g_asn_debug = 'Y') THEN
3914: asn_debug.put_line('x_item_id ' || x_item_id);
3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);

Line 3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);

3912:
3913: IF (g_asn_debug = 'Y') THEN
3914: asn_debug.put_line('x_item_id ' || x_item_id);
3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);

Line 3917: asn_debug.put_line('x_closed_code ' || x_closed_code);

3913: IF (g_asn_debug = 'Y') THEN
3914: asn_debug.put_line('x_item_id ' || x_item_id);
3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);

Line 3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);

3914: asn_debug.put_line('x_item_id ' || x_item_id);
3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);

Line 3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);

3915: asn_debug.put_line('x_approved_flag ' || x_approved_flag);
3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);

Line 3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);

3916: asn_debug.put_line('x_cancel_flag ' || x_cancel_flag);
3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);
3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);

Line 3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);

3917: asn_debug.put_line('x_closed_code ' || x_closed_code);
3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);
3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);
3925: asn_debug.put_line('l_asn_line_flag ' || l_asn_line_flag);

Line 3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);

3918: asn_debug.put_line('x_include_closed_po ' || x_include_closed_po);
3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);
3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);
3925: asn_debug.put_line('l_asn_line_flag ' || l_asn_line_flag);
3926: END IF;

Line 3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);

3919: asn_debug.put_line('x_shipment_type ' || x_shipment_type);
3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);
3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);
3925: asn_debug.put_line('l_asn_line_flag ' || l_asn_line_flag);
3926: END IF;
3927: END IF; --}

Line 3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);

3920: asn_debug.put_line('x_ship_to_organization_id ' || x_ship_to_organization_id);
3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);
3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);
3925: asn_debug.put_line('l_asn_line_flag ' || l_asn_line_flag);
3926: END IF;
3927: END IF; --}
3928:

Line 3925: asn_debug.put_line('l_asn_line_flag ' || l_asn_line_flag);

3921: asn_debug.put_line('x_ship_to_location_id ' || x_ship_to_location_id);
3922: asn_debug.put_line('x_vendor_product_num ' || x_vendor_product_num);
3923: asn_debug.put_line('l_receipt_source_code ' || l_receipt_source_code);
3924: asn_debug.put_line('l_shipment_line_status_code ' || l_shipment_line_status_code);
3925: asn_debug.put_line('l_asn_line_flag ' || l_asn_line_flag);
3926: END IF;
3927: END IF; --}
3928:
3929: IF (x_temp_count <> 0) THEN --{

Line 3932: IF (g_asn_debug = 'Y') THEN

3928:
3929: IF (x_temp_count <> 0) THEN --{
3930: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3931:
3932: IF (g_asn_debug = 'Y') THEN
3933: asn_debug.put_line('Should give us the exact error ');
3934: END IF;
3935:
3936: IF x_item_id <> NVL(temp_cascaded_table(current_n).item_id, x_item_id) THEN

Line 3933: asn_debug.put_line('Should give us the exact error ');

3929: IF (x_temp_count <> 0) THEN --{
3930: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3931:
3932: IF (g_asn_debug = 'Y') THEN
3933: asn_debug.put_line('Should give us the exact error ');
3934: END IF;
3935:
3936: IF x_item_id <> NVL(temp_cascaded_table(current_n).item_id, x_item_id) THEN
3937: IF (g_asn_debug = 'Y') THEN

Line 3937: IF (g_asn_debug = 'Y') THEN

3933: asn_debug.put_line('Should give us the exact error ');
3934: END IF;
3935:
3936: IF x_item_id <> NVL(temp_cascaded_table(current_n).item_id, x_item_id) THEN
3937: IF (g_asn_debug = 'Y') THEN
3938: asn_debug.put_line('This item is not allowed ');
3939: END IF;
3940:
3941: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3938: asn_debug.put_line('This item is not allowed ');

3934: END IF;
3935:
3936: IF x_item_id <> NVL(temp_cascaded_table(current_n).item_id, x_item_id) THEN
3937: IF (g_asn_debug = 'Y') THEN
3938: asn_debug.put_line('This item is not allowed ');
3939: END IF;
3940:
3941: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3942: rcv_error_pkg.set_error_message('RCV_ASN_ITEM_NOT_ALLOWED', x_cascaded_table(n).error_message);

Line 3948: IF (g_asn_debug = 'Y') THEN

3944: rcv_error_pkg.log_interface_error('ITEM_NUM', FALSE);
3945: END IF;
3946:
3947: IF x_approved_flag <> 'Y' THEN
3948: IF (g_asn_debug = 'Y') THEN
3949: asn_debug.put_line('This PO is not approved');
3950: END IF;
3951:
3952: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3949: asn_debug.put_line('This PO is not approved');

3945: END IF;
3946:
3947: IF x_approved_flag <> 'Y' THEN
3948: IF (g_asn_debug = 'Y') THEN
3949: asn_debug.put_line('This PO is not approved');
3950: END IF;
3951:
3952: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3953: rcv_error_pkg.set_error_message('RCV_ASN_SHIPMT_NOT_APPROVED', x_cascaded_table(n).error_message);

Line 3960: IF (g_asn_debug = 'Y') THEN

3956: rcv_error_pkg.log_interface_error('DOCUMENT_SHIPMENT_LINE_NUM', FALSE);
3957: END IF;
3958:
3959: IF x_cancel_flag <> 'N' THEN
3960: IF (g_asn_debug = 'Y') THEN
3961: asn_debug.put_line('This PO is cancelled');
3962: END IF;
3963:
3964: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3961: asn_debug.put_line('This PO is cancelled');

3957: END IF;
3958:
3959: IF x_cancel_flag <> 'N' THEN
3960: IF (g_asn_debug = 'Y') THEN
3961: asn_debug.put_line('This PO is cancelled');
3962: END IF;
3963:
3964: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3965: rcv_error_pkg.set_error_message('RCV_ASN_SHIPMT_CANCELLED', x_cascaded_table(n).error_message);

Line 3984: IF (g_asn_debug = 'Y') THEN

3980: * po profile option is set to No.
3981: */
3982: IF ( NVL(x_include_closed_po, 'N') = 'Y'
3983: AND x_closed_code = 'FINALLY CLOSED') THEN
3984: IF (g_asn_debug = 'Y') THEN
3985: asn_debug.put_line('This PO is finally closed and the profile option to include closed POs is Y');
3986: END IF;
3987:
3988: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3985: asn_debug.put_line('This PO is finally closed and the profile option to include closed POs is Y');

3981: */
3982: IF ( NVL(x_include_closed_po, 'N') = 'Y'
3983: AND x_closed_code = 'FINALLY CLOSED') THEN
3984: IF (g_asn_debug = 'Y') THEN
3985: asn_debug.put_line('This PO is finally closed and the profile option to include closed POs is Y');
3986: END IF;
3987:
3988: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
3989: rcv_error_pkg.set_error_message('RCV_ASN_SHIPMT_CANCELLED', x_cascaded_table(n).error_message);

Line 3996: IF (g_asn_debug = 'Y') THEN

3992: END IF;
3993:
3994: IF ( NVL(x_include_closed_po, 'N') = 'N'
3995: AND x_closed_code IN('FINALLY CLOSED', 'CLOSED', 'CLOSED FOR RECEIVING')) THEN
3996: IF (g_asn_debug = 'Y') THEN
3997: asn_debug.put_line('This PO is not open and the profile option to include closed POs is N');
3998: END IF;
3999:
4000: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 3997: asn_debug.put_line('This PO is not open and the profile option to include closed POs is N');

3993:
3994: IF ( NVL(x_include_closed_po, 'N') = 'N'
3995: AND x_closed_code IN('FINALLY CLOSED', 'CLOSED', 'CLOSED FOR RECEIVING')) THEN
3996: IF (g_asn_debug = 'Y') THEN
3997: asn_debug.put_line('This PO is not open and the profile option to include closed POs is N');
3998: END IF;
3999:
4000: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4001: rcv_error_pkg.set_error_message('RCV_ASN_SHIPMT_NOT_OPEN', x_cascaded_table(n).error_message);

Line 4007: IF (g_asn_debug = 'Y') THEN

4003: rcv_error_pkg.log_interface_error('DOCUMENT_SHIPMENT_LINE_NUM', FALSE);
4004: END IF;
4005:
4006: IF x_shipment_type NOT IN('STANDARD', 'BLANKET', 'SCHEDULED','PREPAYMENT') THEN
4007: IF (g_asn_debug = 'Y') THEN
4008: asn_debug.put_line('This PO shipment type cannot be received');
4009: END IF;
4010:
4011: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 4008: asn_debug.put_line('This PO shipment type cannot be received');

4004: END IF;
4005:
4006: IF x_shipment_type NOT IN('STANDARD', 'BLANKET', 'SCHEDULED','PREPAYMENT') THEN
4007: IF (g_asn_debug = 'Y') THEN
4008: asn_debug.put_line('This PO shipment type cannot be received');
4009: END IF;
4010:
4011: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4012: rcv_error_pkg.set_error_message('RCV_ASN_INVAL_SHIPMT_TYPE', x_cascaded_table(n).error_message);

Line 4018: IF (g_asn_debug = 'Y') THEN

4014: rcv_error_pkg.log_interface_error('DOCUMENT_SHIPMENT_LINE_NUM', FALSE);
4015: END IF;
4016:
4017: IF x_ship_to_organization_id <> NVL(temp_cascaded_table(current_n).to_organization_id, x_ship_to_organization_id) THEN
4018: IF (g_asn_debug = 'Y') THEN
4019: asn_debug.put_line('Ship_to_org in PO does not match the user entered value');
4020: END IF;
4021:
4022: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 4019: asn_debug.put_line('Ship_to_org in PO does not match the user entered value');

4015: END IF;
4016:
4017: IF x_ship_to_organization_id <> NVL(temp_cascaded_table(current_n).to_organization_id, x_ship_to_organization_id) THEN
4018: IF (g_asn_debug = 'Y') THEN
4019: asn_debug.put_line('Ship_to_org in PO does not match the user entered value');
4020: END IF;
4021:
4022: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4023: rcv_error_pkg.set_error_message('RCV_ASN_INVAL_SHIP_TO_ORG', x_cascaded_table(n).error_message);

Line 4029: IF (g_asn_debug = 'Y') THEN

4025: rcv_error_pkg.log_interface_error('TO_ORGANIZATION_CODE', FALSE);
4026: END IF;
4027:
4028: IF x_ship_to_location_id <> NVL(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id), x_ship_to_location_id) THEN
4029: IF (g_asn_debug = 'Y') THEN
4030: asn_debug.put_line('Ship_to_loc in PO does not match the user entered value');
4031: END IF;
4032:
4033: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 4030: asn_debug.put_line('Ship_to_loc in PO does not match the user entered value');

4026: END IF;
4027:
4028: IF x_ship_to_location_id <> NVL(NVL(temp_cascaded_table(current_n).ship_to_location_id, x_header_record.header_record.location_id), x_ship_to_location_id) THEN
4029: IF (g_asn_debug = 'Y') THEN
4030: asn_debug.put_line('Ship_to_loc in PO does not match the user entered value');
4031: END IF;
4032:
4033: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4034: rcv_error_pkg.set_error_message('RCV_ASN_INVAL_SHIP_TO_LOC', x_cascaded_table(n).error_message);

Line 4040: IF (g_asn_debug = 'Y') THEN

4036: rcv_error_pkg.log_interface_error('SHIP_TO_LOCATION_CODE', FALSE);
4037: END IF;
4038:
4039: IF x_vendor_product_num <> NVL(temp_cascaded_table(current_n).vendor_item_num, x_vendor_product_num) THEN
4040: IF (g_asn_debug = 'Y') THEN
4041: asn_debug.put_line('Vendor_prod_num in PO does not match the user entered value');
4042: END IF;
4043:
4044: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 4041: asn_debug.put_line('Vendor_prod_num in PO does not match the user entered value');

4037: END IF;
4038:
4039: IF x_vendor_product_num <> NVL(temp_cascaded_table(current_n).vendor_item_num, x_vendor_product_num) THEN
4040: IF (g_asn_debug = 'Y') THEN
4041: asn_debug.put_line('Vendor_prod_num in PO does not match the user entered value');
4042: END IF;
4043:
4044: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4045: rcv_error_pkg.set_error_message('RCV_ASN_INVAL_VENDOR_PROD_NUM', x_cascaded_table(n).error_message);

Line 4050: IF (g_asn_debug = 'Y') THEN

4046: rcv_error_pkg.set_token('NUMBER', temp_cascaded_table(current_n).vendor_item_num);
4047: rcv_error_pkg.log_interface_error('VENDOR_ITEM_NUM', FALSE);
4048: END IF;
4049:
4050: IF (g_asn_debug = 'Y') THEN
4051: asn_debug.put_line('Should have give us the exact error ');
4052: END IF;
4053:
4054: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for Bug 4523892 */

Line 4051: asn_debug.put_line('Should have give us the exact error ');

4047: rcv_error_pkg.log_interface_error('VENDOR_ITEM_NUM', FALSE);
4048: END IF;
4049:
4050: IF (g_asn_debug = 'Y') THEN
4051: asn_debug.put_line('Should have give us the exact error ');
4052: END IF;
4053:
4054: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for Bug 4523892 */
4055: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892

Line 4057: IF (g_asn_debug = 'Y') THEN

4053:
4054: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for Bug 4523892 */
4055: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
4056: /* Error messages specific to asns. */
4057: IF (g_asn_debug = 'Y') THEN
4058: asn_debug.put_line('Error messages specific to asn');
4059: END IF;
4060:
4061: IF l_receipt_source_code <> 'VENDOR' THEN

Line 4058: asn_debug.put_line('Error messages specific to asn');

4054: /* IF (x_is_asn = TRUE) THEN --{ This is replaced by forward port for Bug 4523892 */
4055: IF (rcv_roi_header.g_txn_against_asn = 'Y') THEN --{ Bug#4523892
4056: /* Error messages specific to asns. */
4057: IF (g_asn_debug = 'Y') THEN
4058: asn_debug.put_line('Error messages specific to asn');
4059: END IF;
4060:
4061: IF l_receipt_source_code <> 'VENDOR' THEN
4062: IF (g_asn_debug = 'Y') THEN

Line 4062: IF (g_asn_debug = 'Y') THEN

4058: asn_debug.put_line('Error messages specific to asn');
4059: END IF;
4060:
4061: IF l_receipt_source_code <> 'VENDOR' THEN
4062: IF (g_asn_debug = 'Y') THEN
4063: asn_debug.put_line('Receipt source code not VENDOR');
4064: END IF;
4065:
4066: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 4063: asn_debug.put_line('Receipt source code not VENDOR');

4059: END IF;
4060:
4061: IF l_receipt_source_code <> 'VENDOR' THEN
4062: IF (g_asn_debug = 'Y') THEN
4063: asn_debug.put_line('Receipt source code not VENDOR');
4064: END IF;
4065:
4066: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4067: rcv_error_pkg.set_error_message('RCV_ASN_INVAL_RECEIPT_SOURCE_CODE', x_cascaded_table(n).error_message);

Line 4073: IF (g_asn_debug = 'Y') THEN

4069: END IF;
4070:
4071: IF ( l_shipment_line_status_code = 'FULLY RECEIVED'
4072: OR l_asn_line_flag <> 'Y') THEN
4073: IF (g_asn_debug = 'Y') THEN
4074: asn_debug.put_line('ASN line flag is not Y and status code is Fully closed');
4075: END IF;
4076:
4077: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 4074: asn_debug.put_line('ASN line flag is not Y and status code is Fully closed');

4070:
4071: IF ( l_shipment_line_status_code = 'FULLY RECEIVED'
4072: OR l_asn_line_flag <> 'Y') THEN
4073: IF (g_asn_debug = 'Y') THEN
4074: asn_debug.put_line('ASN line flag is not Y and status code is Fully closed');
4075: END IF;
4076:
4077: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
4078: rcv_error_pkg.set_error_message('RCV_ASN_NO_EXPECTED_RECEIPTS', x_cascaded_table(n).error_message);

Line 4082: IF (g_asn_debug = 'Y') THEN

4078: rcv_error_pkg.set_error_message('RCV_ASN_NO_EXPECTED_RECEIPTS', x_cascaded_table(n).error_message);
4079: rcv_error_pkg.log_interface_error('SHIPMENT_NUMBER', FALSE);
4080: END IF;
4081:
4082: IF (g_asn_debug = 'Y') THEN
4083: asn_debug.put_line('Should have give us the exact error for ASN ');
4084: END IF;
4085: END IF; --}
4086: END IF; -- x_temp_count = 0;}

Line 4083: asn_debug.put_line('Should have give us the exact error for ASN ');

4079: rcv_error_pkg.log_interface_error('SHIPMENT_NUMBER', FALSE);
4080: END IF;
4081:
4082: IF (g_asn_debug = 'Y') THEN
4083: asn_debug.put_line('Should have give us the exact error for ASN ');
4084: END IF;
4085: END IF; --}
4086: END IF; -- x_temp_count = 0;}
4087:

Line 4098: IF (g_asn_debug = 'Y') THEN

4094: END IF;
4095: END IF; --} end else for rows fetched = 0 OR x_first_trans = true
4096: -- end x_remaining_qty > 0 => this is the last record
4097: ELSE --
4098: IF (g_asn_debug = 'Y') THEN
4099: asn_debug.put_line('Remaining ASN UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
4100: asn_debug.put_line('Remaining PO UOM quantity is zero ' || TO_CHAR(x_remaining_qty_po_uom));
4101: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
4102: END IF;

Line 4099: asn_debug.put_line('Remaining ASN UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));

4095: END IF; --} end else for rows fetched = 0 OR x_first_trans = true
4096: -- end x_remaining_qty > 0 => this is the last record
4097: ELSE --
4098: IF (g_asn_debug = 'Y') THEN
4099: asn_debug.put_line('Remaining ASN UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
4100: asn_debug.put_line('Remaining PO UOM quantity is zero ' || TO_CHAR(x_remaining_qty_po_uom));
4101: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
4102: END IF;
4103: END IF; --} ends the check for whether last record has been reached

Line 4100: asn_debug.put_line('Remaining PO UOM quantity is zero ' || TO_CHAR(x_remaining_qty_po_uom));

4096: -- end x_remaining_qty > 0 => this is the last record
4097: ELSE --
4098: IF (g_asn_debug = 'Y') THEN
4099: asn_debug.put_line('Remaining ASN UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
4100: asn_debug.put_line('Remaining PO UOM quantity is zero ' || TO_CHAR(x_remaining_qty_po_uom));
4101: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
4102: END IF;
4103: END IF; --} ends the check for whether last record has been reached
4104:

Line 4101: asn_debug.put_line('Return the cascaded rows back to the calling procedure');

4097: ELSE --
4098: IF (g_asn_debug = 'Y') THEN
4099: asn_debug.put_line('Remaining ASN UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
4100: asn_debug.put_line('Remaining PO UOM quantity is zero ' || TO_CHAR(x_remaining_qty_po_uom));
4101: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
4102: END IF;
4103: END IF; --} ends the check for whether last record has been reached
4104:
4105: -- close cursors

Line 4107: IF (g_asn_debug = 'Y') THEN

4103: END IF; --} ends the check for whether last record has been reached
4104:
4105: -- close cursors
4106:
4107: IF (g_asn_debug = 'Y') THEN
4108: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions');
4109: END IF;
4110:
4111: IF shipments%ISOPEN THEN

Line 4108: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions');

4104:
4105: -- close cursors
4106:
4107: IF (g_asn_debug = 'Y') THEN
4108: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions');
4109: END IF;
4110:
4111: IF shipments%ISOPEN THEN
4112: CLOSE shipments;

Line 4148: IF (g_asn_debug = 'Y') THEN

4144: END IF; --} matches lastrecord or x_remaining_quantity <= 0
4145:
4146: -- eliminate the row if it fails the date check
4147:
4148: IF (g_asn_debug = 'Y') THEN
4149: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
4150: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
4151: asn_debug.put_line('Check date tolerance');
4152: END IF;

Line 4149: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));

4145:
4146: -- eliminate the row if it fails the date check
4147:
4148: IF (g_asn_debug = 'Y') THEN
4149: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
4150: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
4151: asn_debug.put_line('Check date tolerance');
4152: END IF;
4153:

Line 4150: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));

4146: -- eliminate the row if it fails the date check
4147:
4148: IF (g_asn_debug = 'Y') THEN
4149: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
4150: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
4151: asn_debug.put_line('Check date tolerance');
4152: END IF;
4153:
4154: rcv_transactions_interface_sv.check_date_tolerance(NVL(temp_cascaded_table(1).expected_receipt_date, x_header_record.header_record.expected_receipt_date), -- Bug 487222

Line 4151: asn_debug.put_line('Check date tolerance');

4147:
4148: IF (g_asn_debug = 'Y') THEN
4149: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
4150: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
4151: asn_debug.put_line('Check date tolerance');
4152: END IF;
4153:
4154: rcv_transactions_interface_sv.check_date_tolerance(NVL(temp_cascaded_table(1).expected_receipt_date, x_header_record.header_record.expected_receipt_date), -- Bug 487222
4155: x_shipmentdistributionrec.promised_date,

Line 4178: IF (g_asn_debug = 'Y') THEN

4174: WHEN OTHERS THEN
4175: l_asn_exists_code := 'NONE';
4176: END;
4177:
4178: IF (g_asn_debug = 'Y') THEN
4179: asn_debug.put_line('ASN CODE IN rcv_parameters ' || l_asn_exists_code);
4180: END IF;
4181:
4182: /* This check is not done for receiving against ASNs. So check

Line 4179: asn_debug.put_line('ASN CODE IN rcv_parameters ' || l_asn_exists_code);

4175: l_asn_exists_code := 'NONE';
4176: END;
4177:
4178: IF (g_asn_debug = 'Y') THEN
4179: asn_debug.put_line('ASN CODE IN rcv_parameters ' || l_asn_exists_code);
4180: END IF;
4181:
4182: /* This check is not done for receiving against ASNs. So check
4183: * whether x_cascaded_table(n).shipment_header_id is null which

Line 4190: IF (g_asn_debug = 'Y') THEN

4186: IF ( (x_cascaded_table(n).transaction_type = 'RECEIVE')
4187: AND l_asn_exists_code IN('WARNING', 'REJECT')
4188: AND (rcv_roi_header.g_txn_against_asn = 'N')) THEN --{ Bug#4523892
4189: /* AND (x_is_asn = FALSE)) THEN --{ This is replaced by forward port for 4523892 */
4190: IF (g_asn_debug = 'Y') THEN
4191: asn_debug.put_line('ASN CODE IN Warning or Reject ');
4192: END IF;
4193:
4194: /* Bug 4287932 In case of ASBN the ASN control action was

Line 4191: asn_debug.put_line('ASN CODE IN Warning or Reject ');

4187: AND l_asn_exists_code IN('WARNING', 'REJECT')
4188: AND (rcv_roi_header.g_txn_against_asn = 'N')) THEN --{ Bug#4523892
4189: /* AND (x_is_asn = FALSE)) THEN --{ This is replaced by forward port for 4523892 */
4190: IF (g_asn_debug = 'Y') THEN
4191: asn_debug.put_line('ASN CODE IN Warning or Reject ');
4192: END IF;
4193:
4194: /* Bug 4287932 In case of ASBN the ASN control action was
4195: * not getting applied. Added ASBN in the asn_type in

Line 4208: IF (g_asn_debug = 'Y') THEN

4204: AND NVL(rsh.asn_type, 'STD') IN ('ASN','ASBN') --4287932
4205: AND NVL(rsl.shipment_line_status_code, 'EXPECTED') NOT IN('CANCELLED', 'FULLY RECEIVED')
4206: AND rsl.po_line_location_id = x_shipmentdistributionrec.line_location_id;
4207:
4208: IF (g_asn_debug = 'Y') THEN
4209: asn_debug.put_line('l_asn_count ' || l_asn_count);
4210: END IF;
4211:
4212: IF (l_asn_count <> 0) THEN --{

Line 4209: asn_debug.put_line('l_asn_count ' || l_asn_count);

4205: AND NVL(rsl.shipment_line_status_code, 'EXPECTED') NOT IN('CANCELLED', 'FULLY RECEIVED')
4206: AND rsl.po_line_location_id = x_shipmentdistributionrec.line_location_id;
4207:
4208: IF (g_asn_debug = 'Y') THEN
4209: asn_debug.put_line('l_asn_count ' || l_asn_count);
4210: END IF;
4211:
4212: IF (l_asn_count <> 0) THEN --{
4213: IF (l_asn_exists_code = 'WARNING') THEN --{

Line 4218: IF (g_asn_debug = 'Y') THEN

4214: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;
4215: rcv_error_pkg.set_error_message('RCV_ASN_EXISTS_FOR_POLINE', x_cascaded_table(n).error_message);
4216: rcv_error_pkg.log_interface_warning('DOCUMENT_NUM');
4217:
4218: IF (g_asn_debug = 'Y') THEN
4219: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);
4220: END IF;
4221: END IF; --}
4222:

Line 4219: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);

4215: rcv_error_pkg.set_error_message('RCV_ASN_EXISTS_FOR_POLINE', x_cascaded_table(n).error_message);
4216: rcv_error_pkg.log_interface_warning('DOCUMENT_NUM');
4217:
4218: IF (g_asn_debug = 'Y') THEN
4219: asn_debug.put_line('AFter Warning insert into po_interface_errors ' || x_cascaded_table(n).error_message);
4220: END IF;
4221: END IF; --}
4222:
4223: IF (l_asn_exists_code = 'REJECT') THEN --{

Line 4229: IF (g_asn_debug = 'Y') THEN

4225: rcv_error_pkg.set_error_message('RCV_ASN_EXISTS_FOR_POLINE', x_cascaded_table(n).error_message);
4226: rcv_error_pkg.set_token('NUMBER', temp_cascaded_table(current_n).document_num);
4227: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
4228:
4229: IF (g_asn_debug = 'Y') THEN
4230: asn_debug.put_line('AFter Reject insert into po_interface_errors ' || x_cascaded_table(n).error_message);
4231: END IF;
4232: END IF; --}
4233: ELSE --}{

Line 4230: asn_debug.put_line('AFter Reject insert into po_interface_errors ' || x_cascaded_table(n).error_message);

4226: rcv_error_pkg.set_token('NUMBER', temp_cascaded_table(current_n).document_num);
4227: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
4228:
4229: IF (g_asn_debug = 'Y') THEN
4230: asn_debug.put_line('AFter Reject insert into po_interface_errors ' || x_cascaded_table(n).error_message);
4231: END IF;
4232: END IF; --}
4233: ELSE --}{
4234: /* This is a receipt against a PO but there is no ASN.

Line 4253: IF (g_asn_debug = 'Y') THEN

4249: rcv_error_pkg.set_token('DELIVERY DATE', NVL(temp_cascaded_table(1).expected_receipt_date, x_header_record.header_record.expected_receipt_date));
4250: rcv_error_pkg.log_interface_error('EXPECTED_RECEIPT_DATE', FALSE);
4251: END IF; --}
4252:
4253: IF (g_asn_debug = 'Y') THEN
4254: asn_debug.put_line('Days exception Code ' || NVL(x_shipmentdistributionrec.receipt_days_exception_code, 'XXX'));
4255: END IF;
4256:
4257: -- Check shipto_location enforcement

Line 4254: asn_debug.put_line('Days exception Code ' || NVL(x_shipmentdistributionrec.receipt_days_exception_code, 'XXX'));

4250: rcv_error_pkg.log_interface_error('EXPECTED_RECEIPT_DATE', FALSE);
4251: END IF; --}
4252:
4253: IF (g_asn_debug = 'Y') THEN
4254: asn_debug.put_line('Days exception Code ' || NVL(x_shipmentdistributionrec.receipt_days_exception_code, 'XXX'));
4255: END IF;
4256:
4257: -- Check shipto_location enforcement
4258:

Line 4264: IF (g_asn_debug = 'Y') THEN

4260: NVL(temp_cascaded_table(1).ship_to_location_id, x_header_record.header_record.location_id),
4261: x_shipmentdistributionrec.enforce_ship_to_location_code
4262: );
4263:
4264: IF (g_asn_debug = 'Y') THEN
4265: asn_debug.put_line('Enforce ShipToLocation ' || NVL(x_shipmentdistributionrec.enforce_ship_to_location_code, 'XXX'));
4266: END IF;
4267:
4268: /* Bug 2208664 : Enter error message in po_interface_errors if enforce_ship_to_location_code is 'WARNING', and

Line 4265: asn_debug.put_line('Enforce ShipToLocation ' || NVL(x_shipmentdistributionrec.enforce_ship_to_location_code, 'XXX'));

4261: x_shipmentdistributionrec.enforce_ship_to_location_code
4262: );
4263:
4264: IF (g_asn_debug = 'Y') THEN
4265: asn_debug.put_line('Enforce ShipToLocation ' || NVL(x_shipmentdistributionrec.enforce_ship_to_location_code, 'XXX'));
4266: END IF;
4267:
4268: /* Bug 2208664 : Enter error message in po_interface_errors if enforce_ship_to_location_code is 'WARNING', and
4269: Enter error message in po_interface_errors if enforce_ship_to_location_code is 'REJECT' and error out

Line 4307: IF (g_asn_debug = 'Y') THEN

4303: IF (x_first_trans)
4304: AND temp_cascaded_table(current_n).item_id IS NULL THEN --{
4305: temp_cascaded_table(current_n).item_id := x_shipmentdistributionrec.item_id;
4306:
4307: IF (g_asn_debug = 'Y') THEN
4308: asn_debug.put_line('Cursor Item Id is ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
4309: END IF;
4310:
4311: -- Bug 4881909 : For one-time items item_id would be null. Added check

Line 4308: asn_debug.put_line('Cursor Item Id is ' || TO_CHAR(temp_cascaded_table(current_n).item_id));

4304: AND temp_cascaded_table(current_n).item_id IS NULL THEN --{
4305: temp_cascaded_table(current_n).item_id := x_shipmentdistributionrec.item_id;
4306:
4307: IF (g_asn_debug = 'Y') THEN
4308: asn_debug.put_line('Cursor Item Id is ' || TO_CHAR(temp_cascaded_table(current_n).item_id));
4309: END IF;
4310:
4311: -- Bug 4881909 : For one-time items item_id would be null. Added check
4312: -- for item_id in the following IF statement

Line 4322: IF (g_asn_debug = 'Y') THEN

4318: FROM mtl_system_items
4319: WHERE mtl_system_items.inventory_item_id = temp_cascaded_table(current_n).item_id
4320: AND mtl_system_items.organization_id = temp_cascaded_table(current_n).to_organization_id;
4321:
4322: IF (g_asn_debug = 'Y') THEN
4323: asn_debug.put_line('Primary UOM: ' || temp_cascaded_table(current_n).primary_unit_of_measure);
4324: END IF;
4325: EXCEPTION
4326: WHEN NO_DATA_FOUND THEN

Line 4323: asn_debug.put_line('Primary UOM: ' || temp_cascaded_table(current_n).primary_unit_of_measure);

4319: WHERE mtl_system_items.inventory_item_id = temp_cascaded_table(current_n).item_id
4320: AND mtl_system_items.organization_id = temp_cascaded_table(current_n).to_organization_id;
4321:
4322: IF (g_asn_debug = 'Y') THEN
4323: asn_debug.put_line('Primary UOM: ' || temp_cascaded_table(current_n).primary_unit_of_measure);
4324: END IF;
4325: EXCEPTION
4326: WHEN NO_DATA_FOUND THEN
4327: temp_cascaded_table(current_n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 4333: IF (g_asn_debug = 'Y') THEN

4329: rcv_error_pkg.set_token('PRIMARY_UNIT', '');
4330: rcv_error_pkg.set_token('SHIPMENT_UNIT', '');
4331: rcv_error_pkg.log_interface_warning('ITEM_ID');
4332:
4333: IF (g_asn_debug = 'Y') THEN
4334: asn_debug.put_line('Primary UOM error');
4335: END IF;
4336: END;
4337: END IF; --}

Line 4334: asn_debug.put_line('Primary UOM error');

4330: rcv_error_pkg.set_token('SHIPMENT_UNIT', '');
4331: rcv_error_pkg.log_interface_warning('ITEM_ID');
4332:
4333: IF (g_asn_debug = 'Y') THEN
4334: asn_debug.put_line('Primary UOM error');
4335: END IF;
4336: END;
4337: END IF; --}
4338: END IF; --}

Line 4354: IF (g_asn_debug = 'Y') THEN

4350:
4351: /*Bug# 1548597 */
4352: /* IF (x_is_asn = FALSE) THEN --{ Replaced by forward port 4523892 */
4353: IF (rcv_roi_header.g_txn_against_asn = 'N') THEN --{ Bug#4523892
4354: IF (g_asn_debug = 'Y') THEN
4355: asn_debug.put_line('Receiving against a Po');
4356: END IF;
4357:
4358: rcv_quantities_s.get_available_quantity('RECEIVE',

Line 4355: asn_debug.put_line('Receiving against a Po');

4351: /*Bug# 1548597 */
4352: /* IF (x_is_asn = FALSE) THEN --{ Replaced by forward port 4523892 */
4353: IF (rcv_roi_header.g_txn_against_asn = 'N') THEN --{ Bug#4523892
4354: IF (g_asn_debug = 'Y') THEN
4355: asn_debug.put_line('Receiving against a Po');
4356: END IF;
4357:
4358: rcv_quantities_s.get_available_quantity('RECEIVE',
4359: x_shipmentdistributionrec.line_location_id,

Line 4370: IF (g_asn_debug = 'Y') THEN

4366: x_shipmentdistributionrec.unit_meas_lookup_code,
4367: x_secondary_available_qty
4368: );
4369: ELSE --}{
4370: IF (g_asn_debug = 'Y') THEN
4371: asn_debug.put_line('Receiving an ASN');
4372: END IF;
4373:
4374: rcv_quantities_s.get_available_asn_quantity('RECEIVE',

Line 4371: asn_debug.put_line('Receiving an ASN');

4367: x_secondary_available_qty
4368: );
4369: ELSE --}{
4370: IF (g_asn_debug = 'Y') THEN
4371: asn_debug.put_line('Receiving an ASN');
4372: END IF;
4373:
4374: rcv_quantities_s.get_available_asn_quantity('RECEIVE',
4375: x_shipmentdistributionrec.shipment_line_id,

Line 4384: IF (g_asn_debug = 'Y') THEN

4380: x_tolerable_qty,
4381: x_secondary_available_qty
4382: );
4383:
4384: IF (g_asn_debug = 'Y') THEN
4385: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4386: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4387: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4388: END IF;

Line 4385: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);

4381: x_secondary_available_qty
4382: );
4383:
4384: IF (g_asn_debug = 'Y') THEN
4385: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4386: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4387: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4388: END IF;
4389: END IF; --}

Line 4386: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);

4382: );
4383:
4384: IF (g_asn_debug = 'Y') THEN
4385: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4386: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4387: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4388: END IF;
4389: END IF; --}
4390:

Line 4387: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);

4383:
4384: IF (g_asn_debug = 'Y') THEN
4385: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4386: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4387: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4388: END IF;
4389: END IF; --}
4390:
4391:

Line 4409: IF (g_asn_debug = 'Y') THEN

4405: ELSE --} { for txn != deliver
4406: /* Bug# 1548597*/
4407: /* IF (x_is_asn = FALSE) THEN --{ Replaced by forward port 4523892 */
4408: IF (rcv_roi_header.g_txn_against_asn = 'N') THEN --{ Bug#4523892
4409: IF (g_asn_debug = 'Y') THEN
4410: asn_debug.put_line('Direct delivery against a Po');
4411: END IF;
4412:
4413: rcv_quantities_s.get_available_quantity('DIRECT RECEIPT',

Line 4410: asn_debug.put_line('Direct delivery against a Po');

4406: /* Bug# 1548597*/
4407: /* IF (x_is_asn = FALSE) THEN --{ Replaced by forward port 4523892 */
4408: IF (rcv_roi_header.g_txn_against_asn = 'N') THEN --{ Bug#4523892
4409: IF (g_asn_debug = 'Y') THEN
4410: asn_debug.put_line('Direct delivery against a Po');
4411: END IF;
4412:
4413: rcv_quantities_s.get_available_quantity('DIRECT RECEIPT',
4414: x_shipmentdistributionrec.po_distribution_id,

Line 4425: IF (g_asn_debug = 'Y') THEN

4421: x_shipmentdistributionrec.unit_meas_lookup_code,
4422: x_secondary_available_qty
4423: );
4424: ELSE --}{
4425: IF (g_asn_debug = 'Y') THEN
4426: asn_debug.put_line('Direct delivery for an ASN');
4427: END IF;
4428:
4429: rcv_quantities_s.get_available_asn_quantity('DIRECT RECEIPT',

Line 4426: asn_debug.put_line('Direct delivery for an ASN');

4422: x_secondary_available_qty
4423: );
4424: ELSE --}{
4425: IF (g_asn_debug = 'Y') THEN
4426: asn_debug.put_line('Direct delivery for an ASN');
4427: END IF;
4428:
4429: rcv_quantities_s.get_available_asn_quantity('DIRECT RECEIPT',
4430: x_shipmentdistributionrec.shipment_line_id,

Line 4439: IF (g_asn_debug = 'Y') THEN

4435: x_tolerable_qty,
4436: x_secondary_available_qty
4437: );
4438:
4439: IF (g_asn_debug = 'Y') THEN
4440: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4441: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4442: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4443: END IF;

Line 4440: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);

4436: x_secondary_available_qty
4437: );
4438:
4439: IF (g_asn_debug = 'Y') THEN
4440: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4441: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4442: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4443: END IF;
4444: END IF; --}

Line 4441: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);

4437: );
4438:
4439: IF (g_asn_debug = 'Y') THEN
4440: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4441: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4442: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4443: END IF;
4444: END IF; --}
4445:

Line 4442: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);

4438:
4439: IF (g_asn_debug = 'Y') THEN
4440: asn_debug.put_line('x_converted_trx_qty ' || x_converted_trx_qty);
4441: asn_debug.put_line('x_tolerable_qty ' || x_tolerable_qty);
4442: asn_debug.put_line('x_secondary_available_qty ' || x_secondary_available_qty);
4443: END IF;
4444: END IF; --}
4445:
4446: /* Bug# 1337787 - Calculated the x_tolerable_qty in

Line 4465: IF (g_asn_debug = 'Y') THEN

4461: END LOOP;
4462: END IF;
4463: END IF; --} for txn =deliver
4464:
4465: IF (g_asn_debug = 'Y') THEN
4466: asn_debug.put_line('After call to get_available quantity');
4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));

Line 4466: asn_debug.put_line('After call to get_available quantity');

4462: END IF;
4463: END IF; --} for txn =deliver
4464:
4465: IF (g_asn_debug = 'Y') THEN
4466: asn_debug.put_line('After call to get_available quantity');
4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4470: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

Line 4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));

4463: END IF; --} for txn =deliver
4464:
4465: IF (g_asn_debug = 'Y') THEN
4466: asn_debug.put_line('After call to get_available quantity');
4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4470: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4471: END IF;

Line 4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));

4464:
4465: IF (g_asn_debug = 'Y') THEN
4466: asn_debug.put_line('After call to get_available quantity');
4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4470: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4471: END IF;
4472:

Line 4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));

4465: IF (g_asn_debug = 'Y') THEN
4466: asn_debug.put_line('After call to get_available quantity');
4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4470: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4471: END IF;
4472:
4473: -- if qty has already been allocated then reduce available and tolerable

Line 4470: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

4466: asn_debug.put_line('After call to get_available quantity');
4467: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4468: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4469: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4470: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4471: END IF;
4472:
4473: -- if qty has already been allocated then reduce available and tolerable
4474: -- qty by the allocated amount

Line 4488: IF (g_asn_debug = 'Y') THEN

4484: IF x_tolerable_qty < 0 THEN
4485: x_tolerable_qty := 0;
4486: END IF;
4487:
4488: IF (g_asn_debug = 'Y') THEN
4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');
4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));

Line 4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');

4485: x_tolerable_qty := 0;
4486: END IF;
4487:
4488: IF (g_asn_debug = 'Y') THEN
4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');
4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));

Line 4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));

4486: END IF;
4487:
4488: IF (g_asn_debug = 'Y') THEN
4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');
4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));

Line 4491: asn_debug.put_line('After reducing by allocated qty');

4487:
4488: IF (g_asn_debug = 'Y') THEN
4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');
4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4495: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

Line 4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));

4488: IF (g_asn_debug = 'Y') THEN
4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');
4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4495: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4496: END IF;

Line 4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));

4489: asn_debug.put_line('Have some allocated quantity. Will reduce qty');
4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4495: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4496: END IF;
4497: END IF; --}

Line 4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));

4490: asn_debug.put_line('Allocated Qty ' || TO_CHAR(already_allocated_qty));
4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4495: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4496: END IF;
4497: END IF; --}
4498:

Line 4495: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

4491: asn_debug.put_line('After reducing by allocated qty');
4492: asn_debug.put_line('Available Quantity ' || TO_CHAR(x_converted_trx_qty));
4493: asn_debug.put_line('Tolerable Quantity ' || TO_CHAR(x_tolerable_qty));
4494: asn_debug.put_line('Already Shipped Quantity ' || TO_CHAR(NVL(x_shipmentdistributionrec.quantity_shipped, 0)));
4495: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
4496: END IF;
4497: END IF; --}
4498:
4499: -- We can use the first record since the item_id and uom are not going to change

Line 4525: IF( g_asn_debug = 'Y' ) THEN

4521: l_complex_flag);
4522:
4523: IF (l_return_status IS NOT NULL AND
4524: l_return_status = FND_API.g_ret_sts_success) THEN
4525: IF( g_asn_debug = 'Y' ) THEN
4526: asn_debug.put_line('l_return_status ' || l_return_status);
4527: asn_debug.put_line('l_po_header_id ' || temp_cascaded_table(1).po_header_id);
4528: END IF;
4529: ELSE

Line 4526: asn_debug.put_line('l_return_status ' || l_return_status);

4522:
4523: IF (l_return_status IS NOT NULL AND
4524: l_return_status = FND_API.g_ret_sts_success) THEN
4525: IF( g_asn_debug = 'Y' ) THEN
4526: asn_debug.put_line('l_return_status ' || l_return_status);
4527: asn_debug.put_line('l_po_header_id ' || temp_cascaded_table(1).po_header_id);
4528: END IF;
4529: ELSE
4530: IF( g_asn_debug = 'Y') THEN

Line 4527: asn_debug.put_line('l_po_header_id ' || temp_cascaded_table(1).po_header_id);

4523: IF (l_return_status IS NOT NULL AND
4524: l_return_status = FND_API.g_ret_sts_success) THEN
4525: IF( g_asn_debug = 'Y' ) THEN
4526: asn_debug.put_line('l_return_status ' || l_return_status);
4527: asn_debug.put_line('l_po_header_id ' || temp_cascaded_table(1).po_header_id);
4528: END IF;
4529: ELSE
4530: IF( g_asn_debug = 'Y') THEN
4531: asn_debug.put_line('l_return_status ' || l_return_status);

Line 4530: IF( g_asn_debug = 'Y') THEN

4526: asn_debug.put_line('l_return_status ' || l_return_status);
4527: asn_debug.put_line('l_po_header_id ' || temp_cascaded_table(1).po_header_id);
4528: END IF;
4529: ELSE
4530: IF( g_asn_debug = 'Y') THEN
4531: asn_debug.put_line('l_return_status ' || l_return_status);
4532: END IF;
4533: END IF;
4534:

Line 4531: asn_debug.put_line('l_return_status ' || l_return_status);

4527: asn_debug.put_line('l_po_header_id ' || temp_cascaded_table(1).po_header_id);
4528: END IF;
4529: ELSE
4530: IF( g_asn_debug = 'Y') THEN
4531: asn_debug.put_line('l_return_status ' || l_return_status);
4532: END IF;
4533: END IF;
4534:
4535: if ( l_complex_flag = 'Y' ) then --{

Line 4590: IF (g_asn_debug = 'Y') THEN

4586: OR -- no point in going further for this record
4587: po_asn_uom_qty = 0
4588: OR -- as we cannot convert between the ASN -> PO uoms
4589: po_primary_uom_qty = 0 THEN --{ -- PO -> ASN uom, PO -> PRIMARY UOM
4590: IF (g_asn_debug = 'Y') THEN
4591: asn_debug.put_line('Populating an error message in the interface tables');
4592: asn_debug.put_line('Cannot interconvert between diff UOMs');
4593: asn_debug.put_line('This po_line cannot be used as the uoms ');
4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);

Line 4591: asn_debug.put_line('Populating an error message in the interface tables');

4587: po_asn_uom_qty = 0
4588: OR -- as we cannot convert between the ASN -> PO uoms
4589: po_primary_uom_qty = 0 THEN --{ -- PO -> ASN uom, PO -> PRIMARY UOM
4590: IF (g_asn_debug = 'Y') THEN
4591: asn_debug.put_line('Populating an error message in the interface tables');
4592: asn_debug.put_line('Cannot interconvert between diff UOMs');
4593: asn_debug.put_line('This po_line cannot be used as the uoms ');
4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4595: asn_debug.put_line('cannot be converted for item ' || TO_CHAR(temp_cascaded_table(1).item_id));

Line 4592: asn_debug.put_line('Cannot interconvert between diff UOMs');

4588: OR -- as we cannot convert between the ASN -> PO uoms
4589: po_primary_uom_qty = 0 THEN --{ -- PO -> ASN uom, PO -> PRIMARY UOM
4590: IF (g_asn_debug = 'Y') THEN
4591: asn_debug.put_line('Populating an error message in the interface tables');
4592: asn_debug.put_line('Cannot interconvert between diff UOMs');
4593: asn_debug.put_line('This po_line cannot be used as the uoms ');
4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4595: asn_debug.put_line('cannot be converted for item ' || TO_CHAR(temp_cascaded_table(1).item_id));
4596:

Line 4593: asn_debug.put_line('This po_line cannot be used as the uoms ');

4589: po_primary_uom_qty = 0 THEN --{ -- PO -> ASN uom, PO -> PRIMARY UOM
4590: IF (g_asn_debug = 'Y') THEN
4591: asn_debug.put_line('Populating an error message in the interface tables');
4592: asn_debug.put_line('Cannot interconvert between diff UOMs');
4593: asn_debug.put_line('This po_line cannot be used as the uoms ');
4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4595: asn_debug.put_line('cannot be converted for item ' || TO_CHAR(temp_cascaded_table(1).item_id));
4596:
4597: /* Start Bug 3654053 : Need to populate the po_interface_errors

Line 4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);

4590: IF (g_asn_debug = 'Y') THEN
4591: asn_debug.put_line('Populating an error message in the interface tables');
4592: asn_debug.put_line('Cannot interconvert between diff UOMs');
4593: asn_debug.put_line('This po_line cannot be used as the uoms ');
4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4595: asn_debug.put_line('cannot be converted for item ' || TO_CHAR(temp_cascaded_table(1).item_id));
4596:
4597: /* Start Bug 3654053 : Need to populate the po_interface_errors
4598: table if the UOM conversion errors out.

Line 4595: asn_debug.put_line('cannot be converted for item ' || TO_CHAR(temp_cascaded_table(1).item_id));

4591: asn_debug.put_line('Populating an error message in the interface tables');
4592: asn_debug.put_line('Cannot interconvert between diff UOMs');
4593: asn_debug.put_line('This po_line cannot be used as the uoms ');
4594: asn_debug.put_line(temp_cascaded_table(1).unit_of_measure || ' ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4595: asn_debug.put_line('cannot be converted for item ' || TO_CHAR(temp_cascaded_table(1).item_id));
4596:
4597: /* Start Bug 3654053 : Need to populate the po_interface_errors
4598: table if the UOM conversion errors out.
4599: */

Line 4616: IF (g_asn_debug = 'Y') THEN

4612: END IF;
4613: /* End Bug 3654053 */
4614: END IF;
4615: ELSE -- we have converted the qty between uoms succesfully } {
4616: IF (g_asn_debug = 'Y') THEN
4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));
4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));
4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);
4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));

Line 4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));

4613: /* End Bug 3654053 */
4614: END IF;
4615: ELSE -- we have converted the qty between uoms succesfully } {
4616: IF (g_asn_debug = 'Y') THEN
4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));
4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));
4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);
4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
4621: asn_debug.put_line('PO UOM ' || x_shipmentdistributionrec.unit_meas_lookup_code);

Line 4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));

4614: END IF;
4615: ELSE -- we have converted the qty between uoms succesfully } {
4616: IF (g_asn_debug = 'Y') THEN
4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));
4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));
4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);
4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
4621: asn_debug.put_line('PO UOM ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4622: END IF;

Line 4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);

4615: ELSE -- we have converted the qty between uoms succesfully } {
4616: IF (g_asn_debug = 'Y') THEN
4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));
4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));
4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);
4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
4621: asn_debug.put_line('PO UOM ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4622: END IF;
4623:

Line 4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));

4616: IF (g_asn_debug = 'Y') THEN
4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));
4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));
4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);
4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
4621: asn_debug.put_line('PO UOM ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4622: END IF;
4623:
4624: -- If last row set available = tolerable - shipped

Line 4621: asn_debug.put_line('PO UOM ' || x_shipmentdistributionrec.unit_meas_lookup_code);

4617: asn_debug.put_line('Current Item Id ' || TO_CHAR(temp_cascaded_table(1).item_id));
4618: asn_debug.put_line('Current ASN Quantity ' || TO_CHAR(x_remaining_quantity));
4619: asn_debug.put_line('Current ASN UOM ' || temp_cascaded_table(1).unit_of_measure);
4620: asn_debug.put_line('Converted PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
4621: asn_debug.put_line('PO UOM ' || x_shipmentdistributionrec.unit_meas_lookup_code);
4622: END IF;
4623:
4624: -- If last row set available = tolerable - shipped
4625: -- else = available - shipped

Line 4633: IF (g_asn_debug = 'Y') THEN

4629: */
4630: IF rows_fetched = x_record_count THEN --{
4631: x_converted_trx_qty := x_tolerable_qty - NVL(x_shipmentdistributionrec.quantity_shipped, 0);
4632:
4633: IF (g_asn_debug = 'Y') THEN
4634: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_qty));
4635: END IF;
4636: ELSE --} {
4637: x_converted_trx_qty := x_converted_trx_qty - NVL(x_shipmentdistributionrec.quantity_shipped, 0);

Line 4634: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_qty));

4630: IF rows_fetched = x_record_count THEN --{
4631: x_converted_trx_qty := x_tolerable_qty - NVL(x_shipmentdistributionrec.quantity_shipped, 0);
4632:
4633: IF (g_asn_debug = 'Y') THEN
4634: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_qty));
4635: END IF;
4636: ELSE --} {
4637: x_converted_trx_qty := x_converted_trx_qty - NVL(x_shipmentdistributionrec.quantity_shipped, 0);
4638:

Line 4639: IF (g_asn_debug = 'Y') THEN

4635: END IF;
4636: ELSE --} {
4637: x_converted_trx_qty := x_converted_trx_qty - NVL(x_shipmentdistributionrec.quantity_shipped, 0);
4638:
4639: IF (g_asn_debug = 'Y') THEN
4640: asn_debug.put_line('Not Last Row : ' || TO_CHAR(x_converted_trx_qty));
4641: END IF;
4642: END IF; --}
4643:

Line 4640: asn_debug.put_line('Not Last Row : ' || TO_CHAR(x_converted_trx_qty));

4636: ELSE --} {
4637: x_converted_trx_qty := x_converted_trx_qty - NVL(x_shipmentdistributionrec.quantity_shipped, 0);
4638:
4639: IF (g_asn_debug = 'Y') THEN
4640: asn_debug.put_line('Not Last Row : ' || TO_CHAR(x_converted_trx_qty));
4641: END IF;
4642: END IF; --}
4643:
4644: IF x_converted_trx_qty > 0 THEN --{

Line 4646: IF (g_asn_debug = 'Y') THEN

4642: END IF; --}
4643:
4644: IF x_converted_trx_qty > 0 THEN --{
4645: IF (x_converted_trx_qty < x_remaining_qty_po_uom) THEN -- compare like uoms {
4646: IF (g_asn_debug = 'Y') THEN
4647: asn_debug.put_line('We are in > Qty branch');
4648: END IF;
4649:
4650: x_remaining_qty_po_uom := x_remaining_qty_po_uom - x_converted_trx_qty;

Line 4647: asn_debug.put_line('We are in > Qty branch');

4643:
4644: IF x_converted_trx_qty > 0 THEN --{
4645: IF (x_converted_trx_qty < x_remaining_qty_po_uom) THEN -- compare like uoms {
4646: IF (g_asn_debug = 'Y') THEN
4647: asn_debug.put_line('We are in > Qty branch');
4648: END IF;
4649:
4650: x_remaining_qty_po_uom := x_remaining_qty_po_uom - x_converted_trx_qty;
4651: -- change asn uom qty so both qtys are in sync

Line 4677: IF (g_asn_debug = 'Y') THEN

4673: temp_cascaded_table(1).item_id );
4674: end if; -- 5203841 }
4675: insert_into_table := TRUE;
4676: ELSE --} {
4677: IF (g_asn_debug = 'Y') THEN
4678: asn_debug.put_line('We are in <= Qty branch ');
4679: END IF;
4680:
4681: x_converted_trx_qty := x_remaining_qty_po_uom;

Line 4678: asn_debug.put_line('We are in <= Qty branch ');

4674: end if; -- 5203841 }
4675: insert_into_table := TRUE;
4676: ELSE --} {
4677: IF (g_asn_debug = 'Y') THEN
4678: asn_debug.put_line('We are in <= Qty branch ');
4679: END IF;
4680:
4681: x_converted_trx_qty := x_remaining_qty_po_uom;
4682: insert_into_table := TRUE;

Line 4689: IF (g_asn_debug = 'Y') THEN

4685: END IF; --}
4686: ELSE -- no qty for this record but if last row we need it } {
4687: IF rows_fetched = x_record_count THEN --{ last row needs to be inserted anyway
4688: -- so that the row can be used based on qty tolerance checks
4689: IF (g_asn_debug = 'Y') THEN
4690: asn_debug.put_line('Quantity is less then 0 but last record');
4691: END IF;
4692:
4693: insert_into_table := TRUE;

Line 4690: asn_debug.put_line('Quantity is less then 0 but last record');

4686: ELSE -- no qty for this record but if last row we need it } {
4687: IF rows_fetched = x_record_count THEN --{ last row needs to be inserted anyway
4688: -- so that the row can be used based on qty tolerance checks
4689: IF (g_asn_debug = 'Y') THEN
4690: asn_debug.put_line('Quantity is less then 0 but last record');
4691: END IF;
4692:
4693: insert_into_table := TRUE;
4694: x_converted_trx_qty := 0;

Line 4696: IF (g_asn_debug = 'Y') THEN

4692:
4693: insert_into_table := TRUE;
4694: x_converted_trx_qty := 0;
4695: ELSE --} {
4696: IF (g_asn_debug = 'Y') THEN
4697: asn_debug.put_line('<= 0 Quantity but more records in cursor');
4698: END IF;
4699:
4700: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration

Line 4697: asn_debug.put_line('<= 0 Quantity but more records in cursor');

4693: insert_into_table := TRUE;
4694: x_converted_trx_qty := 0;
4695: ELSE --} {
4696: IF (g_asn_debug = 'Y') THEN
4697: asn_debug.put_line('<= 0 Quantity but more records in cursor');
4698: END IF;
4699:
4700: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration
4701:

Line 4702: IF (g_asn_debug = 'Y') THEN

4698: END IF;
4699:
4700: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration
4701:
4702: IF (g_asn_debug = 'Y') THEN
4703: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');
4704: END IF;
4705:
4706: insert_into_table := FALSE;

Line 4703: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');

4699:
4700: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration
4701:
4702: IF (g_asn_debug = 'Y') THEN
4703: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');
4704: END IF;
4705:
4706: insert_into_table := FALSE;
4707: END IF; --}

Line 4713: IF (g_asn_debug = 'Y') THEN

4709: END IF; --} remaining_qty_po_uom <> 0
4710:
4711: IF insert_into_table THEN --{
4712: IF (x_first_trans) THEN --{
4713: IF (g_asn_debug = 'Y') THEN
4714: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
4715: END IF;
4716:
4717: x_first_trans := FALSE;

Line 4714: asn_debug.put_line('First Time ' || TO_CHAR(current_n));

4710:
4711: IF insert_into_table THEN --{
4712: IF (x_first_trans) THEN --{
4713: IF (g_asn_debug = 'Y') THEN
4714: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
4715: END IF;
4716:
4717: x_first_trans := FALSE;
4718:

Line 4720: IF (g_asn_debug = 'Y') THEN

4716:
4717: x_first_trans := FALSE;
4718:
4719: IF NVL(temp_cascaded_table(current_n).vendor_cum_shipped_qty, 0) <> 0 THEN --{
4720: IF (g_asn_debug = 'Y') THEN
4721: asn_debug.put_line('The cum qty from vendor is ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));
4722: END IF;
4723:
4724: /* The vendor sends us cum_qty which also includes the current shipment ???.

Line 4721: asn_debug.put_line('The cum qty from vendor is ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));

4717: x_first_trans := FALSE;
4718:
4719: IF NVL(temp_cascaded_table(current_n).vendor_cum_shipped_qty, 0) <> 0 THEN --{
4720: IF (g_asn_debug = 'Y') THEN
4721: asn_debug.put_line('The cum qty from vendor is ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));
4722: END IF;
4723:
4724: /* The vendor sends us cum_qty which also includes the current shipment ???.
4725: We need to allocate the correct cum_qty to each row as the cascade happens

Line 4757: IF (g_asn_debug = 'Y') THEN

4753: temp_cascaded_table(current_n).item_id
4754: ));
4755: end if; -- 5203841 }
4756:
4757: IF (g_asn_debug = 'Y') THEN
4758: asn_debug.put_line('Cum qty - current shipment ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));
4759: END IF;
4760: END IF; --}
4761: ELSE --} { ! x_first_trans

Line 4758: asn_debug.put_line('Cum qty - current shipment ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));

4754: ));
4755: end if; -- 5203841 }
4756:
4757: IF (g_asn_debug = 'Y') THEN
4758: asn_debug.put_line('Cum qty - current shipment ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));
4759: END IF;
4760: END IF; --}
4761: ELSE --} { ! x_first_trans
4762: IF (g_asn_debug = 'Y') THEN

Line 4762: IF (g_asn_debug = 'Y') THEN

4758: asn_debug.put_line('Cum qty - current shipment ' || TO_CHAR(temp_cascaded_table(current_n).vendor_cum_shipped_qty));
4759: END IF;
4760: END IF; --}
4761: ELSE --} { ! x_first_trans
4762: IF (g_asn_debug = 'Y') THEN
4763: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
4764: END IF;
4765:
4766: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);

Line 4763: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));

4759: END IF;
4760: END IF; --}
4761: ELSE --} { ! x_first_trans
4762: IF (g_asn_debug = 'Y') THEN
4763: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
4764: END IF;
4765:
4766: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);
4767: END IF; --} matches x_first_transfer

Line 4843: IF (g_asn_debug = 'Y') THEN

4839:
4840: end if; -- 5203841 }
4841: -- Bug 4898703 - END }
4842:
4843: IF (g_asn_debug = 'Y') THEN
4844: asn_debug.put_line('primary_qty ' || temp_cascaded_table(current_n).primary_quantity);
4845: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
4846: END IF;
4847:

Line 4844: asn_debug.put_line('primary_qty ' || temp_cascaded_table(current_n).primary_quantity);

4840: end if; -- 5203841 }
4841: -- Bug 4898703 - END }
4842:
4843: IF (g_asn_debug = 'Y') THEN
4844: asn_debug.put_line('primary_qty ' || temp_cascaded_table(current_n).primary_quantity);
4845: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
4846: END IF;
4847:
4848: -- Assuming vendor_cum_shipped_qty is in PRIMARY UOM

Line 4845: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);

4841: -- Bug 4898703 - END }
4842:
4843: IF (g_asn_debug = 'Y') THEN
4844: asn_debug.put_line('primary_qty ' || temp_cascaded_table(current_n).primary_quantity);
4845: asn_debug.put_line('quantity ' || temp_cascaded_table(current_n).quantity);
4846: END IF;
4847:
4848: -- Assuming vendor_cum_shipped_qty is in PRIMARY UOM
4849: IF NVL(temp_cascaded_table(current_n).vendor_cum_shipped_qty, 0) <> 0 THEN --{

Line 4859: IF (g_asn_debug = 'Y') THEN

4855: temp_cascaded_table(current_n).currency_code := x_shipmentdistributionrec.currency_code;
4856: temp_cascaded_table(current_n).po_unit_price := x_shipmentdistributionrec.unit_price;
4857: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 4);
4858:
4859: IF (g_asn_debug = 'Y') THEN
4860: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
4861: END IF;
4862:
4863: temp_cascaded_table(current_n).category_id := x_shipmentdistributionrec.category_id;

Line 4860: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

4856: temp_cascaded_table(current_n).po_unit_price := x_shipmentdistributionrec.unit_price;
4857: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 4);
4858:
4859: IF (g_asn_debug = 'Y') THEN
4860: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
4861: END IF;
4862:
4863: temp_cascaded_table(current_n).category_id := x_shipmentdistributionrec.category_id;
4864: temp_cascaded_table(current_n).item_description := x_shipmentdistributionrec.item_description;

Line 4876: IF (g_asn_debug = 'Y') THEN

4872: temp_cascaded_table(current_n).po_line_location_id := x_shipmentdistributionrec.line_location_id;
4873: temp_cascaded_table(current_n).shipment_line_id := x_shipmentdistributionrec.shipment_line_id;
4874:
4875: IF x_shipmentdistributionrec.enforce_ship_to_location_code = 'WARNING' THEN --{
4876: IF (g_asn_debug = 'Y') THEN
4877: asn_debug.put_line('Message to warn about different shiptolocations');
4878: END IF;
4879: END IF; --}
4880:

Line 4877: asn_debug.put_line('Message to warn about different shiptolocations');

4873: temp_cascaded_table(current_n).shipment_line_id := x_shipmentdistributionrec.shipment_line_id;
4874:
4875: IF x_shipmentdistributionrec.enforce_ship_to_location_code = 'WARNING' THEN --{
4876: IF (g_asn_debug = 'Y') THEN
4877: asn_debug.put_line('Message to warn about different shiptolocations');
4878: END IF;
4879: END IF; --}
4880:
4881: /* ksareddy - 2329928 Ported changes by bao in branch to cache set_of_books_id */

Line 4903: IF (g_asn_debug = 'Y') THEN

4899: IF (x_ShipmentDistributionRec.match_option = 'R') THEN
4900: x_allow_rate_override := NVL(fnd_profile.value('ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE'), 'N');
4901: END IF;
4902:
4903: IF (g_asn_debug = 'Y') THEN
4904: asn_debug.put_line('Match Option:' || x_ShipmentDistributionRec.match_option ||
4905: 'Profile value ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE:' ||
4906: x_allow_rate_override);
4907: END IF;

Line 4904: asn_debug.put_line('Match Option:' || x_ShipmentDistributionRec.match_option ||

4900: x_allow_rate_override := NVL(fnd_profile.value('ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE'), 'N');
4901: END IF;
4902:
4903: IF (g_asn_debug = 'Y') THEN
4904: asn_debug.put_line('Match Option:' || x_ShipmentDistributionRec.match_option ||
4905: 'Profile value ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE:' ||
4906: x_allow_rate_override);
4907: END IF;
4908:

Line 4929: IF (g_asn_debug = 'Y') THEN

4925: WHEN NO_DATA_FOUND THEN
4926: l_dist_count := 2;
4927: END;
4928:
4929: IF (g_asn_debug = 'Y') THEN
4930: asn_debug.put_line('No of Distributions:' || l_dist_count ||
4931: ':: Rate and Rate_date in po distributions' || x_rate ||
4932: '::' || l_rate_date);
4933: END IF;

Line 4930: asn_debug.put_line('No of Distributions:' || l_dist_count ||

4926: l_dist_count := 2;
4927: END;
4928:
4929: IF (g_asn_debug = 'Y') THEN
4930: asn_debug.put_line('No of Distributions:' || l_dist_count ||
4931: ':: Rate and Rate_date in po distributions' || x_rate ||
4932: '::' || l_rate_date);
4933: END IF;
4934:

Line 5003: IF (g_asn_debug = 'Y') THEN

4999: END IF; --}
5000:
5001: temp_cascaded_table(current_n).currency_conversion_type := x_ShipmentDistributionRec.rate_type;
5002:
5003: IF (g_asn_debug = 'Y') THEN
5004: asn_debug.put_line('Rate, Rate type and Rate_date ::' ||
5005: temp_cascaded_table(current_n).currency_conversion_rate ||
5006: '::' || temp_cascaded_table(current_n).currency_conversion_type ||
5007: '::' || temp_cascaded_table(current_n).currency_conversion_date);

Line 5004: asn_debug.put_line('Rate, Rate type and Rate_date ::' ||

5000:
5001: temp_cascaded_table(current_n).currency_conversion_type := x_ShipmentDistributionRec.rate_type;
5002:
5003: IF (g_asn_debug = 'Y') THEN
5004: asn_debug.put_line('Rate, Rate type and Rate_date ::' ||
5005: temp_cascaded_table(current_n).currency_conversion_rate ||
5006: '::' || temp_cascaded_table(current_n).currency_conversion_type ||
5007: '::' || temp_cascaded_table(current_n).currency_conversion_date);
5008: END IF;

Line 5050: IF (g_asn_debug = 'Y') THEN

5046: EXCEPTION
5047: WHEN NO_DATA_FOUND THEN
5048: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5049:
5050: IF (g_asn_debug = 'Y') THEN
5051: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
5052: asn_debug.put_line(' So it is cleared off');
5053: END IF;
5054: WHEN OTHERS THEN

Line 5051: asn_debug.put_line('The deliver to person entered in PO is currently inactive');

5047: WHEN NO_DATA_FOUND THEN
5048: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5049:
5050: IF (g_asn_debug = 'Y') THEN
5051: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
5052: asn_debug.put_line(' So it is cleared off');
5053: END IF;
5054: WHEN OTHERS THEN
5055: temp_cascaded_table(current_n).deliver_to_person_id := NULL;

Line 5052: asn_debug.put_line(' So it is cleared off');

5048: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5049:
5050: IF (g_asn_debug = 'Y') THEN
5051: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
5052: asn_debug.put_line(' So it is cleared off');
5053: END IF;
5054: WHEN OTHERS THEN
5055: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5056:

Line 5057: IF (g_asn_debug = 'Y') THEN

5053: END IF;
5054: WHEN OTHERS THEN
5055: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5056:
5057: IF (g_asn_debug = 'Y') THEN
5058: asn_debug.put_line('Some exception has occured');
5059: asn_debug.put_line('This exception is due to the PO deliver to person');
5060: asn_debug.put_line('The deliver to person is optional');
5061: asn_debug.put_line('So cleared off the deliver to person');

Line 5058: asn_debug.put_line('Some exception has occured');

5054: WHEN OTHERS THEN
5055: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5056:
5057: IF (g_asn_debug = 'Y') THEN
5058: asn_debug.put_line('Some exception has occured');
5059: asn_debug.put_line('This exception is due to the PO deliver to person');
5060: asn_debug.put_line('The deliver to person is optional');
5061: asn_debug.put_line('So cleared off the deliver to person');
5062: END IF;

Line 5059: asn_debug.put_line('This exception is due to the PO deliver to person');

5055: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
5056:
5057: IF (g_asn_debug = 'Y') THEN
5058: asn_debug.put_line('Some exception has occured');
5059: asn_debug.put_line('This exception is due to the PO deliver to person');
5060: asn_debug.put_line('The deliver to person is optional');
5061: asn_debug.put_line('So cleared off the deliver to person');
5062: END IF;
5063: END;

Line 5060: asn_debug.put_line('The deliver to person is optional');

5056:
5057: IF (g_asn_debug = 'Y') THEN
5058: asn_debug.put_line('Some exception has occured');
5059: asn_debug.put_line('This exception is due to the PO deliver to person');
5060: asn_debug.put_line('The deliver to person is optional');
5061: asn_debug.put_line('So cleared off the deliver to person');
5062: END IF;
5063: END;
5064: END IF; --}

Line 5061: asn_debug.put_line('So cleared off the deliver to person');

5057: IF (g_asn_debug = 'Y') THEN
5058: asn_debug.put_line('Some exception has occured');
5059: asn_debug.put_line('This exception is due to the PO deliver to person');
5060: asn_debug.put_line('The deliver to person is optional');
5061: asn_debug.put_line('So cleared off the deliver to person');
5062: END IF;
5063: END;
5064: END IF; --}
5065: END IF; --}

Line 5076: IF (g_asn_debug = 'Y') THEN

5072: ** so that incases where subinventory and
5073: ** locator_id are not populated into RTI, locator_id could be
5074: ** derived at this point as the subinventory is known now.
5075: */
5076: IF (g_asn_debug = 'Y') THEN
5077: asn_debug.put_line('Derived Subinventory from PO Distribution:' || temp_cascaded_table(current_n).subinventory);
5078: END IF;
5079:
5080: derive_to_locator_id(temp_cascaded_table, current_n);

Line 5077: asn_debug.put_line('Derived Subinventory from PO Distribution:' || temp_cascaded_table(current_n).subinventory);

5073: ** locator_id are not populated into RTI, locator_id could be
5074: ** derived at this point as the subinventory is known now.
5075: */
5076: IF (g_asn_debug = 'Y') THEN
5077: asn_debug.put_line('Derived Subinventory from PO Distribution:' || temp_cascaded_table(current_n).subinventory);
5078: END IF;
5079:
5080: derive_to_locator_id(temp_cascaded_table, current_n);
5081:

Line 5082: IF (g_asn_debug = 'Y') THEN

5078: END IF;
5079:
5080: derive_to_locator_id(temp_cascaded_table, current_n);
5081:
5082: IF (g_asn_debug = 'Y') THEN
5083: asn_debug.put_line('Derived Locator_ID:' || temp_cascaded_table(current_n).locator_id);
5084: END IF;
5085:
5086: /* Bug3993867 - END */

Line 5083: asn_debug.put_line('Derived Locator_ID:' || temp_cascaded_table(current_n).locator_id);

5079:
5080: derive_to_locator_id(temp_cascaded_table, current_n);
5081:
5082: IF (g_asn_debug = 'Y') THEN
5083: asn_debug.put_line('Derived Locator_ID:' || temp_cascaded_table(current_n).locator_id);
5084: END IF;
5085:
5086: /* Bug3993867 - END */
5087:

Line 5105: IF (g_asn_debug = 'Y') THEN

5101: END IF; --} matches txn != deliver
5102:
5103: current_n := current_n + 1;
5104:
5105: IF (g_asn_debug = 'Y') THEN
5106: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
5107: END IF;
5108: END IF; --} matches if insert into table
5109: END IF; --} matches shipmentdistributionrec.receipt_days_exception_code = none

Line 5106: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));

5102:
5103: current_n := current_n + 1;
5104:
5105: IF (g_asn_debug = 'Y') THEN
5106: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
5107: END IF;
5108: END IF; --} matches if insert into table
5109: END IF; --} matches shipmentdistributionrec.receipt_days_exception_code = none
5110: END LOOP; --}

Line 5113: IF (g_asn_debug = 'Y') THEN

5109: END IF; --} matches shipmentdistributionrec.receipt_days_exception_code = none
5110: END LOOP; --}
5111: ELSE --} {
5112: -- error_status and error_message are set after validate_quantity_shipped
5113: IF (g_asn_debug = 'Y') THEN
5114: asn_debug.put_line('No shipment_header_id/po_header_id/item_id ');
5115: END IF;
5116:
5117: IF (g_asn_debug = 'Y') THEN

Line 5114: asn_debug.put_line('No shipment_header_id/po_header_id/item_id ');

5110: END LOOP; --}
5111: ELSE --} {
5112: -- error_status and error_message are set after validate_quantity_shipped
5113: IF (g_asn_debug = 'Y') THEN
5114: asn_debug.put_line('No shipment_header_id/po_header_id/item_id ');
5115: END IF;
5116:
5117: IF (g_asn_debug = 'Y') THEN
5118: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

Line 5117: IF (g_asn_debug = 'Y') THEN

5113: IF (g_asn_debug = 'Y') THEN
5114: asn_debug.put_line('No shipment_header_id/po_header_id/item_id ');
5115: END IF;
5116:
5117: IF (g_asn_debug = 'Y') THEN
5118: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
5119: END IF;
5120:
5121: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{

Line 5118: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

5114: asn_debug.put_line('No shipment_header_id/po_header_id/item_id ');
5115: END IF;
5116:
5117: IF (g_asn_debug = 'Y') THEN
5118: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
5119: END IF;
5120:
5121: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{
5122: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 5178: IF (g_asn_debug = 'Y') THEN

5174: IF count_asn_distributions%ISOPEN THEN
5175: CLOSE count_asn_distributions;
5176: END IF;
5177:
5178: IF (g_asn_debug = 'Y') THEN
5179: asn_debug.put_line('Exit explode_line_quantity');
5180: END IF;
5181: EXCEPTION
5182: WHEN OTHERS THEN

Line 5179: asn_debug.put_line('Exit explode_line_quantity');

5175: CLOSE count_asn_distributions;
5176: END IF;
5177:
5178: IF (g_asn_debug = 'Y') THEN
5179: asn_debug.put_line('Exit explode_line_quantity');
5180: END IF;
5181: EXCEPTION
5182: WHEN OTHERS THEN
5183: IF (g_asn_debug = 'Y') THEN

Line 5183: IF (g_asn_debug = 'Y') THEN

5179: asn_debug.put_line('Exit explode_line_quantity');
5180: END IF;
5181: EXCEPTION
5182: WHEN OTHERS THEN
5183: IF (g_asn_debug = 'Y') THEN
5184: asn_debug.put_line('Exception in derive_vendor_rcv_line_qty');
5185: END IF;
5186:
5187: IF shipments%ISOPEN THEN

Line 5184: asn_debug.put_line('Exception in derive_vendor_rcv_line_qty');

5180: END IF;
5181: EXCEPTION
5182: WHEN OTHERS THEN
5183: IF (g_asn_debug = 'Y') THEN
5184: asn_debug.put_line('Exception in derive_vendor_rcv_line_qty');
5185: END IF;
5186:
5187: IF shipments%ISOPEN THEN
5188: CLOSE shipments;

Line 5223: IF (g_asn_debug = 'Y') THEN

5219: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_unexp_error;
5220: rcv_error_pkg.set_sql_error_message('derive_vendor_rcv_line_qty', x_progress);
5221: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
5222:
5223: IF (g_asn_debug = 'Y') THEN
5224: asn_debug.put_line(TO_CHAR(n));
5225: asn_debug.put_line(SQLERRM);
5226: asn_debug.put_line('error ' || x_progress);
5227: END IF;

Line 5224: asn_debug.put_line(TO_CHAR(n));

5220: rcv_error_pkg.set_sql_error_message('derive_vendor_rcv_line_qty', x_progress);
5221: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
5222:
5223: IF (g_asn_debug = 'Y') THEN
5224: asn_debug.put_line(TO_CHAR(n));
5225: asn_debug.put_line(SQLERRM);
5226: asn_debug.put_line('error ' || x_progress);
5227: END IF;
5228: END derive_vendor_rcv_line_qty;

Line 5225: asn_debug.put_line(SQLERRM);

5221: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
5222:
5223: IF (g_asn_debug = 'Y') THEN
5224: asn_debug.put_line(TO_CHAR(n));
5225: asn_debug.put_line(SQLERRM);
5226: asn_debug.put_line('error ' || x_progress);
5227: END IF;
5228: END derive_vendor_rcv_line_qty;
5229:

Line 5226: asn_debug.put_line('error ' || x_progress);

5222:
5223: IF (g_asn_debug = 'Y') THEN
5224: asn_debug.put_line(TO_CHAR(n));
5225: asn_debug.put_line(SQLERRM);
5226: asn_debug.put_line('error ' || x_progress);
5227: END IF;
5228: END derive_vendor_rcv_line_qty;
5229:
5230: PROCEDURE derive_vendor_rcv_line_amt(

Line 5449: IF (g_asn_debug = 'Y') THEN

5445: BEGIN
5446: --check line quanity > 0
5447: x_progress := '097';
5448:
5449: IF (g_asn_debug = 'Y') THEN
5450: asn_debug.put_line('derive_vendor_rcv_line_amt ' || x_progress);
5451: END IF;
5452:
5453: profile_user_id := fnd_profile.VALUE('USER_ID');

Line 5450: asn_debug.put_line('derive_vendor_rcv_line_amt ' || x_progress);

5446: --check line quanity > 0
5447: x_progress := '097';
5448:
5449: IF (g_asn_debug = 'Y') THEN
5450: asn_debug.put_line('derive_vendor_rcv_line_amt ' || x_progress);
5451: END IF;
5452:
5453: profile_user_id := fnd_profile.VALUE('USER_ID');
5454: profile_resp_id := fnd_profile.VALUE('RESPONSIBILITY_ID');

Line 5464: IF (g_asn_debug = 'Y') THEN

5460: x_include_closed_po,
5461: defined
5462: );
5463:
5464: IF (g_asn_debug = 'Y') THEN
5465: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);
5466: END IF;
5467:
5468: /* We do not support ASN/ASBN for Serive based PO shipments. So

Line 5465: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);

5461: defined
5462: );
5463:
5464: IF (g_asn_debug = 'Y') THEN
5465: asn_debug.put_line('Include closed PO profile value ' || x_include_closed_po);
5466: END IF;
5467:
5468: /* We do not support ASN/ASBN for Serive based PO shipments. So
5469: * error out in that case.

Line 5483: IF (g_asn_debug = 'Y') THEN

5479:
5480: /* Support for RATE based from OTL */
5481: IF ( x_cascaded_table(n).value_basis = 'RATE'
5482: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR') THEN --{
5483: IF (g_asn_debug = 'Y') THEN
5484: asn_debug.put_line('Rate/Temp Labor');
5485: END IF;
5486:
5487: /* Bug 3648861.

Line 5484: asn_debug.put_line('Rate/Temp Labor');

5480: /* Support for RATE based from OTL */
5481: IF ( x_cascaded_table(n).value_basis = 'RATE'
5482: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR') THEN --{
5483: IF (g_asn_debug = 'Y') THEN
5484: asn_debug.put_line('Rate/Temp Labor');
5485: END IF;
5486:
5487: /* Bug 3648861.
5488: * The where condition has

Line 5509: IF (g_asn_debug = 'Y') THEN

5505: AND pol.po_line_id = x_cascaded_table(n).po_line_id
5506: AND pol.order_type_lookup_code = 'RATE'
5507: AND pol.purchase_basis = 'TEMP LABOR';
5508:
5509: IF (g_asn_debug = 'Y') THEN
5510: asn_debug.put_line('count ' || l_time_count);
5511: END IF;
5512:
5513: IF (l_time_count = 0) THEN --{

Line 5510: asn_debug.put_line('count ' || l_time_count);

5506: AND pol.order_type_lookup_code = 'RATE'
5507: AND pol.purchase_basis = 'TEMP LABOR';
5508:
5509: IF (g_asn_debug = 'Y') THEN
5510: asn_debug.put_line('count ' || l_time_count);
5511: END IF;
5512:
5513: IF (l_time_count = 0) THEN --{
5514: IF (g_asn_debug = 'Y') THEN

Line 5514: IF (g_asn_debug = 'Y') THEN

5510: asn_debug.put_line('count ' || l_time_count);
5511: END IF;
5512:
5513: IF (l_time_count = 0) THEN --{
5514: IF (g_asn_debug = 'Y') THEN
5515: asn_debug.put_line('We do not support RATE/TEMP LABOR through ROI unless it comes through OTL');
5516: END IF;
5517:
5518: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 5515: asn_debug.put_line('We do not support RATE/TEMP LABOR through ROI unless it comes through OTL');

5511: END IF;
5512:
5513: IF (l_time_count = 0) THEN --{
5514: IF (g_asn_debug = 'Y') THEN
5515: asn_debug.put_line('We do not support RATE/TEMP LABOR through ROI unless it comes through OTL');
5516: END IF;
5517:
5518: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
5519: rcv_error_pkg.set_error_message('RCV_NO_RATE_UNLESS_OTL', x_cascaded_table(n).error_message);

Line 5534: IF (g_asn_debug = 'Y') THEN

5530:
5531:
5532: /* IF x_cascaded_table(n).error_status IN('S', 'W')
5533: AND x_cascaded_table(n).amount <= 0 THEN --{
5534: IF (g_asn_debug = 'Y') THEN
5535: asn_debug.put_line('Amount is <= zero. Cascade will fail');
5536: END IF;
5537:
5538: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 5535: asn_debug.put_line('Amount is <= zero. Cascade will fail');

5531:
5532: /* IF x_cascaded_table(n).error_status IN('S', 'W')
5533: AND x_cascaded_table(n).amount <= 0 THEN --{
5534: IF (g_asn_debug = 'Y') THEN
5535: asn_debug.put_line('Amount is <= zero. Cascade will fail');
5536: END IF;
5537:
5538: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
5539: rcv_error_pkg.set_error_message('RCV_ITEM_NO_SHIP_QTY', x_cascaded_table(n).error_message);

Line 5556: IF (g_asn_debug = 'Y') THEN

5552: such a way that the ROI validation does'nt error out when
5553: po_line_id is populated for one time items. */
5554: x_progress := '098';
5555:
5556: IF (g_asn_debug = 'Y') THEN
5557: asn_debug.put_line('X_progress ' || x_progress);
5558: END IF;
5559:
5560: IF ( x_cascaded_table(n).po_line_id IS NOT NULL

Line 5557: asn_debug.put_line('X_progress ' || x_progress);

5553: po_line_id is populated for one time items. */
5554: x_progress := '098';
5555:
5556: IF (g_asn_debug = 'Y') THEN
5557: asn_debug.put_line('X_progress ' || x_progress);
5558: END IF;
5559:
5560: IF ( x_cascaded_table(n).po_line_id IS NOT NULL
5561: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{

Line 5564: IF (g_asn_debug = 'Y') THEN

5560: IF ( x_cascaded_table(n).po_line_id IS NOT NULL
5561: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
5562:
5563: -- Copy record from main table to temp table
5564: IF (g_asn_debug = 'Y') THEN
5565: asn_debug.put_line('Copy record from main table to temp table');
5566: END IF;
5567:
5568: current_n := 1;

Line 5565: asn_debug.put_line('Copy record from main table to temp table');

5561: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
5562:
5563: -- Copy record from main table to temp table
5564: IF (g_asn_debug = 'Y') THEN
5565: asn_debug.put_line('Copy record from main table to temp table');
5566: END IF;
5567:
5568: current_n := 1;
5569: temp_cascaded_table(current_n) := x_cascaded_table(n);

Line 5572: IF (g_asn_debug = 'Y') THEN

5568: current_n := 1;
5569: temp_cascaded_table(current_n) := x_cascaded_table(n);
5570:
5571: -- Get all rows which meet this condition
5572: IF (g_asn_debug = 'Y') THEN
5573: asn_debug.put_line('Get all rows which meet this condition');
5574: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
5575: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
5576: END IF;

Line 5573: asn_debug.put_line('Get all rows which meet this condition');

5569: temp_cascaded_table(current_n) := x_cascaded_table(n);
5570:
5571: -- Get all rows which meet this condition
5572: IF (g_asn_debug = 'Y') THEN
5573: asn_debug.put_line('Get all rows which meet this condition');
5574: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
5575: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
5576: END IF;
5577:

Line 5574: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);

5570:
5571: -- Get all rows which meet this condition
5572: IF (g_asn_debug = 'Y') THEN
5573: asn_debug.put_line('Get all rows which meet this condition');
5574: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
5575: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
5576: END IF;
5577:
5578: -- bug 1362237 Deriving the document_line_num

Line 5575: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);

5571: -- Get all rows which meet this condition
5572: IF (g_asn_debug = 'Y') THEN
5573: asn_debug.put_line('Get all rows which meet this condition');
5574: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
5575: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
5576: END IF;
5577:
5578: -- bug 1362237 Deriving the document_line_num
5579: -- and document_shipment_line_num when line_id and/or line_location_id

Line 5591: IF (g_asn_debug = 'Y') THEN

5587: FROM po_lines
5588: WHERE po_line_id = temp_cascaded_table(current_n).po_line_id;
5589: EXCEPTION
5590: WHEN OTHERS THEN
5591: IF (g_asn_debug = 'Y') THEN
5592: asn_debug.put_line('wrong po_line_id entered in rcv_transactions_interface');
5593: END IF;
5594: END;
5595: END IF; --}

Line 5592: asn_debug.put_line('wrong po_line_id entered in rcv_transactions_interface');

5588: WHERE po_line_id = temp_cascaded_table(current_n).po_line_id;
5589: EXCEPTION
5590: WHEN OTHERS THEN
5591: IF (g_asn_debug = 'Y') THEN
5592: asn_debug.put_line('wrong po_line_id entered in rcv_transactions_interface');
5593: END IF;
5594: END;
5595: END IF; --}
5596:

Line 5606: IF (g_asn_debug = 'Y') THEN

5602: FROM po_line_locations
5603: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
5604: EXCEPTION
5605: WHEN OTHERS THEN
5606: IF (g_asn_debug = 'Y') THEN
5607: asn_debug.put_line('wrong po_line_location_id entered in rcv_transactions_interface');
5608: END IF;
5609: END;
5610: END IF; --}

Line 5607: asn_debug.put_line('wrong po_line_location_id entered in rcv_transactions_interface');

5603: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
5604: EXCEPTION
5605: WHEN OTHERS THEN
5606: IF (g_asn_debug = 'Y') THEN
5607: asn_debug.put_line('wrong po_line_location_id entered in rcv_transactions_interface');
5608: END IF;
5609: END;
5610: END IF; --}
5611:

Line 5621: IF (g_asn_debug = 'Y') THEN

5617: FROM po_distributions
5618: WHERE po_distribution_id = temp_cascaded_table(current_n).po_distribution_id;
5619: EXCEPTION
5620: WHEN OTHERS THEN
5621: IF (g_asn_debug = 'Y') THEN
5622: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
5623: END IF;
5624: END;
5625: END IF; --}

Line 5622: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');

5618: WHERE po_distribution_id = temp_cascaded_table(current_n).po_distribution_id;
5619: EXCEPTION
5620: WHEN OTHERS THEN
5621: IF (g_asn_debug = 'Y') THEN
5622: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
5623: END IF;
5624: END;
5625: END IF; --}
5626:

Line 5643: IF (g_asn_debug = 'Y') THEN

5639: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
5640: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
5641:
5642: -- if txn != deliver
5643: IF (g_asn_debug = 'Y') THEN
5644: asn_debug.put_line('Open Shipment records');
5645: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5646: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5647: asn_debug.put_line('Proceed to open cursor');

Line 5644: asn_debug.put_line('Open Shipment records');

5640: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
5641:
5642: -- if txn != deliver
5643: IF (g_asn_debug = 'Y') THEN
5644: asn_debug.put_line('Open Shipment records');
5645: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5646: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5647: asn_debug.put_line('Proceed to open cursor');
5648: END IF;

Line 5645: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));

5641:
5642: -- if txn != deliver
5643: IF (g_asn_debug = 'Y') THEN
5644: asn_debug.put_line('Open Shipment records');
5645: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5646: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5647: asn_debug.put_line('Proceed to open cursor');
5648: END IF;
5649:

Line 5646: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));

5642: -- if txn != deliver
5643: IF (g_asn_debug = 'Y') THEN
5644: asn_debug.put_line('Open Shipment records');
5645: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5646: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5647: asn_debug.put_line('Proceed to open cursor');
5648: END IF;
5649:
5650: /* Bug 2208664 : Nullified the ship_to_location_id when calling

Line 5647: asn_debug.put_line('Proceed to open cursor');

5643: IF (g_asn_debug = 'Y') THEN
5644: asn_debug.put_line('Open Shipment records');
5645: asn_debug.put_line('PO Header id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5646: asn_debug.put_line('Item Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5647: asn_debug.put_line('Proceed to open cursor');
5648: END IF;
5649:
5650: /* Bug 2208664 : Nullified the ship_to_location_id when calling
5651: the cursors shipments, count_shipments, distributions and

Line 5668: IF (g_asn_debug = 'Y') THEN

5664: );
5665: -- }
5666: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
5667: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --{
5668: IF (g_asn_debug = 'Y') THEN
5669: asn_debug.put_line('Open Distribution records');
5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));

Line 5669: asn_debug.put_line('Open Distribution records');

5665: -- }
5666: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
5667: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --{
5668: IF (g_asn_debug = 'Y') THEN
5669: asn_debug.put_line('Open Distribution records');
5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));
5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));

Line 5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));

5666: ELSIF( x_cascaded_table(n).transaction_type = 'DELIVER'
5667: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --{
5668: IF (g_asn_debug = 'Y') THEN
5669: asn_debug.put_line('Open Distribution records');
5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));
5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
5674: asn_debug.put_line('Proceed to open cursor');

Line 5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));

5667: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN --{
5668: IF (g_asn_debug = 'Y') THEN
5669: asn_debug.put_line('Open Distribution records');
5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));
5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
5674: asn_debug.put_line('Proceed to open cursor');
5675: END IF;

Line 5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));

5668: IF (g_asn_debug = 'Y') THEN
5669: asn_debug.put_line('Open Distribution records');
5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));
5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
5674: asn_debug.put_line('Proceed to open cursor');
5675: END IF;
5676:

Line 5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));

5669: asn_debug.put_line('Open Distribution records');
5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));
5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
5674: asn_debug.put_line('Proceed to open cursor');
5675: END IF;
5676:
5677: OPEN distributions(temp_cascaded_table(current_n).po_line_id,

Line 5674: asn_debug.put_line('Proceed to open cursor');

5670: asn_debug.put_line('PO Line id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_id));
5671: asn_debug.put_line('Line location Id ' || TO_CHAR(temp_cascaded_table(current_n).po_line_location_id));
5672: asn_debug.put_line('PO Distribution id ' || TO_CHAR(temp_cascaded_table(current_n).po_distribution_id));
5673: asn_debug.put_line('PO RElease id ' || TO_CHAR(temp_cascaded_table(current_n).po_release_id));
5674: asn_debug.put_line('Proceed to open cursor');
5675: END IF;
5676:
5677: OPEN distributions(temp_cascaded_table(current_n).po_line_id,
5678: temp_cascaded_table(current_n).po_line_location_id,

Line 5693: IF (g_asn_debug = 'Y') THEN

5689:
5690:
5691: -- Assign transaction amount to remaining amount
5692:
5693: IF (g_asn_debug = 'Y') THEN
5694: asn_debug.put_line('Assign ordered_amount to remaining amount');
5695: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
5696: END IF;
5697:

Line 5694: asn_debug.put_line('Assign ordered_amount to remaining amount');

5690:
5691: -- Assign transaction amount to remaining amount
5692:
5693: IF (g_asn_debug = 'Y') THEN
5694: asn_debug.put_line('Assign ordered_amount to remaining amount');
5695: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
5696: END IF;
5697:
5698: x_remaining_amount := temp_cascaded_table(current_n).amount;

Line 5695: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));

5691: -- Assign transaction amount to remaining amount
5692:
5693: IF (g_asn_debug = 'Y') THEN
5694: asn_debug.put_line('Assign ordered_amount to remaining amount');
5695: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
5696: END IF;
5697:
5698: x_remaining_amount := temp_cascaded_table(current_n).amount;
5699:

Line 5700: IF (g_asn_debug = 'Y') THEN

5696: END IF;
5697:
5698: x_remaining_amount := temp_cascaded_table(current_n).amount;
5699:
5700: IF (g_asn_debug = 'Y') THEN
5701: asn_debug.put_line('Have assigned the amount ' || TO_CHAR(x_remaining_amount));
5702: END IF;
5703:
5704: -- Calculate tax_amount_factor for calculating tax_amount for

Line 5701: asn_debug.put_line('Have assigned the amount ' || TO_CHAR(x_remaining_amount));

5697:
5698: x_remaining_amount := temp_cascaded_table(current_n).amount;
5699:
5700: IF (g_asn_debug = 'Y') THEN
5701: asn_debug.put_line('Have assigned the amount ' || TO_CHAR(x_remaining_amount));
5702: END IF;
5703:
5704: -- Calculate tax_amount_factor for calculating tax_amount for
5705: -- each cascaded line

Line 5712: IF (g_asn_debug = 'Y') THEN

5708: ELSE
5709: tax_amount_factor := 0;
5710: END IF;
5711:
5712: IF (g_asn_debug = 'Y') THEN
5713: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
5714: END IF;
5715:
5716: x_first_trans := TRUE;

Line 5713: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));

5709: tax_amount_factor := 0;
5710: END IF;
5711:
5712: IF (g_asn_debug = 'Y') THEN
5713: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
5714: END IF;
5715:
5716: x_first_trans := TRUE;
5717: transaction_ok := FALSE;

Line 5730: IF (g_asn_debug = 'Y') THEN

5726: ELSE
5727: FETCH count_distributions INTO x_record_count;
5728: END IF;
5729:
5730: IF (g_asn_debug = 'Y') THEN
5731: asn_debug.put_line('Before starting Cascade');
5732: END IF;
5733:
5734: IF (g_asn_debug = 'Y') THEN

Line 5731: asn_debug.put_line('Before starting Cascade');

5727: FETCH count_distributions INTO x_record_count;
5728: END IF;
5729:
5730: IF (g_asn_debug = 'Y') THEN
5731: asn_debug.put_line('Before starting Cascade');
5732: END IF;
5733:
5734: IF (g_asn_debug = 'Y') THEN
5735: asn_debug.put_line('Record Count = ' || x_record_count);

Line 5734: IF (g_asn_debug = 'Y') THEN

5730: IF (g_asn_debug = 'Y') THEN
5731: asn_debug.put_line('Before starting Cascade');
5732: END IF;
5733:
5734: IF (g_asn_debug = 'Y') THEN
5735: asn_debug.put_line('Record Count = ' || x_record_count);
5736: END IF;
5737:
5738: asn_debug.put_line('record count ' || x_record_count);

Line 5735: asn_debug.put_line('Record Count = ' || x_record_count);

5731: asn_debug.put_line('Before starting Cascade');
5732: END IF;
5733:
5734: IF (g_asn_debug = 'Y') THEN
5735: asn_debug.put_line('Record Count = ' || x_record_count);
5736: END IF;
5737:
5738: asn_debug.put_line('record count ' || x_record_count);
5739:

Line 5738: asn_debug.put_line('record count ' || x_record_count);

5734: IF (g_asn_debug = 'Y') THEN
5735: asn_debug.put_line('Record Count = ' || x_record_count);
5736: END IF;
5737:
5738: asn_debug.put_line('record count ' || x_record_count);
5739:
5740: LOOP --{
5741: IF (g_asn_debug = 'Y') THEN
5742: asn_debug.put_line('Remaining Amount ' || TO_CHAR(x_remaining_amount));

Line 5741: IF (g_asn_debug = 'Y') THEN

5737:
5738: asn_debug.put_line('record count ' || x_record_count);
5739:
5740: LOOP --{
5741: IF (g_asn_debug = 'Y') THEN
5742: asn_debug.put_line('Remaining Amount ' || TO_CHAR(x_remaining_amount));
5743: END IF;
5744:
5745: IF (g_asn_debug = 'Y') THEN

Line 5742: asn_debug.put_line('Remaining Amount ' || TO_CHAR(x_remaining_amount));

5738: asn_debug.put_line('record count ' || x_record_count);
5739:
5740: LOOP --{
5741: IF (g_asn_debug = 'Y') THEN
5742: asn_debug.put_line('Remaining Amount ' || TO_CHAR(x_remaining_amount));
5743: END IF;
5744:
5745: IF (g_asn_debug = 'Y') THEN
5746: asn_debug.put_line('open shipments and fetch');

Line 5745: IF (g_asn_debug = 'Y') THEN

5741: IF (g_asn_debug = 'Y') THEN
5742: asn_debug.put_line('Remaining Amount ' || TO_CHAR(x_remaining_amount));
5743: END IF;
5744:
5745: IF (g_asn_debug = 'Y') THEN
5746: asn_debug.put_line('open shipments and fetch');
5747: END IF;
5748:
5749: /*

Line 5746: asn_debug.put_line('open shipments and fetch');

5742: asn_debug.put_line('Remaining Amount ' || TO_CHAR(x_remaining_amount));
5743: END IF;
5744:
5745: IF (g_asn_debug = 'Y') THEN
5746: asn_debug.put_line('open shipments and fetch');
5747: END IF;
5748:
5749: /*
5750: ** Fetch the appropriate record

Line 5752: IF (g_asn_debug = 'Y') THEN

5748:
5749: /*
5750: ** Fetch the appropriate record
5751: */
5752: IF (g_asn_debug = 'Y') THEN
5753: asn_debug.put_line('transaction_type = ' || x_cascaded_table(n).transaction_type);
5754: END IF;
5755:
5756: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'

Line 5753: asn_debug.put_line('transaction_type = ' || x_cascaded_table(n).transaction_type);

5749: /*
5750: ** Fetch the appropriate record
5751: */
5752: IF (g_asn_debug = 'Y') THEN
5753: asn_debug.put_line('transaction_type = ' || x_cascaded_table(n).transaction_type);
5754: END IF;
5755:
5756: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
5757: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{

Line 5758: IF (g_asn_debug = 'Y') THEN

5754: END IF;
5755:
5756: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
5757: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
5758: IF (g_asn_debug = 'Y') THEN
5759: asn_debug.put_line('Fetching Shipments Cursor');
5760: END IF;
5761:
5762: FETCH shipments INTO x_shipmentdistributionrec;

Line 5759: asn_debug.put_line('Fetching Shipments Cursor');

5755:
5756: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
5757: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
5758: IF (g_asn_debug = 'Y') THEN
5759: asn_debug.put_line('Fetching Shipments Cursor');
5760: END IF;
5761:
5762: FETCH shipments INTO x_shipmentdistributionrec;
5763:

Line 5773: IF (g_asn_debug = 'Y') THEN

5769: END IF;
5770:
5771: rows_fetched := shipments%ROWCOUNT;
5772:
5773: IF (g_asn_debug = 'Y') THEN
5774: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));
5775: END IF;
5776: -- }
5777: ELSE -- txn = deliver and other cases --{

Line 5774: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));

5770:
5771: rows_fetched := shipments%ROWCOUNT;
5772:
5773: IF (g_asn_debug = 'Y') THEN
5774: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));
5775: END IF;
5776: -- }
5777: ELSE -- txn = deliver and other cases --{
5778: IF (g_asn_debug = 'Y') THEN

Line 5778: IF (g_asn_debug = 'Y') THEN

5774: asn_debug.put_line('Shipment Rows fetched ' || TO_CHAR(rows_fetched));
5775: END IF;
5776: -- }
5777: ELSE -- txn = deliver and other cases --{
5778: IF (g_asn_debug = 'Y') THEN
5779: asn_debug.put_line('Fetching Distributions Cursor in amount proc');
5780: END IF;
5781:
5782: FETCH distributions INTO x_shipmentdistributionrec;

Line 5779: asn_debug.put_line('Fetching Distributions Cursor in amount proc');

5775: END IF;
5776: -- }
5777: ELSE -- txn = deliver and other cases --{
5778: IF (g_asn_debug = 'Y') THEN
5779: asn_debug.put_line('Fetching Distributions Cursor in amount proc');
5780: END IF;
5781:
5782: FETCH distributions INTO x_shipmentdistributionrec;
5783:

Line 5793: IF (g_asn_debug = 'Y') THEN

5789: END IF;
5790:
5791: rows_fetched := distributions%ROWCOUNT;
5792:
5793: IF (g_asn_debug = 'Y') THEN
5794: asn_debug.put_line('Distribution Rows fetched ' || TO_CHAR(rows_fetched));
5795: END IF;
5796: END IF; -- matches if condition of txn ! deliver --}
5797:

Line 5794: asn_debug.put_line('Distribution Rows fetched ' || TO_CHAR(rows_fetched));

5790:
5791: rows_fetched := distributions%ROWCOUNT;
5792:
5793: IF (g_asn_debug = 'Y') THEN
5794: asn_debug.put_line('Distribution Rows fetched ' || TO_CHAR(rows_fetched));
5795: END IF;
5796: END IF; -- matches if condition of txn ! deliver --}
5797:
5798: IF ( lastrecord

Line 5800: IF (g_asn_debug = 'Y') THEN

5796: END IF; -- matches if condition of txn ! deliver --}
5797:
5798: IF ( lastrecord
5799: OR x_remaining_amount <= 0) THEN --{
5800: IF (g_asn_debug = 'Y') THEN
5801: asn_debug.put_line('Hit exit condition');
5802: END IF;
5803:
5804: IF NOT x_first_trans THEN

Line 5801: asn_debug.put_line('Hit exit condition');

5797:
5798: IF ( lastrecord
5799: OR x_remaining_amount <= 0) THEN --{
5800: IF (g_asn_debug = 'Y') THEN
5801: asn_debug.put_line('Hit exit condition');
5802: END IF;
5803:
5804: IF NOT x_first_trans THEN
5805: -- x_first_trans has been reset which means some cascade has

Line 5811: IF (g_asn_debug = 'Y') THEN

5807: current_n := current_n - 1;
5808: END IF;
5809:
5810: -- do the tolerance act here
5811: IF (g_asn_debug = 'Y') THEN
5812: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
5813: asn_debug.put_line('Check which condition has occured');
5814: END IF;
5815:

Line 5812: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));

5808: END IF;
5809:
5810: -- do the tolerance act here
5811: IF (g_asn_debug = 'Y') THEN
5812: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
5813: asn_debug.put_line('Check which condition has occured');
5814: END IF;
5815:
5816: -- lastrecord...we have run out of rows and we still have quantity to allocate

Line 5813: asn_debug.put_line('Check which condition has occured');

5809:
5810: -- do the tolerance act here
5811: IF (g_asn_debug = 'Y') THEN
5812: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
5813: asn_debug.put_line('Check which condition has occured');
5814: END IF;
5815:
5816: -- lastrecord...we have run out of rows and we still have quantity to allocate
5817: IF x_remaining_amount > 0 THEN --{

Line 5818: IF (g_asn_debug = 'Y') THEN

5814: END IF;
5815:
5816: -- lastrecord...we have run out of rows and we still have quantity to allocate
5817: IF x_remaining_amount > 0 THEN --{
5818: IF (g_asn_debug = 'Y') THEN
5819: asn_debug.put_line('There is amount remaining');
5820: asn_debug.put_line('Need to check qty/amt tolerances');
5821: END IF;
5822:

Line 5819: asn_debug.put_line('There is amount remaining');

5815:
5816: -- lastrecord...we have run out of rows and we still have quantity to allocate
5817: IF x_remaining_amount > 0 THEN --{
5818: IF (g_asn_debug = 'Y') THEN
5819: asn_debug.put_line('There is amount remaining');
5820: asn_debug.put_line('Need to check qty/amt tolerances');
5821: END IF;
5822:
5823: IF rows_fetched > 0

Line 5820: asn_debug.put_line('Need to check qty/amt tolerances');

5816: -- lastrecord...we have run out of rows and we still have quantity to allocate
5817: IF x_remaining_amount > 0 THEN --{
5818: IF (g_asn_debug = 'Y') THEN
5819: asn_debug.put_line('There is amount remaining');
5820: asn_debug.put_line('Need to check qty/amt tolerances');
5821: END IF;
5822:
5823: IF rows_fetched > 0
5824: AND NOT x_first_trans THEN --{

Line 5832: IF (g_asn_debug = 'Y') THEN

5828: INTO x_qty_rcv_exception_code
5829: FROM po_line_locations
5830: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
5831:
5832: IF (g_asn_debug = 'Y') THEN
5833: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
5834: END IF;
5835:
5836: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{

Line 5833: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));

5829: FROM po_line_locations
5830: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
5831:
5832: IF (g_asn_debug = 'Y') THEN
5833: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
5834: END IF;
5835:
5836: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
5837: /* Bug# 1807842 */

Line 5840: IF (g_asn_debug = 'Y') THEN

5836: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
5837: /* Bug# 1807842 */
5838: -- Bug 3506964.
5839: IF (temp_cascaded_table(current_n).amount < x_converted_trx_amt) THEN --{
5840: IF (g_asn_debug = 'Y') THEN
5841: asn_debug.put_line('Tolerable amount ' || TO_CHAR(x_converted_trx_amt));
5842: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5843: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5844: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');

Line 5841: asn_debug.put_line('Tolerable amount ' || TO_CHAR(x_converted_trx_amt));

5837: /* Bug# 1807842 */
5838: -- Bug 3506964.
5839: IF (temp_cascaded_table(current_n).amount < x_converted_trx_amt) THEN --{
5840: IF (g_asn_debug = 'Y') THEN
5841: asn_debug.put_line('Tolerable amount ' || TO_CHAR(x_converted_trx_amt));
5842: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5843: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5844: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
5845: END IF;

Line 5842: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));

5838: -- Bug 3506964.
5839: IF (temp_cascaded_table(current_n).amount < x_converted_trx_amt) THEN --{
5840: IF (g_asn_debug = 'Y') THEN
5841: asn_debug.put_line('Tolerable amount ' || TO_CHAR(x_converted_trx_amt));
5842: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5843: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5844: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
5845: END IF;
5846:

Line 5843: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));

5839: IF (temp_cascaded_table(current_n).amount < x_converted_trx_amt) THEN --{
5840: IF (g_asn_debug = 'Y') THEN
5841: asn_debug.put_line('Tolerable amount ' || TO_CHAR(x_converted_trx_amt));
5842: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5843: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5844: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
5845: END IF;
5846:
5847: temp_cascaded_table(current_n).amount := temp_cascaded_table(current_n).amount + x_remaining_amount;

Line 5844: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');

5840: IF (g_asn_debug = 'Y') THEN
5841: asn_debug.put_line('Tolerable amount ' || TO_CHAR(x_converted_trx_amt));
5842: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5843: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5844: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
5845: END IF;
5846:
5847: temp_cascaded_table(current_n).amount := temp_cascaded_table(current_n).amount + x_remaining_amount;
5848: temp_cascaded_table(current_n).amount_shipped := temp_cascaded_table(current_n).amount_shipped + x_remaining_amount;

Line 5854: IF (g_asn_debug = 'Y') THEN

5850: END IF; /* Bug# 1807842 */ --}
5851:
5852: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
5853:
5854: IF (g_asn_debug = 'Y') THEN
5855: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5856: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5857: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5858: END IF;

Line 5855: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));

5851:
5852: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
5853:
5854: IF (g_asn_debug = 'Y') THEN
5855: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5856: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5857: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5858: END IF;
5859:

Line 5856: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

5852: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
5853:
5854: IF (g_asn_debug = 'Y') THEN
5855: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5856: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5857: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5858: END IF;
5859:
5860: IF x_qty_rcv_exception_code = 'WARNING' THEN --{

Line 5857: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));

5853:
5854: IF (g_asn_debug = 'Y') THEN
5855: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5856: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5857: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5858: END IF;
5859:
5860: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
5861: IF (g_asn_debug = 'Y') THEN

Line 5861: IF (g_asn_debug = 'Y') THEN

5857: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5858: END IF;
5859:
5860: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
5861: IF (g_asn_debug = 'Y') THEN
5862: asn_debug.put_line('IN WARNING');
5863: END IF;
5864:
5865: temp_cascaded_table(current_n).error_status := 'W';

Line 5862: asn_debug.put_line('IN WARNING');

5858: END IF;
5859:
5860: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
5861: IF (g_asn_debug = 'Y') THEN
5862: asn_debug.put_line('IN WARNING');
5863: END IF;
5864:
5865: temp_cascaded_table(current_n).error_status := 'W';
5866: temp_cascaded_table(current_n).error_message := 'RCV_SHIP_QTY_OVER_TOLERANCE';

Line 5868: IF (g_asn_debug = 'Y') THEN

5864:
5865: temp_cascaded_table(current_n).error_status := 'W';
5866: temp_cascaded_table(current_n).error_message := 'RCV_SHIP_QTY_OVER_TOLERANCE';
5867:
5868: IF (g_asn_debug = 'Y') THEN
5869: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
5870: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
5871: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
5872: END IF;

Line 5869: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));

5865: temp_cascaded_table(current_n).error_status := 'W';
5866: temp_cascaded_table(current_n).error_message := 'RCV_SHIP_QTY_OVER_TOLERANCE';
5867:
5868: IF (g_asn_debug = 'Y') THEN
5869: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
5870: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
5871: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
5872: END IF;
5873:

Line 5870: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));

5866: temp_cascaded_table(current_n).error_message := 'RCV_SHIP_QTY_OVER_TOLERANCE';
5867:
5868: IF (g_asn_debug = 'Y') THEN
5869: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
5870: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
5871: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
5872: END IF;
5873:
5874: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 5871: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));

5867:
5868: IF (g_asn_debug = 'Y') THEN
5869: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
5870: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
5871: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
5872: END IF;
5873:
5874: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;
5875: rcv_error_pkg.set_error_message('RCV_SHIP_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 5880: IF (g_asn_debug = 'Y') THEN

5876: rcv_error_pkg.set_token('QTY_A', temp_cascaded_table(current_n).quantity);
5877: rcv_error_pkg.set_token('QTY_B', temp_cascaded_table(current_n).quantity - x_remaining_amount);
5878: rcv_error_pkg.log_interface_warning('QUANTITY');
5879:
5880: IF (g_asn_debug = 'Y') THEN
5881: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
5882: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
5883: asn_debug.put_line('Need to insert into po_interface_errors');
5884: END IF;

Line 5881: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);

5877: rcv_error_pkg.set_token('QTY_B', temp_cascaded_table(current_n).quantity - x_remaining_amount);
5878: rcv_error_pkg.log_interface_warning('QUANTITY');
5879:
5880: IF (g_asn_debug = 'Y') THEN
5881: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
5882: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
5883: asn_debug.put_line('Need to insert into po_interface_errors');
5884: END IF;
5885: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'

Line 5882: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);

5878: rcv_error_pkg.log_interface_warning('QUANTITY');
5879:
5880: IF (g_asn_debug = 'Y') THEN
5881: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
5882: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
5883: asn_debug.put_line('Need to insert into po_interface_errors');
5884: END IF;
5885: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
5886:

Line 5883: asn_debug.put_line('Need to insert into po_interface_errors');

5879:
5880: IF (g_asn_debug = 'Y') THEN
5881: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
5882: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
5883: asn_debug.put_line('Need to insert into po_interface_errors');
5884: END IF;
5885: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
5886:
5887: IF (g_asn_debug = 'Y') THEN

Line 5887: IF (g_asn_debug = 'Y') THEN

5883: asn_debug.put_line('Need to insert into po_interface_errors');
5884: END IF;
5885: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
5886:
5887: IF (g_asn_debug = 'Y') THEN
5888: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5889: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5890: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5891: END IF;

Line 5888: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));

5884: END IF;
5885: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
5886:
5887: IF (g_asn_debug = 'Y') THEN
5888: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5889: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5890: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5891: END IF;
5892: -- }

Line 5889: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

5885: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
5886:
5887: IF (g_asn_debug = 'Y') THEN
5888: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5889: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5890: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5891: END IF;
5892: -- }
5893: ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{

Line 5890: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));

5886:
5887: IF (g_asn_debug = 'Y') THEN
5888: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
5889: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
5890: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5891: END IF;
5892: -- }
5893: ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{
5894: IF (g_asn_debug = 'Y') THEN

Line 5894: IF (g_asn_debug = 'Y') THEN

5890: asn_debug.put_line('Current shipped amount ' || TO_CHAR(temp_cascaded_table(current_n).amount_shipped));
5891: END IF;
5892: -- }
5893: ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{
5894: IF (g_asn_debug = 'Y') THEN
5895: asn_debug.put_line('Extra Amount ' || TO_CHAR(x_remaining_amount));
5896: END IF;
5897:
5898: IF (g_asn_debug = 'Y') THEN

Line 5895: asn_debug.put_line('Extra Amount ' || TO_CHAR(x_remaining_amount));

5891: END IF;
5892: -- }
5893: ELSIF x_qty_rcv_exception_code = 'REJECT' THEN -- elseif for NONE/WARNING --{
5894: IF (g_asn_debug = 'Y') THEN
5895: asn_debug.put_line('Extra Amount ' || TO_CHAR(x_remaining_amount));
5896: END IF;
5897:
5898: IF (g_asn_debug = 'Y') THEN
5899: asn_debug.put_line('delete the temp table ');

Line 5898: IF (g_asn_debug = 'Y') THEN

5894: IF (g_asn_debug = 'Y') THEN
5895: asn_debug.put_line('Extra Amount ' || TO_CHAR(x_remaining_amount));
5896: END IF;
5897:
5898: IF (g_asn_debug = 'Y') THEN
5899: asn_debug.put_line('delete the temp table ');
5900: END IF;
5901:
5902: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 5899: asn_debug.put_line('delete the temp table ');

5895: asn_debug.put_line('Extra Amount ' || TO_CHAR(x_remaining_amount));
5896: END IF;
5897:
5898: IF (g_asn_debug = 'Y') THEN
5899: asn_debug.put_line('delete the temp table ');
5900: END IF;
5901:
5902: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
5903: rcv_error_pkg.set_error_message('RCV_SHIP_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 5909: IF (g_asn_debug = 'Y') THEN

5905: rcv_error_pkg.set_token('QTY_B', x_cascaded_table(n).amount - x_remaining_amount);
5906: rcv_error_pkg.log_interface_error('AMOUNT', FALSE);
5907: temp_cascaded_table.DELETE;
5908:
5909: IF (g_asn_debug = 'Y') THEN
5910: asn_debug.put_line('mark the actual table with error status');
5911: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
5913: END IF;

Line 5910: asn_debug.put_line('mark the actual table with error status');

5906: rcv_error_pkg.log_interface_error('AMOUNT', FALSE);
5907: temp_cascaded_table.DELETE;
5908:
5909: IF (g_asn_debug = 'Y') THEN
5910: asn_debug.put_line('mark the actual table with error status');
5911: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
5913: END IF;
5914:

Line 5911: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

5907: temp_cascaded_table.DELETE;
5908:
5909: IF (g_asn_debug = 'Y') THEN
5910: asn_debug.put_line('mark the actual table with error status');
5911: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
5913: END IF;
5914:
5915: IF (g_asn_debug = 'Y') THEN

Line 5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

5908:
5909: IF (g_asn_debug = 'Y') THEN
5910: asn_debug.put_line('mark the actual table with error status');
5911: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
5913: END IF;
5914:
5915: IF (g_asn_debug = 'Y') THEN
5916: asn_debug.put_line('Need to insert a row into po_interface_errors');

Line 5915: IF (g_asn_debug = 'Y') THEN

5911: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
5913: END IF;
5914:
5915: IF (g_asn_debug = 'Y') THEN
5916: asn_debug.put_line('Need to insert a row into po_interface_errors');
5917: END IF;
5918: END IF; --} matches if(none/warning) and elseif(reject)
5919: --}

Line 5916: asn_debug.put_line('Need to insert a row into po_interface_errors');

5912: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
5913: END IF;
5914:
5915: IF (g_asn_debug = 'Y') THEN
5916: asn_debug.put_line('Need to insert a row into po_interface_errors');
5917: END IF;
5918: END IF; --} matches if(none/warning) and elseif(reject)
5919: --}
5920: ELSE --{ else for rows fetched = 0 OR x_first_trans = true

Line 5922: IF (g_asn_debug = 'Y') THEN

5918: END IF; --} matches if(none/warning) and elseif(reject)
5919: --}
5920: ELSE --{ else for rows fetched = 0 OR x_first_trans = true
5921: IF rows_fetched = 0 THEN
5922: IF (g_asn_debug = 'Y') THEN
5923: asn_debug.put_line('No rows were retrieved from cursor.');
5924: END IF;
5925: ELSIF x_first_trans THEN
5926: IF (g_asn_debug = 'Y') THEN

Line 5923: asn_debug.put_line('No rows were retrieved from cursor.');

5919: --}
5920: ELSE --{ else for rows fetched = 0 OR x_first_trans = true
5921: IF rows_fetched = 0 THEN
5922: IF (g_asn_debug = 'Y') THEN
5923: asn_debug.put_line('No rows were retrieved from cursor.');
5924: END IF;
5925: ELSIF x_first_trans THEN
5926: IF (g_asn_debug = 'Y') THEN
5927: asn_debug.put_line('No rows were cascaded');

Line 5926: IF (g_asn_debug = 'Y') THEN

5922: IF (g_asn_debug = 'Y') THEN
5923: asn_debug.put_line('No rows were retrieved from cursor.');
5924: END IF;
5925: ELSIF x_first_trans THEN
5926: IF (g_asn_debug = 'Y') THEN
5927: asn_debug.put_line('No rows were cascaded');
5928: END IF;
5929: END IF;
5930:

Line 5927: asn_debug.put_line('No rows were cascaded');

5923: asn_debug.put_line('No rows were retrieved from cursor.');
5924: END IF;
5925: ELSIF x_first_trans THEN
5926: IF (g_asn_debug = 'Y') THEN
5927: asn_debug.put_line('No rows were cascaded');
5928: END IF;
5929: END IF;
5930:
5931: x_temp_count := 1;

Line 6061: IF (g_asn_debug = 'Y') THEN

6057: END IF;
6058:
6059: IF ( x_include_closed_po = 'N'
6060: AND x_closed_code IN('FINALLY CLOSED', 'CLOSED', 'CLOSED FOR RECEIVING')) THEN
6061: IF (g_asn_debug = 'Y') THEN
6062: asn_debug.put_line('This PO is not open and the profile option to include closed POs is N');
6063: END IF;
6064:
6065: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 6062: asn_debug.put_line('This PO is not open and the profile option to include closed POs is N');

6058:
6059: IF ( x_include_closed_po = 'N'
6060: AND x_closed_code IN('FINALLY CLOSED', 'CLOSED', 'CLOSED FOR RECEIVING')) THEN
6061: IF (g_asn_debug = 'Y') THEN
6062: asn_debug.put_line('This PO is not open and the profile option to include closed POs is N');
6063: END IF;
6064:
6065: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
6066: rcv_error_pkg.set_error_message('RCV_ASN_SHIPMT_NOT_OPEN', x_cascaded_table(n).error_message);

Line 6085: IF (g_asn_debug = 'Y') THEN

6081: temp_cascaded_table.DELETE;
6082: END IF; --} end else for rows fetched = 0 OR x_first_trans = true
6083: -- end x_remaining_qty > 0 => this is the last record
6084: ELSE --
6085: IF (g_asn_debug = 'Y') THEN
6086: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));
6087: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
6088: END IF;
6089: /* Bug 6610047.

Line 6086: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));

6082: END IF; --} end else for rows fetched = 0 OR x_first_trans = true
6083: -- end x_remaining_qty > 0 => this is the last record
6084: ELSE --
6085: IF (g_asn_debug = 'Y') THEN
6086: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));
6087: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
6088: END IF;
6089: /* Bug 6610047.
6090: * To allow, receipts with zero amount for timecards from now on.

Line 6087: asn_debug.put_line('Return the cascaded rows back to the calling procedure');

6083: -- end x_remaining_qty > 0 => this is the last record
6084: ELSE --
6085: IF (g_asn_debug = 'Y') THEN
6086: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));
6087: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
6088: END IF;
6089: /* Bug 6610047.
6090: * To allow, receipts with zero amount for timecards from now on.
6091: * Added below code to populate certain data into temp_cascaded_table()

Line 6098: IF (g_asn_debug = 'Y') THEN

6094: IF (temp_cascaded_table(current_n).value_basis = 'RATE'
6095: AND temp_cascaded_table(current_n).purchase_basis = 'TEMP LABOR'
6096: AND temp_cascaded_table(current_n).amount = 0) THEN --{
6097:
6098: IF (g_asn_debug = 'Y') THEN
6099: asn_debug.put_line('Rate/Temp Labor with amount = 0');
6100: END IF;
6101:
6102: temp_cascaded_table(current_n).po_distribution_id := x_shipmentdistributionrec.po_distribution_id;

Line 6099: asn_debug.put_line('Rate/Temp Labor with amount = 0');

6095: AND temp_cascaded_table(current_n).purchase_basis = 'TEMP LABOR'
6096: AND temp_cascaded_table(current_n).amount = 0) THEN --{
6097:
6098: IF (g_asn_debug = 'Y') THEN
6099: asn_debug.put_line('Rate/Temp Labor with amount = 0');
6100: END IF;
6101:
6102: temp_cascaded_table(current_n).po_distribution_id := x_shipmentdistributionrec.po_distribution_id;
6103: temp_cascaded_table(current_n).charge_account_id := x_shipmentdistributionrec.code_combination_id;

Line 6125: IF (g_asn_debug = 'Y') THEN

6121: END IF; --} ends the check for whether last record has been reached
6122:
6123: -- close cursors
6124:
6125: IF (g_asn_debug = 'Y') THEN
6126: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions');
6127: END IF;
6128:
6129: IF shipments%ISOPEN THEN

Line 6126: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions');

6122:
6123: -- close cursors
6124:
6125: IF (g_asn_debug = 'Y') THEN
6126: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions');
6127: END IF;
6128:
6129: IF shipments%ISOPEN THEN
6130: CLOSE shipments;

Line 6150: IF (g_asn_debug = 'Y') THEN

6146: END IF; --} matches lastrecord or x_remaining_amount <= 0
6147:
6148: -- eliminate the row if it fails the date check
6149:
6150: IF (g_asn_debug = 'Y') THEN
6151: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
6152: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
6153: asn_debug.put_line('Check date tolerance');
6154: END IF;

Line 6151: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));

6147:
6148: -- eliminate the row if it fails the date check
6149:
6150: IF (g_asn_debug = 'Y') THEN
6151: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
6152: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
6153: asn_debug.put_line('Check date tolerance');
6154: END IF;
6155:

Line 6152: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));

6148: -- eliminate the row if it fails the date check
6149:
6150: IF (g_asn_debug = 'Y') THEN
6151: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
6152: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
6153: asn_debug.put_line('Check date tolerance');
6154: END IF;
6155:
6156: /* FPJ Services.

Line 6153: asn_debug.put_line('Check date tolerance');

6149:
6150: IF (g_asn_debug = 'Y') THEN
6151: asn_debug.put_line('Count in temp_cascade_table : ' || TO_CHAR(temp_cascaded_table.COUNT));
6152: asn_debug.put_line('Cursor record ' || TO_CHAR(rows_fetched));
6153: asn_debug.put_line('Check date tolerance');
6154: END IF;
6155:
6156: /* FPJ Services.
6157: * We do not check date_tolerances if matching_basis is

Line 6167: IF (g_asn_debug = 'Y') THEN

6163: * Fixed Price / Services.
6164: */
6165: IF ( NVL(x_cascaded_table(n).value_basis, 'QUANTITY') <> 'RATE'
6166: AND NVL(x_cascaded_table(n).purchase_basis, 'GOODS') <> 'TEMP_LABOR') THEN
6167: IF (g_asn_debug = 'Y') THEN
6168: asn_debug.put_line('Check date tolerance for a Fixed Price services line');
6169: END IF;
6170:
6171: rcv_transactions_interface_sv.check_date_tolerance(NVL(temp_cascaded_table(1).expected_receipt_date, x_header_record.header_record.expected_receipt_date), -- Bug 487222

Line 6168: asn_debug.put_line('Check date tolerance for a Fixed Price services line');

6164: */
6165: IF ( NVL(x_cascaded_table(n).value_basis, 'QUANTITY') <> 'RATE'
6166: AND NVL(x_cascaded_table(n).purchase_basis, 'GOODS') <> 'TEMP_LABOR') THEN
6167: IF (g_asn_debug = 'Y') THEN
6168: asn_debug.put_line('Check date tolerance for a Fixed Price services line');
6169: END IF;
6170:
6171: rcv_transactions_interface_sv.check_date_tolerance(NVL(temp_cascaded_table(1).expected_receipt_date, x_header_record.header_record.expected_receipt_date), -- Bug 487222
6172: x_shipmentdistributionrec.promised_date,

Line 6187: IF (g_asn_debug = 'Y') THEN

6183: /* FPJ SERVICES END */
6184:
6185: /* bug 1060261 - added error message to be shown when the expected date is outside tolerance range */
6186: IF (x_shipmentdistributionrec.receipt_days_exception_code = 'REJECT') THEN --{
6187: IF (g_asn_debug = 'Y') THEN
6188: asn_debug.put_line('Receipt days exception code is Reject. So error out.');
6189: END IF;
6190:
6191: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 6188: asn_debug.put_line('Receipt days exception code is Reject. So error out.');

6184:
6185: /* bug 1060261 - added error message to be shown when the expected date is outside tolerance range */
6186: IF (x_shipmentdistributionrec.receipt_days_exception_code = 'REJECT') THEN --{
6187: IF (g_asn_debug = 'Y') THEN
6188: asn_debug.put_line('Receipt days exception code is Reject. So error out.');
6189: END IF;
6190:
6191: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
6192: rcv_error_pkg.set_error_message('RCV_ASN_DATE_OUT_TOL', x_cascaded_table(n).error_message);

Line 6197: IF (g_asn_debug = 'Y') THEN

6193: rcv_error_pkg.set_token('DELIVERY DATE', NVL(temp_cascaded_table(1).expected_receipt_date, x_header_record.header_record.expected_receipt_date));
6194: rcv_error_pkg.log_interface_error('EXPECTED_RECEIPT_DATE', FALSE);
6195: END IF; --}
6196:
6197: IF (g_asn_debug = 'Y') THEN
6198: asn_debug.put_line('Days exception Code ' || NVL(x_shipmentdistributionrec.receipt_days_exception_code, 'XXX'));
6199: END IF;
6200:
6201: -- Check shipto_location enforcement

Line 6198: asn_debug.put_line('Days exception Code ' || NVL(x_shipmentdistributionrec.receipt_days_exception_code, 'XXX'));

6194: rcv_error_pkg.log_interface_error('EXPECTED_RECEIPT_DATE', FALSE);
6195: END IF; --}
6196:
6197: IF (g_asn_debug = 'Y') THEN
6198: asn_debug.put_line('Days exception Code ' || NVL(x_shipmentdistributionrec.receipt_days_exception_code, 'XXX'));
6199: END IF;
6200:
6201: -- Check shipto_location enforcement
6202:

Line 6208: IF (g_asn_debug = 'Y') THEN

6204: NVL(temp_cascaded_table(1).ship_to_location_id, x_header_record.header_record.location_id),
6205: x_shipmentdistributionrec.enforce_ship_to_location_code
6206: );
6207:
6208: IF (g_asn_debug = 'Y') THEN
6209: asn_debug.put_line('Enforce ShipToLocation ' || NVL(x_shipmentdistributionrec.enforce_ship_to_location_code, 'XXX'));
6210: END IF;
6211:
6212: /* Bug 2208664 : Enter error message in po_interface_errors if enforce_ship_to_location_code is 'WARNING', and

Line 6209: asn_debug.put_line('Enforce ShipToLocation ' || NVL(x_shipmentdistributionrec.enforce_ship_to_location_code, 'XXX'));

6205: x_shipmentdistributionrec.enforce_ship_to_location_code
6206: );
6207:
6208: IF (g_asn_debug = 'Y') THEN
6209: asn_debug.put_line('Enforce ShipToLocation ' || NVL(x_shipmentdistributionrec.enforce_ship_to_location_code, 'XXX'));
6210: END IF;
6211:
6212: /* Bug 2208664 : Enter error message in po_interface_errors if enforce_ship_to_location_code is 'WARNING', and
6213: Enter error message in po_interface_errors if enforce_ship_to_location_code is 'REJECT' and error out

Line 6247: IF (g_asn_debug = 'Y') THEN

6243: */
6244: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
6245: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
6246: /*Bug# 1548597 */
6247: IF (g_asn_debug = 'Y') THEN
6248: asn_debug.put_line('call get_available_amount for Receive');
6249: END IF;
6250:
6251: rcv_quantities_s.get_available_amount('RECEIVE',

Line 6248: asn_debug.put_line('call get_available_amount for Receive');

6244: IF ( x_cascaded_table(n).transaction_type <> 'DELIVER'
6245: AND NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') <> 'DELIVER') THEN --{
6246: /*Bug# 1548597 */
6247: IF (g_asn_debug = 'Y') THEN
6248: asn_debug.put_line('call get_available_amount for Receive');
6249: END IF;
6250:
6251: rcv_quantities_s.get_available_amount('RECEIVE',
6252: x_shipmentdistributionrec.line_location_id,

Line 6275: IF (g_asn_debug = 'Y') THEN

6271: END IF;
6272: END LOOP;
6273: END IF;
6274: ELSE --} { for txn != deliver
6275: IF (g_asn_debug = 'Y') THEN
6276: asn_debug.put_line('call get_available_amount for Direct Delivery');
6277: END IF;
6278:
6279: /* Bug# 1548597*/

Line 6276: asn_debug.put_line('call get_available_amount for Direct Delivery');

6272: END LOOP;
6273: END IF;
6274: ELSE --} { for txn != deliver
6275: IF (g_asn_debug = 'Y') THEN
6276: asn_debug.put_line('call get_available_amount for Direct Delivery');
6277: END IF;
6278:
6279: /* Bug# 1548597*/
6280: rcv_quantities_s.get_available_amount('DIRECT RECEIPT',

Line 6309: IF (g_asn_debug = 'Y') THEN

6305: END LOOP;
6306: END IF;
6307: END IF; --} for txn =deliver
6308:
6309: IF (g_asn_debug = 'Y') THEN
6310: asn_debug.put_line('After call to get_available quantity');
6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));

Line 6310: asn_debug.put_line('After call to get_available quantity');

6306: END IF;
6307: END IF; --} for txn =deliver
6308:
6309: IF (g_asn_debug = 'Y') THEN
6310: asn_debug.put_line('After call to get_available quantity');
6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6314: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

Line 6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));

6307: END IF; --} for txn =deliver
6308:
6309: IF (g_asn_debug = 'Y') THEN
6310: asn_debug.put_line('After call to get_available quantity');
6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6314: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6315: END IF;

Line 6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));

6308:
6309: IF (g_asn_debug = 'Y') THEN
6310: asn_debug.put_line('After call to get_available quantity');
6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6314: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6315: END IF;
6316:

Line 6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));

6309: IF (g_asn_debug = 'Y') THEN
6310: asn_debug.put_line('After call to get_available quantity');
6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6314: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6315: END IF;
6316:
6317: -- if amt has already been allocated then reduce available and tolerable

Line 6314: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

6310: asn_debug.put_line('After call to get_available quantity');
6311: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6312: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6313: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6314: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6315: END IF;
6316:
6317: -- if amt has already been allocated then reduce available and tolerable
6318: -- amt by the allocated amount

Line 6332: IF (g_asn_debug = 'Y') THEN

6328: IF x_tolerable_amt < 0 THEN
6329: x_tolerable_amt := 0;
6330: END IF;
6331:
6332: IF (g_asn_debug = 'Y') THEN
6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');
6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));

Line 6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');

6329: x_tolerable_amt := 0;
6330: END IF;
6331:
6332: IF (g_asn_debug = 'Y') THEN
6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');
6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));

Line 6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));

6330: END IF;
6331:
6332: IF (g_asn_debug = 'Y') THEN
6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');
6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));

Line 6335: asn_debug.put_line('After reducing by allocated amt');

6331:
6332: IF (g_asn_debug = 'Y') THEN
6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');
6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6339: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

Line 6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));

6332: IF (g_asn_debug = 'Y') THEN
6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');
6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6339: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6340: END IF;

Line 6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));

6333: asn_debug.put_line('Have some allocated amount. Will reduce amt');
6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6339: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6340: END IF;
6341: END IF; --}

Line 6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));

6334: asn_debug.put_line('Allocated Amt ' || TO_CHAR(already_allocated_amt));
6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6339: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6340: END IF;
6341: END IF; --}
6342:

Line 6339: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));

6335: asn_debug.put_line('After reducing by allocated amt');
6336: asn_debug.put_line('Available Amount ' || TO_CHAR(x_converted_trx_amt));
6337: asn_debug.put_line('Tolerable Amount ' || TO_CHAR(x_tolerable_amt));
6338: asn_debug.put_line('Already Shipped amount ' || TO_CHAR(NVL(x_shipmentdistributionrec.amount_shipped, 0)));
6339: asn_debug.put_line('Pointer to temp table ' || TO_CHAR(current_n));
6340: END IF;
6341: END IF; --}
6342:
6343: -- If last row set available = tolerable - shipped

Line 6350: IF (g_asn_debug = 'Y') THEN

6346: IF rows_fetched = x_record_count THEN --{
6347: x_converted_trx_amt := x_tolerable_amt;
6348: x_converted_trx_amt := x_tolerable_amt - NVL(x_shipmentdistributionrec.amount_shipped, 0);
6349:
6350: IF (g_asn_debug = 'Y') THEN
6351: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));
6352: END IF;
6353: ELSE --} {
6354: IF (g_asn_debug = 'Y') THEN

Line 6351: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));

6347: x_converted_trx_amt := x_tolerable_amt;
6348: x_converted_trx_amt := x_tolerable_amt - NVL(x_shipmentdistributionrec.amount_shipped, 0);
6349:
6350: IF (g_asn_debug = 'Y') THEN
6351: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));
6352: END IF;
6353: ELSE --} {
6354: IF (g_asn_debug = 'Y') THEN
6355: x_converted_trx_amt := x_converted_trx_amt - NVL(x_shipmentdistributionrec.amount_shipped, 0);

Line 6354: IF (g_asn_debug = 'Y') THEN

6350: IF (g_asn_debug = 'Y') THEN
6351: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));
6352: END IF;
6353: ELSE --} {
6354: IF (g_asn_debug = 'Y') THEN
6355: x_converted_trx_amt := x_converted_trx_amt - NVL(x_shipmentdistributionrec.amount_shipped, 0);
6356: asn_debug.put_line('Not Last Row : ' || TO_CHAR(x_converted_trx_amt));
6357: END IF;
6358: END IF; --}

Line 6356: asn_debug.put_line('Not Last Row : ' || TO_CHAR(x_converted_trx_amt));

6352: END IF;
6353: ELSE --} {
6354: IF (g_asn_debug = 'Y') THEN
6355: x_converted_trx_amt := x_converted_trx_amt - NVL(x_shipmentdistributionrec.amount_shipped, 0);
6356: asn_debug.put_line('Not Last Row : ' || TO_CHAR(x_converted_trx_amt));
6357: END IF;
6358: END IF; --}
6359:
6360: IF x_converted_trx_amt > 0 THEN --{

Line 6362: IF (g_asn_debug = 'Y') THEN

6358: END IF; --}
6359:
6360: IF x_converted_trx_amt > 0 THEN --{
6361: IF (x_converted_trx_amt < x_remaining_amount) THEN -- compare like uoms {
6362: IF (g_asn_debug = 'Y') THEN
6363: asn_debug.put_line('We are in > amt branch');
6364: END IF;
6365:
6366: x_remaining_amount := x_remaining_amount - x_converted_trx_amt;

Line 6363: asn_debug.put_line('We are in > amt branch');

6359:
6360: IF x_converted_trx_amt > 0 THEN --{
6361: IF (x_converted_trx_amt < x_remaining_amount) THEN -- compare like uoms {
6362: IF (g_asn_debug = 'Y') THEN
6363: asn_debug.put_line('We are in > amt branch');
6364: END IF;
6365:
6366: x_remaining_amount := x_remaining_amount - x_converted_trx_amt;
6367: insert_into_table := TRUE;

Line 6369: IF (g_asn_debug = 'Y') THEN

6365:
6366: x_remaining_amount := x_remaining_amount - x_converted_trx_amt;
6367: insert_into_table := TRUE;
6368: ELSE --} {
6369: IF (g_asn_debug = 'Y') THEN
6370: asn_debug.put_line('We are in <= amt branch ');
6371: END IF;
6372:
6373: x_converted_trx_amt := x_remaining_amount;

Line 6370: asn_debug.put_line('We are in <= amt branch ');

6366: x_remaining_amount := x_remaining_amount - x_converted_trx_amt;
6367: insert_into_table := TRUE;
6368: ELSE --} {
6369: IF (g_asn_debug = 'Y') THEN
6370: asn_debug.put_line('We are in <= amt branch ');
6371: END IF;
6372:
6373: x_converted_trx_amt := x_remaining_amount;
6374: insert_into_table := TRUE;

Line 6380: IF (g_asn_debug = 'Y') THEN

6376: END IF; --}
6377: ELSE -- no amt for this record but if last row we need it } {
6378: IF rows_fetched = x_record_count THEN --{ last row needs to be inserted anyway
6379: -- so that the row can be used based on qty tolerance checks
6380: IF (g_asn_debug = 'Y') THEN
6381: asn_debug.put_line('Amount is less then 0 but last record');
6382: END IF;
6383:
6384: insert_into_table := TRUE;

Line 6381: asn_debug.put_line('Amount is less then 0 but last record');

6377: ELSE -- no amt for this record but if last row we need it } {
6378: IF rows_fetched = x_record_count THEN --{ last row needs to be inserted anyway
6379: -- so that the row can be used based on qty tolerance checks
6380: IF (g_asn_debug = 'Y') THEN
6381: asn_debug.put_line('Amount is less then 0 but last record');
6382: END IF;
6383:
6384: insert_into_table := TRUE;
6385: x_converted_trx_amt := 0;

Line 6387: IF (g_asn_debug = 'Y') THEN

6383:
6384: insert_into_table := TRUE;
6385: x_converted_trx_amt := 0;
6386: ELSE --} {
6387: IF (g_asn_debug = 'Y') THEN
6388: asn_debug.put_line('<= 0 amount but more records in cursor');
6389: END IF;
6390:
6391: x_remaining_amount := 0;

Line 6388: asn_debug.put_line('<= 0 amount but more records in cursor');

6384: insert_into_table := TRUE;
6385: x_converted_trx_amt := 0;
6386: ELSE --} {
6387: IF (g_asn_debug = 'Y') THEN
6388: asn_debug.put_line('<= 0 amount but more records in cursor');
6389: END IF;
6390:
6391: x_remaining_amount := 0;
6392:

Line 6393: IF (g_asn_debug = 'Y') THEN

6389: END IF;
6390:
6391: x_remaining_amount := 0;
6392:
6393: IF (g_asn_debug = 'Y') THEN
6394: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');
6395: END IF;
6396:
6397: insert_into_table := FALSE;

Line 6394: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');

6390:
6391: x_remaining_amount := 0;
6392:
6393: IF (g_asn_debug = 'Y') THEN
6394: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');
6395: END IF;
6396:
6397: insert_into_table := FALSE;
6398: END IF; --}

Line 6403: IF (g_asn_debug = 'Y') THEN

6399: END IF; --} remaining_amount <> 0
6400:
6401: IF insert_into_table THEN --{
6402: IF (x_first_trans) THEN --{
6403: IF (g_asn_debug = 'Y') THEN
6404: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
6405: END IF;
6406:
6407: x_first_trans := FALSE;

Line 6404: asn_debug.put_line('First Time ' || TO_CHAR(current_n));

6400:
6401: IF insert_into_table THEN --{
6402: IF (x_first_trans) THEN --{
6403: IF (g_asn_debug = 'Y') THEN
6404: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
6405: END IF;
6406:
6407: x_first_trans := FALSE;
6408: ELSE --} { ! x_first_trans

Line 6409: IF (g_asn_debug = 'Y') THEN

6405: END IF;
6406:
6407: x_first_trans := FALSE;
6408: ELSE --} { ! x_first_trans
6409: IF (g_asn_debug = 'Y') THEN
6410: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
6411: END IF;
6412:
6413: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);

Line 6410: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));

6406:
6407: x_first_trans := FALSE;
6408: ELSE --} { ! x_first_trans
6409: IF (g_asn_debug = 'Y') THEN
6410: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
6411: END IF;
6412:
6413: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);
6414: END IF; --} matches x_first_transfer

Line 6422: IF (g_asn_debug = 'Y') THEN

6418: temp_cascaded_table(current_n).interface_source_code := 'RCV';
6419: temp_cascaded_table(current_n).currency_code := x_shipmentdistributionrec.currency_code;
6420: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
6421:
6422: IF (g_asn_debug = 'Y') THEN
6423: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
6424: END IF;
6425:
6426: IF temp_cascaded_table(current_n).to_organization_id IS NULL THEN --{

Line 6423: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

6419: temp_cascaded_table(current_n).currency_code := x_shipmentdistributionrec.currency_code;
6420: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
6421:
6422: IF (g_asn_debug = 'Y') THEN
6423: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
6424: END IF;
6425:
6426: IF temp_cascaded_table(current_n).to_organization_id IS NULL THEN --{
6427: temp_cascaded_table(current_n).to_organization_id := x_shipmentdistributionrec.ship_to_organization_id;

Line 6434: IF (g_asn_debug = 'Y') THEN

6430: temp_cascaded_table(current_n).po_line_id := x_shipmentdistributionrec.po_line_id;
6431: temp_cascaded_table(current_n).po_line_location_id := x_shipmentdistributionrec.line_location_id;
6432:
6433: IF x_shipmentdistributionrec.enforce_ship_to_location_code = 'WARNING' THEN --{
6434: IF (g_asn_debug = 'Y') THEN
6435: asn_debug.put_line('Message to warn about different shiptolocations');
6436: END IF;
6437: END IF; --}
6438:

Line 6435: asn_debug.put_line('Message to warn about different shiptolocations');

6431: temp_cascaded_table(current_n).po_line_location_id := x_shipmentdistributionrec.line_location_id;
6432:
6433: IF x_shipmentdistributionrec.enforce_ship_to_location_code = 'WARNING' THEN --{
6434: IF (g_asn_debug = 'Y') THEN
6435: asn_debug.put_line('Message to warn about different shiptolocations');
6436: END IF;
6437: END IF; --}
6438:
6439: /* ksareddy - 2329928 Ported changes by bao in branch to cache set_of_books_id */

Line 6461: IF (g_asn_debug = 'Y') THEN

6457: IF (x_ShipmentDistributionRec.match_option = 'R') THEN
6458: x_allow_rate_override := NVL(fnd_profile.value('ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE'), 'N');
6459: END IF;
6460:
6461: IF (g_asn_debug = 'Y') THEN
6462: asn_debug.put_line('Match Option:' || x_ShipmentDistributionRec.match_option ||
6463: 'Profile value ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE:' ||
6464: x_allow_rate_override);
6465: END IF;

Line 6462: asn_debug.put_line('Match Option:' || x_ShipmentDistributionRec.match_option ||

6458: x_allow_rate_override := NVL(fnd_profile.value('ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE'), 'N');
6459: END IF;
6460:
6461: IF (g_asn_debug = 'Y') THEN
6462: asn_debug.put_line('Match Option:' || x_ShipmentDistributionRec.match_option ||
6463: 'Profile value ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE:' ||
6464: x_allow_rate_override);
6465: END IF;
6466:

Line 6522: IF (g_asn_debug = 'Y') THEN

6518: END IF; --}
6519:
6520: temp_cascaded_table(current_n).currency_conversion_type := x_ShipmentDistributionRec.rate_type;
6521:
6522: IF (g_asn_debug = 'Y') THEN
6523: asn_debug.put_line('Rate, Rate type and Rate_date ::' ||
6524: temp_cascaded_table(current_n).currency_conversion_rate ||
6525: '::' || temp_cascaded_table(current_n).currency_conversion_type ||
6526: '::' || temp_cascaded_table(current_n).currency_conversion_date);

Line 6523: asn_debug.put_line('Rate, Rate type and Rate_date ::' ||

6519:
6520: temp_cascaded_table(current_n).currency_conversion_type := x_ShipmentDistributionRec.rate_type;
6521:
6522: IF (g_asn_debug = 'Y') THEN
6523: asn_debug.put_line('Rate, Rate type and Rate_date ::' ||
6524: temp_cascaded_table(current_n).currency_conversion_rate ||
6525: '::' || temp_cascaded_table(current_n).currency_conversion_type ||
6526: '::' || temp_cascaded_table(current_n).currency_conversion_date);
6527: END IF;

Line 6567: IF (g_asn_debug = 'Y') THEN

6563: EXCEPTION
6564: WHEN NO_DATA_FOUND THEN
6565: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6566:
6567: IF (g_asn_debug = 'Y') THEN
6568: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
6569: asn_debug.put_line(' So it is cleared off');
6570: END IF;
6571: WHEN OTHERS THEN

Line 6568: asn_debug.put_line('The deliver to person entered in PO is currently inactive');

6564: WHEN NO_DATA_FOUND THEN
6565: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6566:
6567: IF (g_asn_debug = 'Y') THEN
6568: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
6569: asn_debug.put_line(' So it is cleared off');
6570: END IF;
6571: WHEN OTHERS THEN
6572: temp_cascaded_table(current_n).deliver_to_person_id := NULL;

Line 6569: asn_debug.put_line(' So it is cleared off');

6565: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6566:
6567: IF (g_asn_debug = 'Y') THEN
6568: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
6569: asn_debug.put_line(' So it is cleared off');
6570: END IF;
6571: WHEN OTHERS THEN
6572: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6573:

Line 6574: IF (g_asn_debug = 'Y') THEN

6570: END IF;
6571: WHEN OTHERS THEN
6572: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6573:
6574: IF (g_asn_debug = 'Y') THEN
6575: asn_debug.put_line('Some exception has occured');
6576: asn_debug.put_line('This exception is due to the PO deliver to person');
6577: asn_debug.put_line('The deliver to person is optional');
6578: asn_debug.put_line('So cleared off the deliver to person');

Line 6575: asn_debug.put_line('Some exception has occured');

6571: WHEN OTHERS THEN
6572: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6573:
6574: IF (g_asn_debug = 'Y') THEN
6575: asn_debug.put_line('Some exception has occured');
6576: asn_debug.put_line('This exception is due to the PO deliver to person');
6577: asn_debug.put_line('The deliver to person is optional');
6578: asn_debug.put_line('So cleared off the deliver to person');
6579: END IF;

Line 6576: asn_debug.put_line('This exception is due to the PO deliver to person');

6572: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
6573:
6574: IF (g_asn_debug = 'Y') THEN
6575: asn_debug.put_line('Some exception has occured');
6576: asn_debug.put_line('This exception is due to the PO deliver to person');
6577: asn_debug.put_line('The deliver to person is optional');
6578: asn_debug.put_line('So cleared off the deliver to person');
6579: END IF;
6580: END;

Line 6577: asn_debug.put_line('The deliver to person is optional');

6573:
6574: IF (g_asn_debug = 'Y') THEN
6575: asn_debug.put_line('Some exception has occured');
6576: asn_debug.put_line('This exception is due to the PO deliver to person');
6577: asn_debug.put_line('The deliver to person is optional');
6578: asn_debug.put_line('So cleared off the deliver to person');
6579: END IF;
6580: END;
6581: END IF; --}

Line 6578: asn_debug.put_line('So cleared off the deliver to person');

6574: IF (g_asn_debug = 'Y') THEN
6575: asn_debug.put_line('Some exception has occured');
6576: asn_debug.put_line('This exception is due to the PO deliver to person');
6577: asn_debug.put_line('The deliver to person is optional');
6578: asn_debug.put_line('So cleared off the deliver to person');
6579: END IF;
6580: END;
6581: END IF; --}
6582: END IF; --}

Line 6593: IF (g_asn_debug = 'Y') THEN

6589: END IF; --} matches txn != deliver
6590:
6591: current_n := current_n + 1;
6592:
6593: IF (g_asn_debug = 'Y') THEN
6594: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
6595: END IF;
6596: END IF; --} matches if insert into table
6597: END IF; --} matches shipmentdistributionrec.receipt_days_exception_code = none

Line 6594: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));

6590:
6591: current_n := current_n + 1;
6592:
6593: IF (g_asn_debug = 'Y') THEN
6594: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
6595: END IF;
6596: END IF; --} matches if insert into table
6597: END IF; --} matches shipmentdistributionrec.receipt_days_exception_code = none
6598: END LOOP; --}

Line 6601: IF (g_asn_debug = 'Y') THEN

6597: END IF; --} matches shipmentdistributionrec.receipt_days_exception_code = none
6598: END LOOP; --}
6599: ELSE --} {
6600: -- error_status and error_message are set after validate_quantity_shipped
6601: IF (g_asn_debug = 'Y') THEN
6602: asn_debug.put_line('No po_header_id/item_id ');
6603: END IF;
6604:
6605: IF (g_asn_debug = 'Y') THEN

Line 6602: asn_debug.put_line('No po_header_id/item_id ');

6598: END LOOP; --}
6599: ELSE --} {
6600: -- error_status and error_message are set after validate_quantity_shipped
6601: IF (g_asn_debug = 'Y') THEN
6602: asn_debug.put_line('No po_header_id/item_id ');
6603: END IF;
6604:
6605: IF (g_asn_debug = 'Y') THEN
6606: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

Line 6605: IF (g_asn_debug = 'Y') THEN

6601: IF (g_asn_debug = 'Y') THEN
6602: asn_debug.put_line('No po_header_id/item_id ');
6603: END IF;
6604:
6605: IF (g_asn_debug = 'Y') THEN
6606: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
6607: END IF;
6608:
6609: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{

Line 6606: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

6602: asn_debug.put_line('No po_header_id/item_id ');
6603: END IF;
6604:
6605: IF (g_asn_debug = 'Y') THEN
6606: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
6607: END IF;
6608:
6609: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{
6610: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 6634: IF (g_asn_debug = 'Y') THEN

6630: IF count_distributions%ISOPEN THEN
6631: CLOSE count_distributions;
6632: END IF;
6633:
6634: IF (g_asn_debug = 'Y') THEN
6635: asn_debug.put_line('Exit derive_vendor_rcv_line_amt');
6636: END IF;
6637: EXCEPTION
6638: WHEN OTHERS THEN

Line 6635: asn_debug.put_line('Exit derive_vendor_rcv_line_amt');

6631: CLOSE count_distributions;
6632: END IF;
6633:
6634: IF (g_asn_debug = 'Y') THEN
6635: asn_debug.put_line('Exit derive_vendor_rcv_line_amt');
6636: END IF;
6637: EXCEPTION
6638: WHEN OTHERS THEN
6639: IF (g_asn_debug = 'Y') THEN

Line 6639: IF (g_asn_debug = 'Y') THEN

6635: asn_debug.put_line('Exit derive_vendor_rcv_line_amt');
6636: END IF;
6637: EXCEPTION
6638: WHEN OTHERS THEN
6639: IF (g_asn_debug = 'Y') THEN
6640: asn_debug.put_line('Exception in derive_vendor_rcv_line_amt');
6641: END IF;
6642:
6643: IF shipments%ISOPEN THEN

Line 6640: asn_debug.put_line('Exception in derive_vendor_rcv_line_amt');

6636: END IF;
6637: EXCEPTION
6638: WHEN OTHERS THEN
6639: IF (g_asn_debug = 'Y') THEN
6640: asn_debug.put_line('Exception in derive_vendor_rcv_line_amt');
6641: END IF;
6642:
6643: IF shipments%ISOPEN THEN
6644: CLOSE shipments;

Line 6664: IF (g_asn_debug = 'Y') THEN

6660: rcv_error_pkg.set_sql_error_message('derive_vendor_rcv_line_qty', x_progress);
6661: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
6662: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
6663:
6664: IF (g_asn_debug = 'Y') THEN
6665: asn_debug.put_line(TO_CHAR(n));
6666: asn_debug.put_line(SQLERRM);
6667: asn_debug.put_line('error ' || x_progress);
6668: END IF;

Line 6665: asn_debug.put_line(TO_CHAR(n));

6661: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
6662: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
6663:
6664: IF (g_asn_debug = 'Y') THEN
6665: asn_debug.put_line(TO_CHAR(n));
6666: asn_debug.put_line(SQLERRM);
6667: asn_debug.put_line('error ' || x_progress);
6668: END IF;
6669: END derive_vendor_rcv_line_amt;

Line 6666: asn_debug.put_line(SQLERRM);

6662: rcv_error_pkg.log_interface_error('DOCUMENT_NUM', FALSE);
6663:
6664: IF (g_asn_debug = 'Y') THEN
6665: asn_debug.put_line(TO_CHAR(n));
6666: asn_debug.put_line(SQLERRM);
6667: asn_debug.put_line('error ' || x_progress);
6668: END IF;
6669: END derive_vendor_rcv_line_amt;
6670:

Line 6667: asn_debug.put_line('error ' || x_progress);

6663:
6664: IF (g_asn_debug = 'Y') THEN
6665: asn_debug.put_line(TO_CHAR(n));
6666: asn_debug.put_line(SQLERRM);
6667: asn_debug.put_line('error ' || x_progress);
6668: END IF;
6669: END derive_vendor_rcv_line_amt;
6670:
6671: PROCEDURE validate_transaction_date(

Line 6706: IF (g_asn_debug = 'Y') THEN

6702: EXCEPTION
6703: WHEN NO_DATA_FOUND THEN
6704: NULL;
6705:
6706: IF (g_asn_debug = 'Y') THEN
6707: asn_debug.put_line('Set of books id not defined');
6708: END IF;
6709: END;
6710:

Line 6707: asn_debug.put_line('Set of books id not defined');

6703: WHEN NO_DATA_FOUND THEN
6704: NULL;
6705:
6706: IF (g_asn_debug = 'Y') THEN
6707: asn_debug.put_line('Set of books id not defined');
6708: END IF;
6709: END;
6710:
6711: BEGIN

Line 6719: IF (g_asn_debug = 'Y') THEN

6715: x_cascaded_table(n).to_organization_id
6716: );
6717: EXCEPTION
6718: WHEN OTHERS THEN
6719: IF (g_asn_debug = 'Y') THEN
6720: asn_debug.put_line('Exception in val_open_period');
6721: END IF;
6722:
6723: x_val_open_ok := FALSE;

Line 6720: asn_debug.put_line('Exception in val_open_period');

6716: );
6717: EXCEPTION
6718: WHEN OTHERS THEN
6719: IF (g_asn_debug = 'Y') THEN
6720: asn_debug.put_line('Exception in val_open_period');
6721: END IF;
6722:
6723: x_val_open_ok := FALSE;
6724: END;

Line 6739: IF (g_asn_debug = 'Y') THEN

6735: x_cascaded_table(n).to_organization_id
6736: );
6737: EXCEPTION
6738: WHEN OTHERS THEN
6739: IF (g_asn_debug = 'Y') THEN
6740: asn_debug.put_line('Exception in val_open_period of trx_date');
6741: END IF;
6742:
6743: x_val_open_ok := FALSE;

Line 6740: asn_debug.put_line('Exception in val_open_period of trx_date');

6736: );
6737: EXCEPTION
6738: WHEN OTHERS THEN
6739: IF (g_asn_debug = 'Y') THEN
6740: asn_debug.put_line('Exception in val_open_period of trx_date');
6741: END IF;
6742:
6743: x_val_open_ok := FALSE;
6744: END;

Line 6761: IF (g_asn_debug = 'Y') THEN

6757: EXCEPTION
6758: WHEN OTHERS THEN
6759: x_val_open_ok := FALSE;
6760:
6761: IF (g_asn_debug = 'Y') THEN
6762: asn_debug.put_line('Exception in val_open_period of gl_date');
6763: END IF;
6764: END;
6765:

Line 6762: asn_debug.put_line('Exception in val_open_period of gl_date');

6758: WHEN OTHERS THEN
6759: x_val_open_ok := FALSE;
6760:
6761: IF (g_asn_debug = 'Y') THEN
6762: asn_debug.put_line('Exception in val_open_period of gl_date');
6763: END IF;
6764: END;
6765:
6766: IF NOT(x_val_open_ok) THEN --{

Line 6813: IF (g_asn_debug = 'Y') THEN

6809: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN
6810: RETURN;
6811: END IF;
6812:
6813: IF (g_asn_debug = 'Y') THEN
6814: asn_debug.put_line('Before call to validate UOM');
6815: asn_debug.put_line('Quantity ' || TO_CHAR(x_cascaded_table(n).quantity));
6816: asn_debug.put_line('unit_of_measure ' || x_cascaded_table(n).unit_of_measure);
6817: END IF;

Line 6814: asn_debug.put_line('Before call to validate UOM');

6810: RETURN;
6811: END IF;
6812:
6813: IF (g_asn_debug = 'Y') THEN
6814: asn_debug.put_line('Before call to validate UOM');
6815: asn_debug.put_line('Quantity ' || TO_CHAR(x_cascaded_table(n).quantity));
6816: asn_debug.put_line('unit_of_measure ' || x_cascaded_table(n).unit_of_measure);
6817: END IF;
6818:

Line 6815: asn_debug.put_line('Quantity ' || TO_CHAR(x_cascaded_table(n).quantity));

6811: END IF;
6812:
6813: IF (g_asn_debug = 'Y') THEN
6814: asn_debug.put_line('Before call to validate UOM');
6815: asn_debug.put_line('Quantity ' || TO_CHAR(x_cascaded_table(n).quantity));
6816: asn_debug.put_line('unit_of_measure ' || x_cascaded_table(n).unit_of_measure);
6817: END IF;
6818:
6819: uom_record.quantity_shipped := x_cascaded_table(n).quantity;

Line 6816: asn_debug.put_line('unit_of_measure ' || x_cascaded_table(n).unit_of_measure);

6812:
6813: IF (g_asn_debug = 'Y') THEN
6814: asn_debug.put_line('Before call to validate UOM');
6815: asn_debug.put_line('Quantity ' || TO_CHAR(x_cascaded_table(n).quantity));
6816: asn_debug.put_line('unit_of_measure ' || x_cascaded_table(n).unit_of_measure);
6817: END IF;
6818:
6819: uom_record.quantity_shipped := x_cascaded_table(n).quantity;
6820: uom_record.unit_of_measure := x_cascaded_table(n).unit_of_measure;

Line 6829: IF (g_asn_debug = 'Y') THEN

6825: uom_record.primary_unit_of_measure := x_cascaded_table(n).primary_unit_of_measure;
6826: uom_record.error_record.error_status := 'S';
6827: uom_record.error_record.error_message := NULL;
6828:
6829: IF (g_asn_debug = 'Y') THEN
6830: asn_debug.put_line('Validating UOM');
6831: END IF;
6832:
6833: rcv_transactions_interface_sv1.validate_uom(uom_record);

Line 6830: asn_debug.put_line('Validating UOM');

6826: uom_record.error_record.error_status := 'S';
6827: uom_record.error_record.error_message := NULL;
6828:
6829: IF (g_asn_debug = 'Y') THEN
6830: asn_debug.put_line('Validating UOM');
6831: END IF;
6832:
6833: rcv_transactions_interface_sv1.validate_uom(uom_record);
6834: x_cascaded_table(n).error_status := uom_record.error_record.error_status;

Line 6857: IF (g_asn_debug = 'Y') THEN

6853: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN
6854: RETURN;
6855: END IF;
6856:
6857: IF (g_asn_debug = 'Y') THEN
6858: asn_debug.put_line('Validating Item');
6859: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).item_id));
6860: END IF;
6861:

Line 6858: asn_debug.put_line('Validating Item');

6854: RETURN;
6855: END IF;
6856:
6857: IF (g_asn_debug = 'Y') THEN
6858: asn_debug.put_line('Validating Item');
6859: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).item_id));
6860: END IF;
6861:
6862: /*

Line 6859: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).item_id));

6855: END IF;
6856:
6857: IF (g_asn_debug = 'Y') THEN
6858: asn_debug.put_line('Validating Item');
6859: asn_debug.put_line(TO_CHAR(x_cascaded_table(n).item_id));
6860: END IF;
6861:
6862: /*
6863: ** If this is a one time item shipment and you've matched up based on a

Line 6872: asn_debug.put_line('before doing validate int org rcv item ');

6868: AND x_cascaded_table(n).po_line_id IS NOT NULL) THEN --{
6869: item_id_record.error_record.error_status := x_cascaded_table(n).error_status;
6870: item_id_record.error_record.error_message := x_cascaded_table(n).error_message;
6871: ELSE
6872: asn_debug.put_line('before doing validate int org rcv item ');
6873:
6874: /* Bug 5182693 : Skip validate item for ASN transactions with substitute item */
6875:
6876: asn_debug.put_line('substitute_item_id: '|| x_cascaded_table(n).substitute_item_id);

Line 6876: asn_debug.put_line('substitute_item_id: '|| x_cascaded_table(n).substitute_item_id);

6872: asn_debug.put_line('before doing validate int org rcv item ');
6873:
6874: /* Bug 5182693 : Skip validate item for ASN transactions with substitute item */
6875:
6876: asn_debug.put_line('substitute_item_id: '|| x_cascaded_table(n).substitute_item_id);
6877: asn_debug.put_line('g_txn_against_asn : '|| rcv_roi_header.g_txn_against_asn);
6878: /** Bug: 5598511
6879: * For ASN, substitution item id will be populated only during ASN creation and
6880: * not during the receipt of ASN. In order to bypass item validation for ASN added the

Line 6877: asn_debug.put_line('g_txn_against_asn : '|| rcv_roi_header.g_txn_against_asn);

6873:
6874: /* Bug 5182693 : Skip validate item for ASN transactions with substitute item */
6875:
6876: asn_debug.put_line('substitute_item_id: '|| x_cascaded_table(n).substitute_item_id);
6877: asn_debug.put_line('g_txn_against_asn : '|| rcv_roi_header.g_txn_against_asn);
6878: /** Bug: 5598511
6879: * For ASN, substitution item id will be populated only during ASN creation and
6880: * not during the receipt of ASN. In order to bypass item validation for ASN added the
6881: * condition ' AND rcv_roi_header.g_txn_against_asn = 'N' '

Line 6900: asn_debug.put_line('after doing validate item the error status is ' || x_cascaded_table(n).error_status);

6896: rcv_roi_header_common.validate_item(x_cascaded_table, n); -- bug 608353
6897: END IF; --}
6898: END IF; --}
6899:
6900: asn_debug.put_line('after doing validate item the error status is ' || x_cascaded_table(n).error_status);
6901: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'ITEM_NUM');
6902: item_id_record.item_description := x_cascaded_table(n).item_description;
6903: item_id_record.error_record.error_status := 'S';
6904: item_id_record.error_record.error_message := NULL;

Line 6906: IF (g_asn_debug = 'Y') THEN

6902: item_id_record.item_description := x_cascaded_table(n).item_description;
6903: item_id_record.error_record.error_status := 'S';
6904: item_id_record.error_record.error_message := NULL;
6905:
6906: IF (g_asn_debug = 'Y') THEN
6907: asn_debug.put_line('Validating Item Description ' || x_cascaded_table(n).item_description);
6908: END IF;
6909:
6910: rcv_transactions_interface_sv1.validate_item_description(item_id_record);

Line 6907: asn_debug.put_line('Validating Item Description ' || x_cascaded_table(n).item_description);

6903: item_id_record.error_record.error_status := 'S';
6904: item_id_record.error_record.error_message := NULL;
6905:
6906: IF (g_asn_debug = 'Y') THEN
6907: asn_debug.put_line('Validating Item Description ' || x_cascaded_table(n).item_description);
6908: END IF;
6909:
6910: rcv_transactions_interface_sv1.validate_item_description(item_id_record);
6911: x_cascaded_table(n).error_status := item_id_record.error_record.error_status;

Line 6914: IF (g_asn_debug = 'Y') THEN

6910: rcv_transactions_interface_sv1.validate_item_description(item_id_record);
6911: x_cascaded_table(n).error_status := item_id_record.error_record.error_status;
6912: x_cascaded_table(n).error_message := item_id_record.error_record.error_message;
6913:
6914: IF (g_asn_debug = 'Y') THEN
6915: asn_debug.put_line('Error status after validate item description ' || x_cascaded_table(n).error_status);
6916: END IF;
6917:
6918: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'ITEM_DESCRIPTION');

Line 6915: asn_debug.put_line('Error status after validate item description ' || x_cascaded_table(n).error_status);

6911: x_cascaded_table(n).error_status := item_id_record.error_record.error_status;
6912: x_cascaded_table(n).error_message := item_id_record.error_record.error_message;
6913:
6914: IF (g_asn_debug = 'Y') THEN
6915: asn_debug.put_line('Error status after validate item description ' || x_cascaded_table(n).error_status);
6916: END IF;
6917:
6918: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'ITEM_DESCRIPTION');
6919:

Line 6921: IF (g_asn_debug = 'Y') THEN

6917:
6918: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'ITEM_DESCRIPTION');
6919:
6920: IF (x_cascaded_table(n).substitute_item_id IS NOT NULL) THEN --{
6921: IF (g_asn_debug = 'Y') THEN
6922: asn_debug.put_line('Validating Substitute Item');
6923: END IF;
6924:
6925: rcv_roi_header_common.validate_substitute_item(x_cascaded_table, n);

Line 6922: asn_debug.put_line('Validating Substitute Item');

6918: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'ITEM_DESCRIPTION');
6919:
6920: IF (x_cascaded_table(n).substitute_item_id IS NOT NULL) THEN --{
6921: IF (g_asn_debug = 'Y') THEN
6922: asn_debug.put_line('Validating Substitute Item');
6923: END IF;
6924:
6925: rcv_roi_header_common.validate_substitute_item(x_cascaded_table, n);
6926: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'SUBSTITUTE_ITEM_NUM');

Line 6956: IF (g_asn_debug = 'Y') THEN

6952: freight_carrier_record.po_header_id := x_cascaded_table(n).po_header_id;
6953: freight_carrier_record.error_record.error_status := 'S';
6954: freight_carrier_record.error_record.error_message := NULL;
6955:
6956: IF (g_asn_debug = 'Y') THEN
6957: asn_debug.put_line('Validating Freight Carrier');
6958: END IF;
6959:
6960: rcv_transactions_interface_sv1.validate_freight_carrier(freight_carrier_record);

Line 6957: asn_debug.put_line('Validating Freight Carrier');

6953: freight_carrier_record.error_record.error_status := 'S';
6954: freight_carrier_record.error_record.error_message := NULL;
6955:
6956: IF (g_asn_debug = 'Y') THEN
6957: asn_debug.put_line('Validating Freight Carrier');
6958: END IF;
6959:
6960: rcv_transactions_interface_sv1.validate_freight_carrier(freight_carrier_record);
6961: x_cascaded_table(n).error_status := freight_carrier_record.error_record.error_status;

Line 6988: IF (g_asn_debug = 'Y') THEN

6984: po_lookup_code_record.lookup_type := 'RCV DESTINATION TYPE';
6985: po_lookup_code_record.error_record.error_status := 'S';
6986: po_lookup_code_record.error_record.error_message := NULL;
6987:
6988: IF (g_asn_debug = 'Y') THEN
6989: asn_debug.put_line('Validating Destination Type Code');
6990: END IF;
6991:
6992: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);

Line 6989: asn_debug.put_line('Validating Destination Type Code');

6985: po_lookup_code_record.error_record.error_status := 'S';
6986: po_lookup_code_record.error_record.error_message := NULL;
6987:
6988: IF (g_asn_debug = 'Y') THEN
6989: asn_debug.put_line('Validating Destination Type Code');
6990: END IF;
6991:
6992: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);
6993: x_cascaded_table(n).error_status := po_lookup_code_record.error_record.error_status;

Line 7022: IF (g_asn_debug = 'Y') THEN

7018: location_record.transaction_date := x_cascaded_table(n).transaction_date;
7019: location_record.error_record.error_status := 'S';
7020: location_record.error_record.error_message := NULL;
7021:
7022: IF (g_asn_debug = 'Y') THEN
7023: asn_debug.put_line('Validating Ship To Location');
7024: END IF;
7025:
7026: rcv_transactions_interface_sv1.validate_location(location_record);

Line 7023: asn_debug.put_line('Validating Ship To Location');

7019: location_record.error_record.error_status := 'S';
7020: location_record.error_record.error_message := NULL;
7021:
7022: IF (g_asn_debug = 'Y') THEN
7023: asn_debug.put_line('Validating Ship To Location');
7024: END IF;
7025:
7026: rcv_transactions_interface_sv1.validate_location(location_record);
7027: x_cascaded_table(n).error_status := location_record.error_record.error_status;

Line 7055: IF (g_asn_debug = 'Y') THEN

7051: employee_record.transaction_date := x_cascaded_table(n).transaction_date;
7052: employee_record.error_record.error_status := 'S';
7053: employee_record.error_record.error_message := NULL;
7054:
7055: IF (g_asn_debug = 'Y') THEN
7056: asn_debug.put_line('Validating Deliver to Person');
7057: END IF;
7058:
7059: rcv_transactions_interface_sv1.validate_employee(employee_record);

Line 7056: asn_debug.put_line('Validating Deliver to Person');

7052: employee_record.error_record.error_status := 'S';
7053: employee_record.error_record.error_message := NULL;
7054:
7055: IF (g_asn_debug = 'Y') THEN
7056: asn_debug.put_line('Validating Deliver to Person');
7057: END IF;
7058:
7059: rcv_transactions_interface_sv1.validate_employee(employee_record);
7060:

Line 7072: IF (g_asn_debug = 'Y') THEN

7068: deliver_to_person_id in case of validation failure for deliver_to_person_id
7069: in order to synch the behaviour of ROI as to that of forms.*/
7070:
7071: IF employee_record.error_record.error_status <> 'S' THEN--Start of bug#6375015 fix
7072: IF (g_asn_debug = 'Y') THEN
7073: asn_debug.put_line('validate_employee returned error, setting deliver_to_person_id null');
7074: END IF;
7075: --Validation failure for the deliver_to_person_id
7076: x_cascaded_table(n).deliver_to_person_id := null;

Line 7073: asn_debug.put_line('validate_employee returned error, setting deliver_to_person_id null');

7069: in order to synch the behaviour of ROI as to that of forms.*/
7070:
7071: IF employee_record.error_record.error_status <> 'S' THEN--Start of bug#6375015 fix
7072: IF (g_asn_debug = 'Y') THEN
7073: asn_debug.put_line('validate_employee returned error, setting deliver_to_person_id null');
7074: END IF;
7075: --Validation failure for the deliver_to_person_id
7076: x_cascaded_table(n).deliver_to_person_id := null;
7077: x_cascaded_table(n).deliver_to_person_name := null;

Line 7079: IF (g_asn_debug = 'Y') THEN

7075: --Validation failure for the deliver_to_person_id
7076: x_cascaded_table(n).deliver_to_person_id := null;
7077: x_cascaded_table(n).deliver_to_person_name := null;
7078: ELSE
7079: IF (g_asn_debug = 'Y') THEN
7080: asn_debug.put_line('validate_employee returned success');
7081: END IF;
7082: END IF;--End of bug#6375015 fix
7083:

Line 7080: asn_debug.put_line('validate_employee returned success');

7076: x_cascaded_table(n).deliver_to_person_id := null;
7077: x_cascaded_table(n).deliver_to_person_name := null;
7078: ELSE
7079: IF (g_asn_debug = 'Y') THEN
7080: asn_debug.put_line('validate_employee returned success');
7081: END IF;
7082: END IF;--End of bug#6375015 fix
7083:
7084: /* WDK there was a second validation for

Line 7103: IF (g_asn_debug = 'Y') THEN

7099:
7100: /*
7101: ** Validate routing record bug 639750
7102: */
7103: IF (g_asn_debug = 'Y') THEN
7104: asn_debug.put_line('Validating routing_header_id');
7105: END IF;
7106:
7107: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN

Line 7104: asn_debug.put_line('Validating routing_header_id');

7100: /*
7101: ** Validate routing record bug 639750
7102: */
7103: IF (g_asn_debug = 'Y') THEN
7104: asn_debug.put_line('Validating routing_header_id');
7105: END IF;
7106:
7107: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN
7108: RETURN;

Line 7124: asn_debug.put_line('We cannot do inspection on this record .');

7120:
7121: IF (x_cascaded_table(n).transaction_type IN('ACCEPT', 'REJECT')) THEN --{
7122: IF ( (x_cascaded_table(n).routing_header_id) IN(3)
7123: AND NVL(rcv_setup_s.get_override_routing, 'N') = 'N') THEN --{
7124: asn_debug.put_line('We cannot do inspection on this record .');
7125: rcv_error_pkg.set_error_message('RCV_INSPECT_ROUTING_FAILED');
7126: RAISE e_validation_error;
7127: END IF; --}
7128: END IF; --}

Line 7173: IF (g_asn_debug = 'Y') THEN

7169: location_record.transaction_date := x_cascaded_table(n).transaction_date;
7170: location_record.error_record.error_status := 'S';
7171: location_record.error_record.error_message := NULL;
7172:
7173: IF (g_asn_debug = 'Y') THEN
7174: asn_debug.put_line('Validating Deliver To Location');
7175: END IF;
7176:
7177: rcv_transactions_interface_sv1.validate_location(location_record);

Line 7174: asn_debug.put_line('Validating Deliver To Location');

7170: location_record.error_record.error_status := 'S';
7171: location_record.error_record.error_message := NULL;
7172:
7173: IF (g_asn_debug = 'Y') THEN
7174: asn_debug.put_line('Validating Deliver To Location');
7175: END IF;
7176:
7177: rcv_transactions_interface_sv1.validate_location(location_record);
7178: x_cascaded_table(n).error_status := location_record.error_record.error_status;

Line 7210: IF (g_asn_debug = 'Y') THEN

7206:
7207: /* We can derive from_subinventory for Return transactions and derive
7208: * to_subinventory for receive, transfer and transfer transactions.
7209: */
7210: IF (g_asn_debug = 'Y') THEN
7211: asn_debug.put_line('Validating Subinventory ');
7212: END IF;
7213:
7214: /* bug 3367485: for dropship deliver, skip subinventory validation as

Line 7211: asn_debug.put_line('Validating Subinventory ');

7207: /* We can derive from_subinventory for Return transactions and derive
7208: * to_subinventory for receive, transfer and transfer transactions.
7209: */
7210: IF (g_asn_debug = 'Y') THEN
7211: asn_debug.put_line('Validating Subinventory ');
7212: END IF;
7213:
7214: /* bug 3367485: for dropship deliver, skip subinventory validation as
7215: * Inventory has relaxed the subinventory validation for logical trxns

Line 7220: IF (g_asn_debug = 'Y') THEN

7216: */
7217: /* Commented this out as we will not support ASN auto deliver while
7218: * subinventory is null. See updates on Bug 3367485 */
7219: /* IF (x_drop_ship_flag = 'Y') THEN
7220: IF (g_asn_debug = 'Y') THEN
7221: asn_debug.put_line('Skip subinventory validation for dropship deliver ');
7222: END IF;
7223:
7224: RETURN;

Line 7221: asn_debug.put_line('Skip subinventory validation for dropship deliver ');

7217: /* Commented this out as we will not support ASN auto deliver while
7218: * subinventory is null. See updates on Bug 3367485 */
7219: /* IF (x_drop_ship_flag = 'Y') THEN
7220: IF (g_asn_debug = 'Y') THEN
7221: asn_debug.put_line('Skip subinventory validation for dropship deliver ');
7222: END IF;
7223:
7224: RETURN;
7225: END IF; */

Line 7230: IF (g_asn_debug = 'Y') THEN

7226:
7227: IF ( ( x_cascaded_table(n).transaction_type = 'DELIVER'
7228: OR x_cascaded_table(n).auto_transact_code = 'DELIVER')
7229: AND x_cascaded_table(n).destination_type_code <> 'INVENTORY') THEN --{
7230: IF (g_asn_debug = 'Y') THEN
7231: asn_debug.put_line('No need to validate Subinventory if the destination_type is Expense. So return');
7232: END IF;
7233:
7234: RETURN;

Line 7231: asn_debug.put_line('No need to validate Subinventory if the destination_type is Expense. So return');

7227: IF ( ( x_cascaded_table(n).transaction_type = 'DELIVER'
7228: OR x_cascaded_table(n).auto_transact_code = 'DELIVER')
7229: AND x_cascaded_table(n).destination_type_code <> 'INVENTORY') THEN --{
7230: IF (g_asn_debug = 'Y') THEN
7231: asn_debug.put_line('No need to validate Subinventory if the destination_type is Expense. So return');
7232: END IF;
7233:
7234: RETURN;
7235: END IF;

Line 7249: IF (g_asn_debug = 'Y') THEN

7245: ** Validate the subinventory
7246: */
7247: x_progress := '010';
7248:
7249: IF (g_asn_debug = 'Y') THEN
7250: asn_debug.put_line('subinventory ' || x_cascaded_table(n).subinventory);
7251: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
7252: asn_debug.put_line('transaction_date ' || x_cascaded_table(n).transaction_date);
7253: asn_debug.put_line('item_id ' || x_cascaded_table(n).item_id);

Line 7250: asn_debug.put_line('subinventory ' || x_cascaded_table(n).subinventory);

7246: */
7247: x_progress := '010';
7248:
7249: IF (g_asn_debug = 'Y') THEN
7250: asn_debug.put_line('subinventory ' || x_cascaded_table(n).subinventory);
7251: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
7252: asn_debug.put_line('transaction_date ' || x_cascaded_table(n).transaction_date);
7253: asn_debug.put_line('item_id ' || x_cascaded_table(n).item_id);
7254: END IF;

Line 7251: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);

7247: x_progress := '010';
7248:
7249: IF (g_asn_debug = 'Y') THEN
7250: asn_debug.put_line('subinventory ' || x_cascaded_table(n).subinventory);
7251: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
7252: asn_debug.put_line('transaction_date ' || x_cascaded_table(n).transaction_date);
7253: asn_debug.put_line('item_id ' || x_cascaded_table(n).item_id);
7254: END IF;
7255:

Line 7252: asn_debug.put_line('transaction_date ' || x_cascaded_table(n).transaction_date);

7248:
7249: IF (g_asn_debug = 'Y') THEN
7250: asn_debug.put_line('subinventory ' || x_cascaded_table(n).subinventory);
7251: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
7252: asn_debug.put_line('transaction_date ' || x_cascaded_table(n).transaction_date);
7253: asn_debug.put_line('item_id ' || x_cascaded_table(n).item_id);
7254: END IF;
7255:
7256: SELECT NVL(MAX(secondary_inventory_name), 'notfound')

Line 7253: asn_debug.put_line('item_id ' || x_cascaded_table(n).item_id);

7249: IF (g_asn_debug = 'Y') THEN
7250: asn_debug.put_line('subinventory ' || x_cascaded_table(n).subinventory);
7251: asn_debug.put_line('to_organization_id ' || x_cascaded_table(n).to_organization_id);
7252: asn_debug.put_line('transaction_date ' || x_cascaded_table(n).transaction_date);
7253: asn_debug.put_line('item_id ' || x_cascaded_table(n).item_id);
7254: END IF;
7255:
7256: SELECT NVL(MAX(secondary_inventory_name), 'notfound')
7257: INTO x_subinventory

Line 7276: IF (g_asn_debug = 'Y') THEN

7272: )
7273: );
7274:
7275: IF (x_subinventory = 'notfound') THEN
7276: IF (g_asn_debug = 'Y') THEN
7277: asn_debug.put_line('subinventory not found. error ');
7278: END IF;
7279:
7280: rcv_error_pkg.set_error_message('RCV_DEST_SUB_INVALID');

Line 7277: asn_debug.put_line('subinventory not found. error ');

7273: );
7274:
7275: IF (x_subinventory = 'notfound') THEN
7276: IF (g_asn_debug = 'Y') THEN
7277: asn_debug.put_line('subinventory not found. error ');
7278: END IF;
7279:
7280: rcv_error_pkg.set_error_message('RCV_DEST_SUB_INVALID');
7281: RAISE e_validation_error;

Line 7340: IF (g_asn_debug = 'Y') THEN

7336: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN
7337: RETURN;
7338: END IF;
7339:
7340: IF (g_asn_debug = 'Y') THEN
7341: asn_debug.put_line('Trx Type = ' || x_cascaded_table(n).transaction_type || 'Auto Trx Code = ' || x_cascaded_table(n).auto_transact_code);
7342: END IF;
7343:
7344: IF ( x_cascaded_table(n).transaction_type = 'DELIVER'

Line 7341: asn_debug.put_line('Trx Type = ' || x_cascaded_table(n).transaction_type || 'Auto Trx Code = ' || x_cascaded_table(n).auto_transact_code);

7337: RETURN;
7338: END IF;
7339:
7340: IF (g_asn_debug = 'Y') THEN
7341: asn_debug.put_line('Trx Type = ' || x_cascaded_table(n).transaction_type || 'Auto Trx Code = ' || x_cascaded_table(n).auto_transact_code);
7342: END IF;
7343:
7344: IF ( x_cascaded_table(n).transaction_type = 'DELIVER'
7345: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN

Line 7346: IF (g_asn_debug = 'Y') THEN

7342: END IF;
7343:
7344: IF ( x_cascaded_table(n).transaction_type = 'DELIVER'
7345: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN
7346: IF (g_asn_debug = 'Y') THEN
7347: asn_debug.put_line('Valid Loc - Destination Type Code = ' || x_cascaded_table(n).destination_type_code);
7348: END IF;
7349:
7350: IF (x_cascaded_table(n).destination_type_code = 'INVENTORY') THEN

Line 7347: asn_debug.put_line('Valid Loc - Destination Type Code = ' || x_cascaded_table(n).destination_type_code);

7343:
7344: IF ( x_cascaded_table(n).transaction_type = 'DELIVER'
7345: OR NVL(x_cascaded_table(n).auto_transact_code, 'RECEIVE') = 'DELIVER') THEN
7346: IF (g_asn_debug = 'Y') THEN
7347: asn_debug.put_line('Valid Loc - Destination Type Code = ' || x_cascaded_table(n).destination_type_code);
7348: END IF;
7349:
7350: IF (x_cascaded_table(n).destination_type_code = 'INVENTORY') THEN
7351: locator_record.locator_id := x_cascaded_table(n).locator_id;

Line 7358: IF (g_asn_debug = 'Y') THEN

7354: locator_record.destination_type_code := x_cascaded_table(n).destination_type_code;
7355: locator_record.item_id := x_cascaded_table(n).item_id;
7356: locator_record.transaction_date := x_cascaded_table(n).transaction_date;
7357:
7358: IF (g_asn_debug = 'Y') THEN
7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));
7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);
7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);
7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);

Line 7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));

7355: locator_record.item_id := x_cascaded_table(n).item_id;
7356: locator_record.transaction_date := x_cascaded_table(n).transaction_date;
7357:
7358: IF (g_asn_debug = 'Y') THEN
7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));
7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);
7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);
7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);
7363: asn_debug.put_line('Item Id = ' || locator_record.item_id);

Line 7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);

7356: locator_record.transaction_date := x_cascaded_table(n).transaction_date;
7357:
7358: IF (g_asn_debug = 'Y') THEN
7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));
7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);
7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);
7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);
7363: asn_debug.put_line('Item Id = ' || locator_record.item_id);
7364: END IF;

Line 7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);

7357:
7358: IF (g_asn_debug = 'Y') THEN
7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));
7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);
7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);
7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);
7363: asn_debug.put_line('Item Id = ' || locator_record.item_id);
7364: END IF;
7365:

Line 7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);

7358: IF (g_asn_debug = 'Y') THEN
7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));
7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);
7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);
7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);
7363: asn_debug.put_line('Item Id = ' || locator_record.item_id);
7364: END IF;
7365:
7366: locator_record.error_record.error_status := 'S';

Line 7363: asn_debug.put_line('Item Id = ' || locator_record.item_id);

7359: asn_debug.put_line('Locator = ' || TO_CHAR(locator_record.locator_id));
7360: asn_debug.put_line('Subinventory = ' || locator_record.subinventory);
7361: asn_debug.put_line('To Org = ' || locator_record.to_organization_id);
7362: asn_debug.put_line('Dest Type = ' || locator_record.destination_type_code);
7363: asn_debug.put_line('Item Id = ' || locator_record.item_id);
7364: END IF;
7365:
7366: locator_record.error_record.error_status := 'S';
7367: locator_record.error_record.error_message := NULL;

Line 7369: IF (g_asn_debug = 'Y') THEN

7365:
7366: locator_record.error_record.error_status := 'S';
7367: locator_record.error_record.error_message := NULL;
7368:
7369: IF (g_asn_debug = 'Y') THEN
7370: asn_debug.put_line('Validating Locator');
7371: END IF;
7372:
7373: rcv_transactions_interface_sv1.validate_locator(locator_record);

Line 7370: asn_debug.put_line('Validating Locator');

7366: locator_record.error_record.error_status := 'S';
7367: locator_record.error_record.error_message := NULL;
7368:
7369: IF (g_asn_debug = 'Y') THEN
7370: asn_debug.put_line('Validating Locator');
7371: END IF;
7372:
7373: rcv_transactions_interface_sv1.validate_locator(locator_record);
7374: x_cascaded_table(n).error_status := locator_record.error_record.error_status;

Line 7386: asn_debug.put_line('Locator_id is nulled out');

7382: */
7383:
7384: if locator_record.locator_id is null then
7385:
7386: asn_debug.put_line('Locator_id is nulled out');
7387: x_cascaded_table(n).locator_id := locator_record.locator_id;
7388: end if;
7389:
7390:

Line 7391: IF (g_asn_debug = 'Y') THEN

7387: x_cascaded_table(n).locator_id := locator_record.locator_id;
7388: end if;
7389:
7390:
7391: IF (g_asn_debug = 'Y') THEN
7392: asn_debug.put_line('Loc Error Status = ' || locator_record.error_record.error_status);
7393: asn_debug.put_line('Loc Error Msg = ' || locator_record.error_record.error_message);
7394: asn_debug.put_line('Locator_id = ' || locator_record.locator_id);
7395: END IF;

Line 7392: asn_debug.put_line('Loc Error Status = ' || locator_record.error_record.error_status);

7388: end if;
7389:
7390:
7391: IF (g_asn_debug = 'Y') THEN
7392: asn_debug.put_line('Loc Error Status = ' || locator_record.error_record.error_status);
7393: asn_debug.put_line('Loc Error Msg = ' || locator_record.error_record.error_message);
7394: asn_debug.put_line('Locator_id = ' || locator_record.locator_id);
7395: END IF;
7396:

Line 7393: asn_debug.put_line('Loc Error Msg = ' || locator_record.error_record.error_message);

7389:
7390:
7391: IF (g_asn_debug = 'Y') THEN
7392: asn_debug.put_line('Loc Error Status = ' || locator_record.error_record.error_status);
7393: asn_debug.put_line('Loc Error Msg = ' || locator_record.error_record.error_message);
7394: asn_debug.put_line('Locator_id = ' || locator_record.locator_id);
7395: END IF;
7396:
7397: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,

Line 7394: asn_debug.put_line('Locator_id = ' || locator_record.locator_id);

7390:
7391: IF (g_asn_debug = 'Y') THEN
7392: asn_debug.put_line('Loc Error Status = ' || locator_record.error_record.error_status);
7393: asn_debug.put_line('Loc Error Msg = ' || locator_record.error_record.error_message);
7394: asn_debug.put_line('Locator_id = ' || locator_record.locator_id);
7395: END IF;
7396:
7397: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,
7398: 'LOCATOR_ID',

Line 7404: IF (g_asn_debug = 'Y') THEN

7400: );
7401: ELSE --}{
7402: x_cascaded_table(n).locator_id := NULL;
7403: x_cascaded_table(n).LOCATOR := NULL;
7404: IF (g_asn_debug = 'Y') THEN
7405: asn_debug.put_line('locator_id ' || x_cascaded_table(n).locator_id);
7406: asn_debug.put_line('locator ' || x_cascaded_table(n).locator);
7407: END IF;
7408: END IF; --}

Line 7405: asn_debug.put_line('locator_id ' || x_cascaded_table(n).locator_id);

7401: ELSE --}{
7402: x_cascaded_table(n).locator_id := NULL;
7403: x_cascaded_table(n).LOCATOR := NULL;
7404: IF (g_asn_debug = 'Y') THEN
7405: asn_debug.put_line('locator_id ' || x_cascaded_table(n).locator_id);
7406: asn_debug.put_line('locator ' || x_cascaded_table(n).locator);
7407: END IF;
7408: END IF; --}
7409: END IF;

Line 7406: asn_debug.put_line('locator ' || x_cascaded_table(n).locator);

7402: x_cascaded_table(n).locator_id := NULL;
7403: x_cascaded_table(n).LOCATOR := NULL;
7404: IF (g_asn_debug = 'Y') THEN
7405: asn_debug.put_line('locator_id ' || x_cascaded_table(n).locator_id);
7406: asn_debug.put_line('locator ' || x_cascaded_table(n).locator);
7407: END IF;
7408: END IF; --}
7409: END IF;
7410: END validate_locator;

Line 7430: IF (g_asn_debug = 'Y') THEN

7426: tax_name_record.tax_name := x_cascaded_table(n).tax_name;
7427: tax_name_record.error_record.error_status := 'S';
7428: tax_name_record.error_record.error_message := NULL;
7429:
7430: IF (g_asn_debug = 'Y') THEN
7431: asn_debug.put_line('Validating Tax Code');
7432: END IF;
7433:
7434: rcv_transactions_interface_sv1.validate_tax_code(tax_name_record);

Line 7431: asn_debug.put_line('Validating Tax Code');

7427: tax_name_record.error_record.error_status := 'S';
7428: tax_name_record.error_record.error_message := NULL;
7429:
7430: IF (g_asn_debug = 'Y') THEN
7431: asn_debug.put_line('Validating Tax Code');
7432: END IF;
7433:
7434: rcv_transactions_interface_sv1.validate_tax_code(tax_name_record);
7435: x_cascaded_table(n).error_status := tax_name_record.error_record.error_status;

Line 7461: IF (g_asn_debug = 'Y') THEN

7457: country_of_origin_record.country_of_origin_code := x_cascaded_table(n).country_of_origin_code;
7458: country_of_origin_record.error_record.error_status := 'S';
7459: country_of_origin_record.error_record.error_message := NULL;
7460:
7461: IF (g_asn_debug = 'Y') THEN
7462: asn_debug.put_line('Validating Country of Origin Code');
7463: END IF;
7464:
7465: rcv_transactions_interface_sv1.validate_country_of_origin(country_of_origin_record);

Line 7462: asn_debug.put_line('Validating Country of Origin Code');

7458: country_of_origin_record.error_record.error_status := 'S';
7459: country_of_origin_record.error_record.error_message := NULL;
7460:
7461: IF (g_asn_debug = 'Y') THEN
7462: asn_debug.put_line('Validating Country of Origin Code');
7463: END IF;
7464:
7465: rcv_transactions_interface_sv1.validate_country_of_origin(country_of_origin_record);
7466: x_cascaded_table(n).error_status := country_of_origin_record.error_record.error_status;

Line 7493: IF (g_asn_debug = 'Y') THEN

7489: asl_record.to_organization_id := x_cascaded_table(n).to_organization_id;
7490: asl_record.error_record.error_status := 'S';
7491: asl_record.error_record.error_message := NULL;
7492:
7493: IF (g_asn_debug = 'Y') THEN
7494: asn_debug.put_line('Validating ASL');
7495: END IF;
7496:
7497: rcv_transactions_interface_sv1.validate_asl(asl_record);

Line 7494: asn_debug.put_line('Validating ASL');

7490: asl_record.error_record.error_status := 'S';
7491: asl_record.error_record.error_message := NULL;
7492:
7493: IF (g_asn_debug = 'Y') THEN
7494: asn_debug.put_line('Validating ASL');
7495: END IF;
7496:
7497: rcv_transactions_interface_sv1.validate_asl(asl_record);
7498: x_cascaded_table(n).error_status := asl_record.error_record.error_status;

Line 7530: IF (g_asn_debug = 'Y') THEN

7526: cum_quantity_record.transaction_date := x_cascaded_table(n).transaction_date;
7527: cum_quantity_record.error_record.error_status := 'S';
7528: cum_quantity_record.error_record.error_message := NULL;
7529:
7530: IF (g_asn_debug = 'Y') THEN
7531: asn_debug.put_line('Validating Cum Qty Shipped');
7532: END IF;
7533:
7534: rcv_transactions_interface_sv1.validate_cum_quantity_shipped(cum_quantity_record);

Line 7531: asn_debug.put_line('Validating Cum Qty Shipped');

7527: cum_quantity_record.error_record.error_status := 'S';
7528: cum_quantity_record.error_record.error_message := NULL;
7529:
7530: IF (g_asn_debug = 'Y') THEN
7531: asn_debug.put_line('Validating Cum Qty Shipped');
7532: END IF;
7533:
7534: rcv_transactions_interface_sv1.validate_cum_quantity_shipped(cum_quantity_record);
7535: x_cascaded_table(n).error_status := cum_quantity_record.error_record.error_status;

Line 7561: IF (g_asn_debug = 'Y') THEN

7557: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN
7558: RETURN;
7559: END IF;
7560:
7561: IF (g_asn_debug = 'Y') THEN
7562: asn_debug.put_line('Validating ref integrity');
7563: END IF;
7564:
7565: ref_integrity_record.to_organization_id := x_cascaded_table(n).to_organization_id;

Line 7562: asn_debug.put_line('Validating ref integrity');

7558: RETURN;
7559: END IF;
7560:
7561: IF (g_asn_debug = 'Y') THEN
7562: asn_debug.put_line('Validating ref integrity');
7563: END IF;
7564:
7565: ref_integrity_record.to_organization_id := x_cascaded_table(n).to_organization_id;
7566: ref_integrity_record.po_line_location_id := x_cascaded_table(n).po_line_location_id;

Line 7594: IF (g_asn_debug = 'Y') THEN

7590: */
7591: IF (x_cascaded_table(n).transaction_type = 'RECEIVE') THEN
7592: ref_integrity_record.po_revision_num := x_cascaded_table(n).po_revision_num;
7593:
7594: IF (g_asn_debug = 'Y') THEN
7595: asn_debug.put_line('Trx_type RECEIVE and revision num is ' || ref_integrity_record.po_revision_num);
7596: END IF;
7597: ELSE
7598: ref_integrity_record.po_revision_num := NULL;

Line 7595: asn_debug.put_line('Trx_type RECEIVE and revision num is ' || ref_integrity_record.po_revision_num);

7591: IF (x_cascaded_table(n).transaction_type = 'RECEIVE') THEN
7592: ref_integrity_record.po_revision_num := x_cascaded_table(n).po_revision_num;
7593:
7594: IF (g_asn_debug = 'Y') THEN
7595: asn_debug.put_line('Trx_type RECEIVE and revision num is ' || ref_integrity_record.po_revision_num);
7596: END IF;
7597: ELSE
7598: ref_integrity_record.po_revision_num := NULL;
7599:

Line 7600: IF (g_asn_debug = 'Y') THEN

7596: END IF;
7597: ELSE
7598: ref_integrity_record.po_revision_num := NULL;
7599:
7600: IF (g_asn_debug = 'Y') THEN
7601: asn_debug.put_line('Trx_type is not RECEIVE and revision num is ' || ref_integrity_record.po_revision_num);
7602: END IF;
7603: END IF;
7604:

Line 7601: asn_debug.put_line('Trx_type is not RECEIVE and revision num is ' || ref_integrity_record.po_revision_num);

7597: ELSE
7598: ref_integrity_record.po_revision_num := NULL;
7599:
7600: IF (g_asn_debug = 'Y') THEN
7601: asn_debug.put_line('Trx_type is not RECEIVE and revision num is ' || ref_integrity_record.po_revision_num);
7602: END IF;
7603: END IF;
7604:
7605: /* End of 3210821. */

Line 7612: IF (g_asn_debug = 'Y') THEN

7608: --replacing call with a validate_ref_integ call with the method in thid package
7609: -- rcv_transactions_interface_sv1.validate_ref_integ (ref_integrity_record,X_header_record);
7610: validate_ref_integ(ref_integrity_record, x_header_record);
7611:
7612: IF (g_asn_debug = 'Y') THEN
7613: asn_debug.put_line('After Validating Ref Integ: ' || ref_integrity_record.error_record.error_status);
7614: END IF;
7615:
7616: x_cascaded_table(n).error_status := ref_integrity_record.error_record.error_status;

Line 7613: asn_debug.put_line('After Validating Ref Integ: ' || ref_integrity_record.error_record.error_status);

7609: -- rcv_transactions_interface_sv1.validate_ref_integ (ref_integrity_record,X_header_record);
7610: validate_ref_integ(ref_integrity_record, x_header_record);
7611:
7612: IF (g_asn_debug = 'Y') THEN
7613: asn_debug.put_line('After Validating Ref Integ: ' || ref_integrity_record.error_record.error_status);
7614: END IF;
7615:
7616: x_cascaded_table(n).error_status := ref_integrity_record.error_record.error_status;
7617: x_cascaded_table(n).error_message := ref_integrity_record.error_record.error_message;

Line 7621: IF (g_asn_debug = 'Y') THEN

7617: x_cascaded_table(n).error_message := ref_integrity_record.error_record.error_message;
7618: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'TRANSACTIONS_INTERFACE_ID');
7619:
7620: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN --{
7621: IF (g_asn_debug = 'Y') THEN
7622: asn_debug.put_line('job_id ' || x_cascaded_table(n).job_id);
7623: asn_debug.put_line('item_description ' || x_cascaded_table(n).item_description);
7624: asn_debug.put_line('category_id ' || x_cascaded_table(n).category_id);
7625: END IF;

Line 7622: asn_debug.put_line('job_id ' || x_cascaded_table(n).job_id);

7618: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'TRANSACTIONS_INTERFACE_ID');
7619:
7620: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN --{
7621: IF (g_asn_debug = 'Y') THEN
7622: asn_debug.put_line('job_id ' || x_cascaded_table(n).job_id);
7623: asn_debug.put_line('item_description ' || x_cascaded_table(n).item_description);
7624: asn_debug.put_line('category_id ' || x_cascaded_table(n).category_id);
7625: END IF;
7626:

Line 7623: asn_debug.put_line('item_description ' || x_cascaded_table(n).item_description);

7619:
7620: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN --{
7621: IF (g_asn_debug = 'Y') THEN
7622: asn_debug.put_line('job_id ' || x_cascaded_table(n).job_id);
7623: asn_debug.put_line('item_description ' || x_cascaded_table(n).item_description);
7624: asn_debug.put_line('category_id ' || x_cascaded_table(n).category_id);
7625: END IF;
7626:
7627: IF (x_cascaded_table(n).job_id IS NOT NULL) THEN

Line 7624: asn_debug.put_line('category_id ' || x_cascaded_table(n).category_id);

7620: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN --{
7621: IF (g_asn_debug = 'Y') THEN
7622: asn_debug.put_line('job_id ' || x_cascaded_table(n).job_id);
7623: asn_debug.put_line('item_description ' || x_cascaded_table(n).item_description);
7624: asn_debug.put_line('category_id ' || x_cascaded_table(n).category_id);
7625: END IF;
7626:
7627: IF (x_cascaded_table(n).job_id IS NOT NULL) THEN
7628: IF (g_asn_debug = 'Y') THEN

Line 7628: IF (g_asn_debug = 'Y') THEN

7624: asn_debug.put_line('category_id ' || x_cascaded_table(n).category_id);
7625: END IF;
7626:
7627: IF (x_cascaded_table(n).job_id IS NOT NULL) THEN
7628: IF (g_asn_debug = 'Y') THEN
7629: asn_debug.put_line('Before select l_job_id ' || l_job_id);
7630: END IF;
7631:
7632: SELECT NVL(MAX(job_id), 0)

Line 7629: asn_debug.put_line('Before select l_job_id ' || l_job_id);

7625: END IF;
7626:
7627: IF (x_cascaded_table(n).job_id IS NOT NULL) THEN
7628: IF (g_asn_debug = 'Y') THEN
7629: asn_debug.put_line('Before select l_job_id ' || l_job_id);
7630: END IF;
7631:
7632: SELECT NVL(MAX(job_id), 0)
7633: INTO l_job_id

Line 7638: IF (g_asn_debug = 'Y') THEN

7634: FROM po_lines
7635: WHERE po_line_id = x_cascaded_table(n).po_line_id
7636: AND job_id = x_cascaded_table(n).job_id;
7637:
7638: IF (g_asn_debug = 'Y') THEN
7639: asn_debug.put_line('After select l_job_id ' || l_job_id);
7640: END IF;
7641:
7642: IF (l_job_id = 0) THEN

Line 7639: asn_debug.put_line('After select l_job_id ' || l_job_id);

7635: WHERE po_line_id = x_cascaded_table(n).po_line_id
7636: AND job_id = x_cascaded_table(n).job_id;
7637:
7638: IF (g_asn_debug = 'Y') THEN
7639: asn_debug.put_line('After select l_job_id ' || l_job_id);
7640: END IF;
7641:
7642: IF (l_job_id = 0) THEN
7643: rcv_error_pkg.set_error_message('RCV_NOT_PO_JOB_ID');

Line 7696: IF (g_asn_debug = 'Y') THEN

7692: END;
7693:
7694: End if; --}
7695:
7696: IF (g_asn_debug = 'Y') THEN
7697: asn_debug.put_line('After select l_item_description ' || l_item_description);
7698: END IF;
7699:
7700: IF (l_item_description = 'NO DATA') THEN

Line 7697: asn_debug.put_line('After select l_item_description ' || l_item_description);

7693:
7694: End if; --}
7695:
7696: IF (g_asn_debug = 'Y') THEN
7697: asn_debug.put_line('After select l_item_description ' || l_item_description);
7698: END IF;
7699:
7700: IF (l_item_description = 'NO DATA') THEN
7701: rcv_error_pkg.set_error_message('RCV_NOT_PO_ITEM_DESC');

Line 7713: IF (g_asn_debug = 'Y') THEN

7709: FROM po_lines
7710: WHERE po_line_id = x_cascaded_table(n).po_line_id
7711: AND category_id = x_cascaded_table(n).category_id;
7712:
7713: IF (g_asn_debug = 'Y') THEN
7714: asn_debug.put_line('After select l_category_id ' || l_category_id);
7715: END IF;
7716:
7717: IF (l_category_id = 0) THEN

Line 7714: asn_debug.put_line('After select l_category_id ' || l_category_id);

7710: WHERE po_line_id = x_cascaded_table(n).po_line_id
7711: AND category_id = x_cascaded_table(n).category_id;
7712:
7713: IF (g_asn_debug = 'Y') THEN
7714: asn_debug.put_line('After select l_category_id ' || l_category_id);
7715: END IF;
7716:
7717: IF (l_category_id = 0) THEN
7718: rcv_error_pkg.set_error_message('RCV_NOT_PO_CATEGORY');

Line 7723: IF (g_asn_debug = 'Y') THEN

7719: RAISE e_validation_error;
7720: END IF;
7721: END IF;
7722:
7723: IF (g_asn_debug = 'Y') THEN
7724: asn_debug.put_line('l_job_id ' || l_job_id);
7725: asn_debug.put_line('l_item_description ' || l_item_description);
7726: asn_debug.put_line('l_category_id ' || l_category_id);
7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);

Line 7724: asn_debug.put_line('l_job_id ' || l_job_id);

7720: END IF;
7721: END IF;
7722:
7723: IF (g_asn_debug = 'Y') THEN
7724: asn_debug.put_line('l_job_id ' || l_job_id);
7725: asn_debug.put_line('l_item_description ' || l_item_description);
7726: asn_debug.put_line('l_category_id ' || l_category_id);
7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
7728: END IF;

Line 7725: asn_debug.put_line('l_item_description ' || l_item_description);

7721: END IF;
7722:
7723: IF (g_asn_debug = 'Y') THEN
7724: asn_debug.put_line('l_job_id ' || l_job_id);
7725: asn_debug.put_line('l_item_description ' || l_item_description);
7726: asn_debug.put_line('l_category_id ' || l_category_id);
7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
7728: END IF;
7729: END IF; --}

Line 7726: asn_debug.put_line('l_category_id ' || l_category_id);

7722:
7723: IF (g_asn_debug = 'Y') THEN
7724: asn_debug.put_line('l_job_id ' || l_job_id);
7725: asn_debug.put_line('l_item_description ' || l_item_description);
7726: asn_debug.put_line('l_category_id ' || l_category_id);
7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
7728: END IF;
7729: END IF; --}
7730:

Line 7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);

7723: IF (g_asn_debug = 'Y') THEN
7724: asn_debug.put_line('l_job_id ' || l_job_id);
7725: asn_debug.put_line('l_item_description ' || l_item_description);
7726: asn_debug.put_line('l_category_id ' || l_category_id);
7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
7728: END IF;
7729: END IF; --}
7730:
7731: IF (g_asn_debug = 'Y') THEN

Line 7731: IF (g_asn_debug = 'Y') THEN

7727: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
7728: END IF;
7729: END IF; --}
7730:
7731: IF (g_asn_debug = 'Y') THEN
7732: asn_debug.put_line('Leave validate_ref_integrity');
7733: END IF;
7734: EXCEPTION
7735: WHEN e_validation_error THEN

Line 7732: asn_debug.put_line('Leave validate_ref_integrity');

7728: END IF;
7729: END IF; --}
7730:
7731: IF (g_asn_debug = 'Y') THEN
7732: asn_debug.put_line('Leave validate_ref_integrity');
7733: END IF;
7734: EXCEPTION
7735: WHEN e_validation_error THEN
7736: x_cascaded_table(n).error_status := x_error_status;

Line 7801: IF (g_asn_debug = 'Y') THEN

7797: AND inventory_item_id(+) = x_cascaded_table(n).substitute_item_id
7798: AND unit_of_measure = x_cascaded_table(n).unit_of_measure;
7799:
7800: IF x_uom_count = 0 THEN
7801: IF (g_asn_debug = 'Y') THEN
7802: asn_debug.put_line('The substitute item cannot be received in ASN uom' || x_cascaded_table(n).unit_of_measure);
7803: END IF;
7804:
7805: rcv_error_pkg.set_error_message('RCV_ITEM_SUB_NOT_ALLOWED');

Line 7802: asn_debug.put_line('The substitute item cannot be received in ASN uom' || x_cascaded_table(n).unit_of_measure);

7798: AND unit_of_measure = x_cascaded_table(n).unit_of_measure;
7799:
7800: IF x_uom_count = 0 THEN
7801: IF (g_asn_debug = 'Y') THEN
7802: asn_debug.put_line('The substitute item cannot be received in ASN uom' || x_cascaded_table(n).unit_of_measure);
7803: END IF;
7804:
7805: rcv_error_pkg.set_error_message('RCV_ITEM_SUB_NOT_ALLOWED');
7806: RAISE e_validation_error;

Line 7816: IF (g_asn_debug = 'Y') THEN

7812: WHERE mtl_system_items.inventory_item_id = x_cascaded_table(n).item_id
7813: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
7814:
7815: IF x_primary_uom IS NULL THEN
7816: IF (g_asn_debug = 'Y') THEN
7817: asn_debug.put_line('No Primary UOM for substitute item');
7818: END IF;
7819:
7820: rcv_error_pkg.set_error_message('RCV_UOM_NO_CONV_PRIMARY');

Line 7817: asn_debug.put_line('No Primary UOM for substitute item');

7813: AND mtl_system_items.organization_id = x_cascaded_table(n).to_organization_id;
7814:
7815: IF x_primary_uom IS NULL THEN
7816: IF (g_asn_debug = 'Y') THEN
7817: asn_debug.put_line('No Primary UOM for substitute item');
7818: END IF;
7819:
7820: rcv_error_pkg.set_error_message('RCV_UOM_NO_CONV_PRIMARY');
7821: RAISE e_validation_error;

Line 7824: IF (g_asn_debug = 'Y') THEN

7820: rcv_error_pkg.set_error_message('RCV_UOM_NO_CONV_PRIMARY');
7821: RAISE e_validation_error;
7822: END IF;
7823:
7824: IF (g_asn_debug = 'Y') THEN
7825: asn_debug.put_line('Primary UOM for substitute item is ' || x_primary_uom);
7826: END IF;
7827:
7828: IF x_primary_uom <> x_cascaded_table(n).primary_unit_of_measure THEN --{

Line 7825: asn_debug.put_line('Primary UOM for substitute item is ' || x_primary_uom);

7821: RAISE e_validation_error;
7822: END IF;
7823:
7824: IF (g_asn_debug = 'Y') THEN
7825: asn_debug.put_line('Primary UOM for substitute item is ' || x_primary_uom);
7826: END IF;
7827:
7828: IF x_primary_uom <> x_cascaded_table(n).primary_unit_of_measure THEN --{
7829: prim_uom_qty := rcv_transactions_interface_sv.convert_into_correct_qty(x_cascaded_table(n).quantity,

Line 7836: IF (g_asn_debug = 'Y') THEN

7832: x_primary_uom
7833: );
7834:
7835: IF prim_uom_qty = 0 THEN
7836: IF (g_asn_debug = 'Y') THEN
7837: asn_debug.put_line('Not possible to convert between asn and primary UOM');
7838: END IF;
7839:
7840: rcv_error_pkg.set_error_message('RCV_UOM_NO_CONV_PRIMARY');

Line 7837: asn_debug.put_line('Not possible to convert between asn and primary UOM');

7833: );
7834:
7835: IF prim_uom_qty = 0 THEN
7836: IF (g_asn_debug = 'Y') THEN
7837: asn_debug.put_line('Not possible to convert between asn and primary UOM');
7838: END IF;
7839:
7840: rcv_error_pkg.set_error_message('RCV_UOM_NO_CONV_PRIMARY');
7841: RAISE e_validation_error;

Line 7904: IF (g_asn_debug = 'Y') THEN

7900: l_consigned_po_rec.po_line_location_id := x_cascaded_table(n).po_line_location_id;
7901: l_consigned_po_rec.error_record.error_status := 'S';
7902: l_consigned_po_rec.error_record.error_message := NULL;
7903:
7904: IF (g_asn_debug = 'Y') THEN
7905: asn_debug.put_line('Validating ASBN for Consigned PO');
7906: END IF;
7907:
7908: rcv_transactions_interface_sv1.validate_consigned_po(l_consigned_po_rec);

Line 7905: asn_debug.put_line('Validating ASBN for Consigned PO');

7901: l_consigned_po_rec.error_record.error_status := 'S';
7902: l_consigned_po_rec.error_record.error_message := NULL;
7903:
7904: IF (g_asn_debug = 'Y') THEN
7905: asn_debug.put_line('Validating ASBN for Consigned PO');
7906: END IF;
7907:
7908: rcv_transactions_interface_sv1.validate_consigned_po(l_consigned_po_rec);
7909:

Line 7910: IF (g_asn_debug = 'Y') THEN

7906: END IF;
7907:
7908: rcv_transactions_interface_sv1.validate_consigned_po(l_consigned_po_rec);
7909:
7910: IF (g_asn_debug = 'Y') THEN
7911: asn_debug.put_line('After Validating ASBN for Consigned PO');
7912: END IF;
7913:
7914: x_cascaded_table(n).error_status := l_consigned_po_rec.error_record.error_status;

Line 7911: asn_debug.put_line('After Validating ASBN for Consigned PO');

7907:
7908: rcv_transactions_interface_sv1.validate_consigned_po(l_consigned_po_rec);
7909:
7910: IF (g_asn_debug = 'Y') THEN
7911: asn_debug.put_line('After Validating ASBN for Consigned PO');
7912: END IF;
7913:
7914: x_cascaded_table(n).error_status := l_consigned_po_rec.error_record.error_status;
7915: x_cascaded_table(n).error_message := l_consigned_po_rec.error_record.error_message;

Line 7917: IF (g_asn_debug = 'Y') THEN

7913:
7914: x_cascaded_table(n).error_status := l_consigned_po_rec.error_record.error_status;
7915: x_cascaded_table(n).error_message := l_consigned_po_rec.error_record.error_message;
7916:
7917: IF (g_asn_debug = 'Y') THEN
7918: asn_debug.put_line('Error status ' || l_consigned_po_rec.error_record.error_status);
7919: asn_debug.put_line('Error name: ' || l_consigned_po_rec.error_record.error_message);
7920: END IF;
7921:

Line 7918: asn_debug.put_line('Error status ' || l_consigned_po_rec.error_record.error_status);

7914: x_cascaded_table(n).error_status := l_consigned_po_rec.error_record.error_status;
7915: x_cascaded_table(n).error_message := l_consigned_po_rec.error_record.error_message;
7916:
7917: IF (g_asn_debug = 'Y') THEN
7918: asn_debug.put_line('Error status ' || l_consigned_po_rec.error_record.error_status);
7919: asn_debug.put_line('Error name: ' || l_consigned_po_rec.error_record.error_message);
7920: END IF;
7921:
7922: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'PO_LINE_LOCATION_ID');

Line 7919: asn_debug.put_line('Error name: ' || l_consigned_po_rec.error_record.error_message);

7915: x_cascaded_table(n).error_message := l_consigned_po_rec.error_record.error_message;
7916:
7917: IF (g_asn_debug = 'Y') THEN
7918: asn_debug.put_line('Error status ' || l_consigned_po_rec.error_record.error_status);
7919: asn_debug.put_line('Error name: ' || l_consigned_po_rec.error_record.error_message);
7920: END IF;
7921:
7922: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'PO_LINE_LOCATION_ID');
7923: END IF; -- IF ( (X_asn_type = 'ASBN')

Line 7934: IF (g_asn_debug = 'Y') THEN

7930: l_consumption_po_rec.po_header_id := x_cascaded_table(n).po_header_id;
7931: l_consumption_po_rec.error_record.error_status := 'S';
7932: l_consumption_po_rec.error_record.error_message := NULL;
7933:
7934: IF (g_asn_debug = 'Y') THEN
7935: asn_debug.put_line('Validating Consumption PO');
7936: END IF;
7937:
7938: rcv_transactions_interface_sv1.validate_consumption_po(l_consumption_po_rec);

Line 7935: asn_debug.put_line('Validating Consumption PO');

7931: l_consumption_po_rec.error_record.error_status := 'S';
7932: l_consumption_po_rec.error_record.error_message := NULL;
7933:
7934: IF (g_asn_debug = 'Y') THEN
7935: asn_debug.put_line('Validating Consumption PO');
7936: END IF;
7937:
7938: rcv_transactions_interface_sv1.validate_consumption_po(l_consumption_po_rec);
7939:

Line 7940: IF (g_asn_debug = 'Y') THEN

7936: END IF;
7937:
7938: rcv_transactions_interface_sv1.validate_consumption_po(l_consumption_po_rec);
7939:
7940: IF (g_asn_debug = 'Y') THEN
7941: asn_debug.put_line('After Validating Consumption PO');
7942: END IF;
7943:
7944: x_cascaded_table(n).error_status := l_consumption_po_rec.error_record.error_status;

Line 7941: asn_debug.put_line('After Validating Consumption PO');

7937:
7938: rcv_transactions_interface_sv1.validate_consumption_po(l_consumption_po_rec);
7939:
7940: IF (g_asn_debug = 'Y') THEN
7941: asn_debug.put_line('After Validating Consumption PO');
7942: END IF;
7943:
7944: x_cascaded_table(n).error_status := l_consumption_po_rec.error_record.error_status;
7945: x_cascaded_table(n).error_message := l_consumption_po_rec.error_record.error_message;

Line 7947: IF (g_asn_debug = 'Y') THEN

7943:
7944: x_cascaded_table(n).error_status := l_consumption_po_rec.error_record.error_status;
7945: x_cascaded_table(n).error_message := l_consumption_po_rec.error_record.error_message;
7946:
7947: IF (g_asn_debug = 'Y') THEN
7948: asn_debug.put_line('Error status ' || l_consumption_po_rec.error_record.error_status);
7949: asn_debug.put_line('Error name: ' || l_consumption_po_rec.error_record.error_message);
7950: END IF;
7951:

Line 7948: asn_debug.put_line('Error status ' || l_consumption_po_rec.error_record.error_status);

7944: x_cascaded_table(n).error_status := l_consumption_po_rec.error_record.error_status;
7945: x_cascaded_table(n).error_message := l_consumption_po_rec.error_record.error_message;
7946:
7947: IF (g_asn_debug = 'Y') THEN
7948: asn_debug.put_line('Error status ' || l_consumption_po_rec.error_record.error_status);
7949: asn_debug.put_line('Error name: ' || l_consumption_po_rec.error_record.error_message);
7950: END IF;
7951:
7952: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'PO_HEADER_ID');

Line 7949: asn_debug.put_line('Error name: ' || l_consumption_po_rec.error_record.error_message);

7945: x_cascaded_table(n).error_message := l_consumption_po_rec.error_record.error_message;
7946:
7947: IF (g_asn_debug = 'Y') THEN
7948: asn_debug.put_line('Error status ' || l_consumption_po_rec.error_record.error_status);
7949: asn_debug.put_line('Error name: ' || l_consumption_po_rec.error_record.error_message);
7950: END IF;
7951:
7952: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'PO_HEADER_ID');
7953: END IF;

Line 7963: IF (g_asn_debug = 'Y') THEN

7959: l_consumption_release_rec.po_release_id := x_cascaded_table(n).po_release_id;
7960: l_consumption_release_rec.error_record.error_status := 'S';
7961: l_consumption_release_rec.error_record.error_message := NULL;
7962:
7963: IF (g_asn_debug = 'Y') THEN
7964: asn_debug.put_line('Validating Consumption Release');
7965: END IF;
7966:
7967: rcv_transactions_interface_sv1.validate_consumption_release(l_consumption_release_rec);

Line 7964: asn_debug.put_line('Validating Consumption Release');

7960: l_consumption_release_rec.error_record.error_status := 'S';
7961: l_consumption_release_rec.error_record.error_message := NULL;
7962:
7963: IF (g_asn_debug = 'Y') THEN
7964: asn_debug.put_line('Validating Consumption Release');
7965: END IF;
7966:
7967: rcv_transactions_interface_sv1.validate_consumption_release(l_consumption_release_rec);
7968:

Line 7969: IF (g_asn_debug = 'Y') THEN

7965: END IF;
7966:
7967: rcv_transactions_interface_sv1.validate_consumption_release(l_consumption_release_rec);
7968:
7969: IF (g_asn_debug = 'Y') THEN
7970: asn_debug.put_line('After Validating Consumption Release');
7971: END IF;
7972:
7973: x_cascaded_table(n).error_status := l_consumption_release_rec.error_record.error_status;

Line 7970: asn_debug.put_line('After Validating Consumption Release');

7966:
7967: rcv_transactions_interface_sv1.validate_consumption_release(l_consumption_release_rec);
7968:
7969: IF (g_asn_debug = 'Y') THEN
7970: asn_debug.put_line('After Validating Consumption Release');
7971: END IF;
7972:
7973: x_cascaded_table(n).error_status := l_consumption_release_rec.error_record.error_status;
7974: x_cascaded_table(n).error_message := l_consumption_release_rec.error_record.error_message;

Line 7976: IF (g_asn_debug = 'Y') THEN

7972:
7973: x_cascaded_table(n).error_status := l_consumption_release_rec.error_record.error_status;
7974: x_cascaded_table(n).error_message := l_consumption_release_rec.error_record.error_message;
7975:
7976: IF (g_asn_debug = 'Y') THEN
7977: asn_debug.put_line('Error status ' || l_consumption_release_rec.error_record.error_status);
7978: asn_debug.put_line('Error name: ' || l_consumption_release_rec.error_record.error_message);
7979: END IF;
7980:

Line 7977: asn_debug.put_line('Error status ' || l_consumption_release_rec.error_record.error_status);

7973: x_cascaded_table(n).error_status := l_consumption_release_rec.error_record.error_status;
7974: x_cascaded_table(n).error_message := l_consumption_release_rec.error_record.error_message;
7975:
7976: IF (g_asn_debug = 'Y') THEN
7977: asn_debug.put_line('Error status ' || l_consumption_release_rec.error_record.error_status);
7978: asn_debug.put_line('Error name: ' || l_consumption_release_rec.error_record.error_message);
7979: END IF;
7980:
7981: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'PO_RELEASE_ID');

Line 7978: asn_debug.put_line('Error name: ' || l_consumption_release_rec.error_record.error_message);

7974: x_cascaded_table(n).error_message := l_consumption_release_rec.error_record.error_message;
7975:
7976: IF (g_asn_debug = 'Y') THEN
7977: asn_debug.put_line('Error status ' || l_consumption_release_rec.error_record.error_status);
7978: asn_debug.put_line('Error name: ' || l_consumption_release_rec.error_record.error_message);
7979: END IF;
7980:
7981: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status, 'PO_RELEASE_ID');
7982: END IF;

Line 8014: IF (g_asn_debug = 'Y') THEN

8010: RAISE e_validation_error;
8011: END IF;
8012: END IF;
8013:
8014: IF (g_asn_debug = 'Y') THEN
8015: asn_debug.put_line('Validating vendor id in PO ' || TO_CHAR(x_ref_integrity_rec.vendor_id));
8016: asn_debug.put_line('PO Header Id ' || TO_CHAR(x_ref_integrity_rec.po_header_id));
8017: END IF;
8018:

Line 8015: asn_debug.put_line('Validating vendor id in PO ' || TO_CHAR(x_ref_integrity_rec.vendor_id));

8011: END IF;
8012: END IF;
8013:
8014: IF (g_asn_debug = 'Y') THEN
8015: asn_debug.put_line('Validating vendor id in PO ' || TO_CHAR(x_ref_integrity_rec.vendor_id));
8016: asn_debug.put_line('PO Header Id ' || TO_CHAR(x_ref_integrity_rec.po_header_id));
8017: END IF;
8018:
8019: IF x_ref_integrity_rec.vendor_id IS NOT NULL THEN

Line 8016: asn_debug.put_line('PO Header Id ' || TO_CHAR(x_ref_integrity_rec.po_header_id));

8012: END IF;
8013:
8014: IF (g_asn_debug = 'Y') THEN
8015: asn_debug.put_line('Validating vendor id in PO ' || TO_CHAR(x_ref_integrity_rec.vendor_id));
8016: asn_debug.put_line('PO Header Id ' || TO_CHAR(x_ref_integrity_rec.po_header_id));
8017: END IF;
8018:
8019: IF x_ref_integrity_rec.vendor_id IS NOT NULL THEN
8020: SELECT NVL(MAX(vendor_id), 0)

Line 8058: asn_debug.put_line('vendor_site_id from PO_HEADERS ' || TO_CHAR(x_po_vendor_site_id));

8054: FROM po_headers
8055: WHERE po_header_id = x_ref_integrity_rec.po_header_id
8056: AND vendor_site_id = x_ref_integrity_rec.vendor_site_id;
8057:
8058: asn_debug.put_line('vendor_site_id from PO_HEADERS ' || TO_CHAR(x_po_vendor_site_id));
8059:
8060: END IF;
8061:
8062: IF (x_ref_integrity_rec.parent_txn_id IS NOT NULL) THEN

Line 8071: asn_debug.put_line('vendor_site_id from RCV_TRANSACTIONS ' || TO_CHAR(x_po_vendor_site_id));

8067: WHERE po_header_id = x_ref_integrity_rec.po_header_id
8068: AND transaction_id = x_ref_integrity_rec.parent_txn_id
8069: AND vendor_site_id = x_ref_integrity_rec.vendor_site_id;
8070:
8071: asn_debug.put_line('vendor_site_id from RCV_TRANSACTIONS ' || TO_CHAR(x_po_vendor_site_id));
8072:
8073: END IF;
8074:
8075:

Line 8083: IF (g_asn_debug = 'Y') THEN

8079: END IF;
8080: END IF;
8081:
8082: IF x_ref_integrity_rec.po_revision_num IS NOT NULL THEN
8083: IF (g_asn_debug = 'Y') THEN
8084: asn_debug.put_line('po_revision_num: ' || x_ref_integrity_rec.po_revision_num);
8085: END IF;
8086:
8087: SELECT NVL(MAX(vendor_site_id), 0)

Line 8084: asn_debug.put_line('po_revision_num: ' || x_ref_integrity_rec.po_revision_num);

8080: END IF;
8081:
8082: IF x_ref_integrity_rec.po_revision_num IS NOT NULL THEN
8083: IF (g_asn_debug = 'Y') THEN
8084: asn_debug.put_line('po_revision_num: ' || x_ref_integrity_rec.po_revision_num);
8085: END IF;
8086:
8087: SELECT NVL(MAX(vendor_site_id), 0)
8088: INTO x_po_vendor_site_id

Line 8218: asn_debug.put_line('Transaction Type ' || v_trans_tab(j).transaction_type);

8214:
8215: /* Delete only once from the rcv_transactions_interface table for every
8216: group of pl/sql table rows that have the same interface id */
8217: FOR j IN i .. e_o_t LOOP
8218: asn_debug.put_line('Transaction Type ' || v_trans_tab(j).transaction_type);
8219: v_current_interface_id := v_trans_tab(j).interface_transaction_id;
8220: l_ls_table_idx := l_ls_table.COUNT + 1;
8221:
8222: /* SELECT GROUP_SEQUENCE_ID_S.nextval into V_TRANS_TAB(j).GROUP_ID

Line 8230: asn_debug.put_line('Group id ' || TO_CHAR(v_trans_tab(j).GROUP_ID));

8226: IF (v_trans_tab(j).transaction_type IN('RECEIVE', 'SHIP')) THEN
8227: v_trans_tab(j).GROUP_ID := v_header_record.header_record.GROUP_ID;
8228: END IF;
8229:
8230: asn_debug.put_line('Group id ' || TO_CHAR(v_trans_tab(j).GROUP_ID));
8231: /* Assigning to_organization_id to lorgid which is passed
8232: as a parameter to WMS_INSTALL function .Also added
8233: debug messages .*/
8234: lorgid := v_trans_tab(j).to_organization_id;

Line 8235: asn_debug.put_line('organization id ' || TO_CHAR(v_trans_tab(j).to_organization_id));

8231: /* Assigning to_organization_id to lorgid which is passed
8232: as a parameter to WMS_INSTALL function .Also added
8233: debug messages .*/
8234: lorgid := v_trans_tab(j).to_organization_id;
8235: asn_debug.put_line('organization id ' || TO_CHAR(v_trans_tab(j).to_organization_id));
8236: asn_debug.put_line('lorgid ' || TO_CHAR(lorgid));
8237:
8238: IF v_current_interface_id <> v_prior_interface_id THEN
8239: asn_debug.put_line('Handle the original interface id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));

Line 8236: asn_debug.put_line('lorgid ' || TO_CHAR(lorgid));

8232: as a parameter to WMS_INSTALL function .Also added
8233: debug messages .*/
8234: lorgid := v_trans_tab(j).to_organization_id;
8235: asn_debug.put_line('organization id ' || TO_CHAR(v_trans_tab(j).to_organization_id));
8236: asn_debug.put_line('lorgid ' || TO_CHAR(lorgid));
8237:
8238: IF v_current_interface_id <> v_prior_interface_id THEN
8239: asn_debug.put_line('Handle the original interface id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8240: asn_debug.put_line('delete from rcv_transactions_interface rowid ' || v_trans_tab(j).row_id);

Line 8239: asn_debug.put_line('Handle the original interface id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));

8235: asn_debug.put_line('organization id ' || TO_CHAR(v_trans_tab(j).to_organization_id));
8236: asn_debug.put_line('lorgid ' || TO_CHAR(lorgid));
8237:
8238: IF v_current_interface_id <> v_prior_interface_id THEN
8239: asn_debug.put_line('Handle the original interface id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8240: asn_debug.put_line('delete from rcv_transactions_interface rowid ' || v_trans_tab(j).row_id);
8241: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);
8242:
8243: /* WMS Changes */

Line 8240: asn_debug.put_line('delete from rcv_transactions_interface rowid ' || v_trans_tab(j).row_id);

8236: asn_debug.put_line('lorgid ' || TO_CHAR(lorgid));
8237:
8238: IF v_current_interface_id <> v_prior_interface_id THEN
8239: asn_debug.put_line('Handle the original interface id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8240: asn_debug.put_line('delete from rcv_transactions_interface rowid ' || v_trans_tab(j).row_id);
8241: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);
8242:
8243: /* WMS Changes */
8244: IF v_trans_tab(j).matching_basis <> 'AMOUNT' THEN

Line 8241: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);

8237:
8238: IF v_current_interface_id <> v_prior_interface_id THEN
8239: asn_debug.put_line('Handle the original interface id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8240: asn_debug.put_line('delete from rcv_transactions_interface rowid ' || v_trans_tab(j).row_id);
8241: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);
8242:
8243: /* WMS Changes */
8244: IF v_trans_tab(j).matching_basis <> 'AMOUNT' THEN
8245: l_orig_trx_id := v_trans_tab(j).interface_transaction_id;

Line 8252: IF (g_asn_debug = 'Y') THEN

8248: l_ls_table(l_ls_table_idx).new_interface_trx_id := l_orig_trx_id;
8249: l_ls_table(l_ls_table_idx).quantity := v_trans_tab(j).quantity;
8250: END IF;
8251:
8252: IF (g_asn_debug = 'Y') THEN
8253: asn_debug.put_line('Deleting RTI ' || v_trans_tab(j).interface_transaction_id);
8254: END IF;
8255:
8256: rcv_trx_interface_delete_pkg.delete_row(v_trans_tab(j).row_id);

Line 8253: asn_debug.put_line('Deleting RTI ' || v_trans_tab(j).interface_transaction_id);

8249: l_ls_table(l_ls_table_idx).quantity := v_trans_tab(j).quantity;
8250: END IF;
8251:
8252: IF (g_asn_debug = 'Y') THEN
8253: asn_debug.put_line('Deleting RTI ' || v_trans_tab(j).interface_transaction_id);
8254: END IF;
8255:
8256: rcv_trx_interface_delete_pkg.delete_row(v_trans_tab(j).row_id);
8257: /* V_TRANS_TAB(j).INTERFACE_TRANSACTION_ID := NULL; */ -- need to maintain the interface transaction id

Line 8275: IF (g_asn_debug = 'Y') THEN

8271: INTO v_trans_tab(j).lpn_group_id
8272: FROM DUAL;
8273: END IF;
8274:
8275: IF (g_asn_debug = 'Y') THEN
8276: asn_debug.put_line('Inserting new RTI');
8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);

Line 8276: asn_debug.put_line('Inserting new RTI');

8272: FROM DUAL;
8273: END IF;
8274:
8275: IF (g_asn_debug = 'Y') THEN
8276: asn_debug.put_line('Inserting new RTI');
8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);

Line 8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);

8273: END IF;
8274:
8275: IF (g_asn_debug = 'Y') THEN
8276: asn_debug.put_line('Inserting new RTI');
8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);

Line 8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);

8274:
8275: IF (g_asn_debug = 'Y') THEN
8276: asn_debug.put_line('Inserting new RTI');
8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);

Line 8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);

8275: IF (g_asn_debug = 'Y') THEN
8276: asn_debug.put_line('Inserting new RTI');
8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);

Line 8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);

8276: asn_debug.put_line('Inserting new RTI');
8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);

Line 8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);

8277: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);

Line 8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);

8278: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);

Line 8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);

8279: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);

Line 8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);

8280: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);

Line 8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);

8281: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);

Line 8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);

8282: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);

Line 8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);

8283: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);

Line 8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);

8284: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);

Line 8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);

8285: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);

Line 8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);

8286: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);

Line 8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);

8287: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);

Line 8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);

8288: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);

Line 8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);

8289: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);

Line 8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);

8290: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);

Line 8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);

8291: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);

Line 8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);

8292: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);

Line 8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);

8293: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);

Line 8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);

8294: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);

Line 8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);

8295: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);

Line 8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);

8296: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);

Line 8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);

8297: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);

Line 8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);

8298: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);

Line 8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);

8299: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);

Line 8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);

8300: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);

Line 8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);

8301: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);

Line 8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);

8302: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);

Line 8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);

8303: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);

Line 8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);

8304: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);

Line 8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);

8305: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);

Line 8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);

8306: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);

Line 8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);

8307: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));

Line 8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);

8308: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);

Line 8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);

8309: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);

Line 8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);

8310: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);

Line 8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));

8311: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);

Line 8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);

8312: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);

Line 8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);

8313: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);

Line 8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);

8314: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);

Line 8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);

8315: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);

Line 8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);

8316: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);

Line 8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);

8317: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);

Line 8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);

8318: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);

Line 8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);

8319: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);

Line 8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);

8320: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);

Line 8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);

8321: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);

Line 8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);

8322: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);

Line 8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);

8323: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);

Line 8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);

8324: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);

Line 8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);

8325: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);

Line 8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);

8326: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);

Line 8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);

8327: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);

Line 8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);

8328: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);

Line 8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);

8329: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);

Line 8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);

8330: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);

Line 8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);

8331: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);

Line 8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);

8332: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);

Line 8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);

8333: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);

Line 8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);

8334: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);

Line 8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);

8335: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);

Line 8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);

8336: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);

Line 8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);

8337: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8345: asn_debug.put_line('timecard_id ' ||

Line 8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);

8338: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8345: asn_debug.put_line('timecard_id ' ||
8346: v_trans_tab(j).timecard_id);

Line 8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);

8339: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8345: asn_debug.put_line('timecard_id ' ||
8346: v_trans_tab(j).timecard_id);
8347: asn_debug.put_line('timecard_ovn ' ||

Line 8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);

8340: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8345: asn_debug.put_line('timecard_id ' ||
8346: v_trans_tab(j).timecard_id);
8347: asn_debug.put_line('timecard_ovn ' ||
8348: v_trans_tab(j).timecard_ovn);

Line 8345: asn_debug.put_line('timecard_id ' ||

8341: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8342: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8345: asn_debug.put_line('timecard_id ' ||
8346: v_trans_tab(j).timecard_id);
8347: asn_debug.put_line('timecard_ovn ' ||
8348: v_trans_tab(j).timecard_ovn);
8349: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --

Line 8347: asn_debug.put_line('timecard_ovn ' ||

8343: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8344: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8345: asn_debug.put_line('timecard_id ' ||
8346: v_trans_tab(j).timecard_id);
8347: asn_debug.put_line('timecard_ovn ' ||
8348: v_trans_tab(j).timecard_ovn);
8349: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8350:
8351: asn_debug.put_line('matching_basis ' ||

Line 8349: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --

8345: asn_debug.put_line('timecard_id ' ||
8346: v_trans_tab(j).timecard_id);
8347: asn_debug.put_line('timecard_ovn ' ||
8348: v_trans_tab(j).timecard_ovn);
8349: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8350:
8351: asn_debug.put_line('matching_basis ' ||
8352: v_trans_tab(j).matching_basis);
8353: asn_debug.put_line('amount_shipped ' ||

Line 8351: asn_debug.put_line('matching_basis ' ||

8347: asn_debug.put_line('timecard_ovn ' ||
8348: v_trans_tab(j).timecard_ovn);
8349: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8350:
8351: asn_debug.put_line('matching_basis ' ||
8352: v_trans_tab(j).matching_basis);
8353: asn_debug.put_line('amount_shipped ' ||
8354: v_trans_tab(j).amount_shipped);
8355: asn_debug.put_line('requested_amount ' ||

Line 8353: asn_debug.put_line('amount_shipped ' ||

8349: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8350:
8351: asn_debug.put_line('matching_basis ' ||
8352: v_trans_tab(j).matching_basis);
8353: asn_debug.put_line('amount_shipped ' ||
8354: v_trans_tab(j).amount_shipped);
8355: asn_debug.put_line('requested_amount ' ||
8356: v_trans_tab(j).requested_amount);
8357: asn_debug.put_line('material_stored_amount ' ||

Line 8355: asn_debug.put_line('requested_amount ' ||

8351: asn_debug.put_line('matching_basis ' ||
8352: v_trans_tab(j).matching_basis);
8353: asn_debug.put_line('amount_shipped ' ||
8354: v_trans_tab(j).amount_shipped);
8355: asn_debug.put_line('requested_amount ' ||
8356: v_trans_tab(j).requested_amount);
8357: asn_debug.put_line('material_stored_amount ' ||
8358: v_trans_tab(j).material_stored_amount);
8359: asn_debug.put_line('replenish_order_line_id' ||

Line 8357: asn_debug.put_line('material_stored_amount ' ||

8353: asn_debug.put_line('amount_shipped ' ||
8354: v_trans_tab(j).amount_shipped);
8355: asn_debug.put_line('requested_amount ' ||
8356: v_trans_tab(j).requested_amount);
8357: asn_debug.put_line('material_stored_amount ' ||
8358: v_trans_tab(j).material_stored_amount);
8359: asn_debug.put_line('replenish_order_line_id' ||
8360: v_trans_tab(j).replenish_order_line_id);
8361: asn_debug.put_line('lcm_shipment_line_id' || v_trans_tab(j).lcm_shipment_line_id);

Line 8359: asn_debug.put_line('replenish_order_line_id' ||

8355: asn_debug.put_line('requested_amount ' ||
8356: v_trans_tab(j).requested_amount);
8357: asn_debug.put_line('material_stored_amount ' ||
8358: v_trans_tab(j).material_stored_amount);
8359: asn_debug.put_line('replenish_order_line_id' ||
8360: v_trans_tab(j).replenish_order_line_id);
8361: asn_debug.put_line('lcm_shipment_line_id' || v_trans_tab(j).lcm_shipment_line_id);
8362: asn_debug.put_line('unit_landed_cost' || v_trans_tab(j).unit_landed_cost);
8363:

Line 8361: asn_debug.put_line('lcm_shipment_line_id' || v_trans_tab(j).lcm_shipment_line_id);

8357: asn_debug.put_line('material_stored_amount ' ||
8358: v_trans_tab(j).material_stored_amount);
8359: asn_debug.put_line('replenish_order_line_id' ||
8360: v_trans_tab(j).replenish_order_line_id);
8361: asn_debug.put_line('lcm_shipment_line_id' || v_trans_tab(j).lcm_shipment_line_id);
8362: asn_debug.put_line('unit_landed_cost' || v_trans_tab(j).unit_landed_cost);
8363:
8364: END IF;
8365:

Line 8362: asn_debug.put_line('unit_landed_cost' || v_trans_tab(j).unit_landed_cost);

8358: v_trans_tab(j).material_stored_amount);
8359: asn_debug.put_line('replenish_order_line_id' ||
8360: v_trans_tab(j).replenish_order_line_id);
8361: asn_debug.put_line('lcm_shipment_line_id' || v_trans_tab(j).lcm_shipment_line_id);
8362: asn_debug.put_line('unit_landed_cost' || v_trans_tab(j).unit_landed_cost);
8363:
8364: END IF;
8365:
8366: rcv_asn_interface_trx_ins_pkg.insert_row(v_trans_tab(j).row_id,

Line 8613: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);

8609: NULL,
8610: v_trans_tab(j).lcm_shipment_line_id, -- lcm changes
8611: v_trans_tab(j).unit_landed_cost -- lcm changes
8612: );
8613: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);
8614: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8615: v_prior_interface_id := v_current_interface_id;
8616: v_trans_tab.DELETE(j);
8617: ELSE

Line 8614: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));

8610: v_trans_tab(j).lcm_shipment_line_id, -- lcm changes
8611: v_trans_tab(j).unit_landed_cost -- lcm changes
8612: );
8613: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);
8614: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8615: v_prior_interface_id := v_current_interface_id;
8616: v_trans_tab.DELETE(j);
8617: ELSE
8618: asn_debug.put_line('insert into rcv_transactions_interface with new id ');

Line 8618: asn_debug.put_line('insert into rcv_transactions_interface with new id ');

8614: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8615: v_prior_interface_id := v_current_interface_id;
8616: v_trans_tab.DELETE(j);
8617: ELSE
8618: asn_debug.put_line('insert into rcv_transactions_interface with new id ');
8619: /* Since we are inserting 1-> many rows need to generate a new interface id */
8620: v_trans_tab(j).interface_transaction_id := NULL;
8621: x_rowid := NULL;
8622:

Line 8639: IF (g_asn_debug = 'Y') THEN

8635: INTO v_trans_tab(j).lpn_group_id
8636: FROM DUAL;
8637: END IF;
8638:
8639: IF (g_asn_debug = 'Y') THEN
8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);

Line 8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);

8636: FROM DUAL;
8637: END IF;
8638:
8639: IF (g_asn_debug = 'Y') THEN
8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);

Line 8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);

8637: END IF;
8638:
8639: IF (g_asn_debug = 'Y') THEN
8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);

Line 8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);

8638:
8639: IF (g_asn_debug = 'Y') THEN
8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);

Line 8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);

8639: IF (g_asn_debug = 'Y') THEN
8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);

Line 8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);

8640: asn_debug.put_line('category_id ' || v_trans_tab(j).category_id);
8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);

Line 8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);

8641: asn_debug.put_line('quantity ' || v_trans_tab(j).quantity);
8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);

Line 8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);

8642: asn_debug.put_line('amount ' || v_trans_tab(j).amount);
8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);

Line 8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);

8643: asn_debug.put_line('unit_of_measure ' || v_trans_tab(j).unit_of_measure);
8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);

Line 8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);

8644: asn_debug.put_line('interface_source_code ' || v_trans_tab(j).interface_source_code);
8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);

Line 8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);

8645: asn_debug.put_line('interface_source_line_id ' || v_trans_tab(j).interface_source_line_id);
8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);

Line 8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);

8646: asn_debug.put_line('inv_transaction_id ' || v_trans_tab(j).inv_transaction_id);
8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);

Line 8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);

8647: asn_debug.put_line('item_id ' || v_trans_tab(j).item_id);
8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);

Line 8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);

8648: asn_debug.put_line('item_description ' || v_trans_tab(j).item_description);
8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);

Line 8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);

8649: asn_debug.put_line('item_revision ' || v_trans_tab(j).item_revision);
8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);

Line 8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);

8650: asn_debug.put_line('uom_code ' || v_trans_tab(j).uom_code);
8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);

Line 8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);

8651: asn_debug.put_line('employee_id ' || v_trans_tab(j).employee_id);
8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);

Line 8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);

8652: asn_debug.put_line('auto_transact_code ' || v_trans_tab(j).auto_transact_code);
8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);

Line 8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);

8653: asn_debug.put_line('shipment_header_id ' || v_trans_tab(j).shipment_header_id);
8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);

Line 8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);

8654: asn_debug.put_line('shipment_header_id ' || v_header_record.header_record.receipt_header_id);
8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);

Line 8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);

8655: asn_debug.put_line('shipment_line_id ' || v_trans_tab(j).shipment_line_id);
8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);

Line 8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);

8656: asn_debug.put_line('ship_to_location_id ' || v_trans_tab(j).ship_to_location_id);
8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);

Line 8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);

8657: asn_debug.put_line('primary_quantity ' || v_trans_tab(j).primary_quantity);
8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);

Line 8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);

8658: asn_debug.put_line('primary_unit_of_measure ' || v_trans_tab(j).primary_unit_of_measure);
8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);

Line 8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);

8659: asn_debug.put_line('receipt_source_code ' || v_trans_tab(j).receipt_source_code);
8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);

Line 8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);

8660: asn_debug.put_line('vendor_id ' || v_trans_tab(j).vendor_id);
8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);

Line 8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);

8661: asn_debug.put_line('vendor_site_id ' || v_trans_tab(j).vendor_site_id);
8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);

Line 8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);

8662: asn_debug.put_line('from_organization_id ' || v_trans_tab(j).from_organization_id);
8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);

Line 8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);

8663: asn_debug.put_line('from_subinventory ' || v_trans_tab(j).from_subinventory);
8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);

Line 8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);

8664: asn_debug.put_line('to_organization_id ' || v_trans_tab(j).to_organization_id);
8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);

Line 8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);

8665: asn_debug.put_line('intransit_owning_org_id ' || v_trans_tab(j).intransit_owning_org_id);
8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);

Line 8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);

8666: asn_debug.put_line('routing_header_id ' || v_trans_tab(j).routing_header_id);
8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);

Line 8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);

8667: asn_debug.put_line('routing_step_id ' || v_trans_tab(j).routing_step_id);
8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);

Line 8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);

8668: asn_debug.put_line('source_document_code ' || v_trans_tab(j).source_document_code);
8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);

Line 8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);

8669: asn_debug.put_line('parent_transaction_id ' || v_trans_tab(j).parent_transaction_id);
8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);

Line 8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);

8670: asn_debug.put_line('po_header_id ' || v_trans_tab(j).po_header_id);
8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));

Line 8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);

8671: asn_debug.put_line('po_revision_num ' || v_trans_tab(j).po_revision_num);
8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);

Line 8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);

8672: asn_debug.put_line('po_line_id ' || v_trans_tab(j).po_line_id);
8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);

Line 8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);

8673: asn_debug.put_line('po_line_location_id ' || v_trans_tab(j).po_line_location_id);
8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);

Line 8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));

8674: asn_debug.put_line('po_unit_price ' || v_trans_tab(j).po_unit_price);
8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);

Line 8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);

8675: asn_debug.put_line('currency_code ' || v_trans_tab(j).currency_code);
8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);

Line 8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);

8676: asn_debug.put_line('currency_conversion_type ' || v_trans_tab(j).currency_conversion_type);
8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);

Line 8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);

8677: asn_debug.put_line('currency_conversion_rate ' || v_trans_tab(j).currency_conversion_rate);
8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);

Line 8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);

8678: asn_debug.put_line('currency_conversion_date ' || TO_CHAR(v_trans_tab(j).currency_conversion_date, 'DD-MON-YYYY HH24:MI:SS'));
8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);

Line 8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);

8679: asn_debug.put_line('po_distribution_id ' || v_trans_tab(j).po_distribution_id);
8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);

Line 8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);

8680: asn_debug.put_line('requisition_line_id ' || v_trans_tab(j).requisition_line_id);
8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);

Line 8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);

8681: asn_debug.put_line('req_distribution_id ' || v_trans_tab(j).req_distribution_id);
8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);

Line 8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);

8682: asn_debug.put_line('charge_account_id ' || v_trans_tab(j).charge_account_id);
8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);

Line 8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);

8683: asn_debug.put_line('substitute_unordered_code ' || v_trans_tab(j).substitute_unordered_code);
8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);

Line 8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);

8684: asn_debug.put_line('receipt_exception_flag ' || v_trans_tab(j).receipt_exception_flag);
8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);

Line 8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);

8685: asn_debug.put_line('accrual_status_code ' || v_trans_tab(j).accrual_status_code);
8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);

Line 8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);

8686: asn_debug.put_line('inspection_status_code ' || v_trans_tab(j).inspection_status_code);
8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);

Line 8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);

8687: asn_debug.put_line('inspection_quality_code ' || v_trans_tab(j).inspection_quality_code);
8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);

Line 8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);

8688: asn_debug.put_line('destination_type_code ' || v_trans_tab(j).destination_type_code);
8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);

Line 8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);

8689: asn_debug.put_line('deliver_to_person_id ' || v_trans_tab(j).deliver_to_person_id);
8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);

Line 8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);

8690: asn_debug.put_line('location_id ' || v_trans_tab(j).location_id);
8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);

Line 8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);

8691: asn_debug.put_line('deliver_to_location_id ' || v_trans_tab(j).deliver_to_location_id);
8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);

Line 8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);

8692: asn_debug.put_line('subinventory ' || v_trans_tab(j).subinventory);
8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);

Line 8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);

8693: asn_debug.put_line('locator_id ' || v_trans_tab(j).locator_id);
8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);

Line 8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);

8694: asn_debug.put_line('wip_entity_id ' || v_trans_tab(j).wip_entity_id);
8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);

Line 8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);

8695: asn_debug.put_line('wip_line_id ' || v_trans_tab(j).wip_line_id);
8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);

Line 8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);

8696: asn_debug.put_line('shipment_num ' || v_trans_tab(j).shipment_num);
8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);

Line 8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);

8697: asn_debug.put_line('source_doc_quantity ' || v_trans_tab(j).source_doc_quantity);
8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);

Line 8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);

8698: asn_debug.put_line('from_locator_id ' || v_trans_tab(j).from_locator_id);
8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);

Line 8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);

8699: asn_debug.put_line('oe_order_header_id ' || v_trans_tab(j).oe_order_header_id);
8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);

Line 8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);

8700: asn_debug.put_line('oe_order_line_id ' || v_trans_tab(j).oe_order_line_id);
8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);

Line 8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);

8701: asn_debug.put_line('customer_id ' || v_trans_tab(j).customer_id);
8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);

Line 8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);

8702: asn_debug.put_line('customer_site_id ' || v_trans_tab(j).customer_site_id);
8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --

Line 8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);

8703: asn_debug.put_line('lpn_id ' || v_trans_tab(j).lpn_id);
8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8711: asn_debug.put_line('matching_basis ' ||

Line 8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);

8704: asn_debug.put_line('transfer_lpn_id ' || v_trans_tab(j).transfer_lpn_id);
8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8711: asn_debug.put_line('matching_basis ' ||
8712: v_trans_tab(j).matching_basis);

Line 8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);

8705: asn_debug.put_line('lpn_group_id ' || v_trans_tab(j).lpn_group_id);
8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8711: asn_debug.put_line('matching_basis ' ||
8712: v_trans_tab(j).matching_basis);
8713: asn_debug.put_line('amount_shipped ' ||

Line 8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --

8706: asn_debug.put_line('project_id ' || v_trans_tab(j).project_id);
8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8711: asn_debug.put_line('matching_basis ' ||
8712: v_trans_tab(j).matching_basis);
8713: asn_debug.put_line('amount_shipped ' ||
8714: v_trans_tab(j).amount_shipped);

Line 8711: asn_debug.put_line('matching_basis ' ||

8707: asn_debug.put_line('task_id ' || v_trans_tab(j).task_id);
8708: asn_debug.put_line('timecard_id ' || v_trans_tab(j).timecard_id);
8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8711: asn_debug.put_line('matching_basis ' ||
8712: v_trans_tab(j).matching_basis);
8713: asn_debug.put_line('amount_shipped ' ||
8714: v_trans_tab(j).amount_shipped);
8715: asn_debug.put_line('requested_amount ' ||

Line 8713: asn_debug.put_line('amount_shipped ' ||

8709: asn_debug.put_line('timecard_ovn ' || v_trans_tab(j).timecard_ovn);
8710: asn_debug.put_line('org_id ' || v_trans_tab(j).org_id); --
8711: asn_debug.put_line('matching_basis ' ||
8712: v_trans_tab(j).matching_basis);
8713: asn_debug.put_line('amount_shipped ' ||
8714: v_trans_tab(j).amount_shipped);
8715: asn_debug.put_line('requested_amount ' ||
8716: v_trans_tab(j).requested_amount);
8717: asn_debug.put_line('material_stored_amount ' ||

Line 8715: asn_debug.put_line('requested_amount ' ||

8711: asn_debug.put_line('matching_basis ' ||
8712: v_trans_tab(j).matching_basis);
8713: asn_debug.put_line('amount_shipped ' ||
8714: v_trans_tab(j).amount_shipped);
8715: asn_debug.put_line('requested_amount ' ||
8716: v_trans_tab(j).requested_amount);
8717: asn_debug.put_line('material_stored_amount ' ||
8718: v_trans_tab(j).material_stored_amount);
8719: asn_debug.put_line('replenish_order_line_id' ||

Line 8717: asn_debug.put_line('material_stored_amount ' ||

8713: asn_debug.put_line('amount_shipped ' ||
8714: v_trans_tab(j).amount_shipped);
8715: asn_debug.put_line('requested_amount ' ||
8716: v_trans_tab(j).requested_amount);
8717: asn_debug.put_line('material_stored_amount ' ||
8718: v_trans_tab(j).material_stored_amount);
8719: asn_debug.put_line('replenish_order_line_id' ||
8720: v_trans_tab(j).replenish_order_line_id);
8721: END IF;

Line 8719: asn_debug.put_line('replenish_order_line_id' ||

8715: asn_debug.put_line('requested_amount ' ||
8716: v_trans_tab(j).requested_amount);
8717: asn_debug.put_line('material_stored_amount ' ||
8718: v_trans_tab(j).material_stored_amount);
8719: asn_debug.put_line('replenish_order_line_id' ||
8720: v_trans_tab(j).replenish_order_line_id);
8721: END IF;
8722:
8723: rcv_asn_interface_trx_ins_pkg.insert_row(v_trans_tab(j).row_id,

Line 8967: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);

8963: v_trans_tab(j).requested_amount,
8964: v_trans_tab(j).material_stored_amount,
8965: v_trans_tab(j).replenish_order_line_id
8966: );
8967: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);
8968: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8969: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);
8970:
8971: IF v_trans_tab(j).matching_basis <> 'AMOUNT' THEN

Line 8968: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));

8964: v_trans_tab(j).material_stored_amount,
8965: v_trans_tab(j).replenish_order_line_id
8966: );
8967: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);
8968: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8969: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);
8970:
8971: IF v_trans_tab(j).matching_basis <> 'AMOUNT' THEN
8972: l_ls_table(l_ls_table_idx).orig_interface_trx_id := l_orig_trx_id;

Line 8969: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);

8965: v_trans_tab(j).replenish_order_line_id
8966: );
8967: asn_debug.put_line('RowId ' || v_trans_tab(j).row_id);
8968: asn_debug.put_line('Interface Id ' || TO_CHAR(v_trans_tab(j).interface_transaction_id));
8969: asn_debug.put_line('matching_basis=' || v_trans_tab(j).matching_basis);
8970:
8971: IF v_trans_tab(j).matching_basis <> 'AMOUNT' THEN
8972: l_ls_table(l_ls_table_idx).orig_interface_trx_id := l_orig_trx_id;
8973: l_ls_table(l_ls_table_idx).new_interface_trx_id := v_trans_tab(j).interface_transaction_id;

Line 9008: IF (g_asn_debug = 'Y') THEN

9004: * still linked to rti with the interface_transaction_id. This api
9005: * will split the mtli and msni rows similar to rti rows and will
9006: * link with the correct ids.
9007: */
9008: IF (g_asn_debug = 'Y') THEN
9009: asn_debug.put_line('l_ls_table.COUNT: ' || l_ls_table.COUNT);
9010: END IF;
9011:
9012: IF l_ls_table.COUNT > 0 THEN --{

Line 9009: asn_debug.put_line('l_ls_table.COUNT: ' || l_ls_table.COUNT);

9005: * will split the mtli and msni rows similar to rti rows and will
9006: * link with the correct ids.
9007: */
9008: IF (g_asn_debug = 'Y') THEN
9009: asn_debug.put_line('l_ls_table.COUNT: ' || l_ls_table.COUNT);
9010: END IF;
9011:
9012: IF l_ls_table.COUNT > 0 THEN --{
9013: IF (g_asn_debug = 'Y') THEN

Line 9013: IF (g_asn_debug = 'Y') THEN

9009: asn_debug.put_line('l_ls_table.COUNT: ' || l_ls_table.COUNT);
9010: END IF;
9011:
9012: IF l_ls_table.COUNT > 0 THEN --{
9013: IF (g_asn_debug = 'Y') THEN
9014: asn_debug.put_line('Calling split_lot_serial');
9015: END IF;
9016:
9017: l_return := inv_rcv_integration_apis.split_lot_serial(p_api_version => l_api_version,

Line 9014: asn_debug.put_line('Calling split_lot_serial');

9010: END IF;
9011:
9012: IF l_ls_table.COUNT > 0 THEN --{
9013: IF (g_asn_debug = 'Y') THEN
9014: asn_debug.put_line('Calling split_lot_serial');
9015: END IF;
9016:
9017: l_return := inv_rcv_integration_apis.split_lot_serial(p_api_version => l_api_version,
9018: p_init_msg_lst => fnd_api.g_false,

Line 9025: IF (g_asn_debug = 'Y') THEN

9021: x_msg_data => l_msg_data,
9022: p_new_rti_info => l_ls_table
9023: );
9024:
9025: IF (g_asn_debug = 'Y') THEN
9026: asn_debug.put_line('After split_lot_serial Api');
9027: END IF;
9028:
9029: -- if lot serial validation failed, then fail all these split rows

Line 9026: asn_debug.put_line('After split_lot_serial Api');

9022: p_new_rti_info => l_ls_table
9023: );
9024:
9025: IF (g_asn_debug = 'Y') THEN
9026: asn_debug.put_line('After split_lot_serial Api');
9027: END IF;
9028:
9029: -- if lot serial validation failed, then fail all these split rows
9030: IF ( (NOT l_return)

Line 9032: IF (g_asn_debug = 'Y') THEN

9028:
9029: -- if lot serial validation failed, then fail all these split rows
9030: IF ( (NOT l_return)
9031: OR (l_return_status <> fnd_api.g_ret_sts_success)) THEN --{
9032: IF (g_asn_debug = 'Y') THEN
9033: asn_debug.put_line('split_lot_serial Api has errors');
9034:
9035: IF l_return THEN
9036: asn_debug.put_line('return value: true');

Line 9033: asn_debug.put_line('split_lot_serial Api has errors');

9029: -- if lot serial validation failed, then fail all these split rows
9030: IF ( (NOT l_return)
9031: OR (l_return_status <> fnd_api.g_ret_sts_success)) THEN --{
9032: IF (g_asn_debug = 'Y') THEN
9033: asn_debug.put_line('split_lot_serial Api has errors');
9034:
9035: IF l_return THEN
9036: asn_debug.put_line('return value: true');
9037: ELSE

Line 9036: asn_debug.put_line('return value: true');

9032: IF (g_asn_debug = 'Y') THEN
9033: asn_debug.put_line('split_lot_serial Api has errors');
9034:
9035: IF l_return THEN
9036: asn_debug.put_line('return value: true');
9037: ELSE
9038: asn_debug.put_line('return value: false');
9039: END IF;
9040:

Line 9038: asn_debug.put_line('return value: false');

9034:
9035: IF l_return THEN
9036: asn_debug.put_line('return value: true');
9037: ELSE
9038: asn_debug.put_line('return value: false');
9039: END IF;
9040:
9041: asn_debug.put_line('x_return_status: ' || l_return_status);
9042: asn_debug.put_line('x_msg_count: ' || l_msg_count);

Line 9041: asn_debug.put_line('x_return_status: ' || l_return_status);

9037: ELSE
9038: asn_debug.put_line('return value: false');
9039: END IF;
9040:
9041: asn_debug.put_line('x_return_status: ' || l_return_status);
9042: asn_debug.put_line('x_msg_count: ' || l_msg_count);
9043: asn_debug.put_line('x_msg_data: ' || l_msg_data);
9044: END IF;
9045:

Line 9042: asn_debug.put_line('x_msg_count: ' || l_msg_count);

9038: asn_debug.put_line('return value: false');
9039: END IF;
9040:
9041: asn_debug.put_line('x_return_status: ' || l_return_status);
9042: asn_debug.put_line('x_msg_count: ' || l_msg_count);
9043: asn_debug.put_line('x_msg_data: ' || l_msg_data);
9044: END IF;
9045:
9046: l_message := fnd_msg_pub.get(p_msg_index => fnd_msg_pub.g_last, p_encoded => fnd_api.g_false);

Line 9043: asn_debug.put_line('x_msg_data: ' || l_msg_data);

9039: END IF;
9040:
9041: asn_debug.put_line('x_return_status: ' || l_return_status);
9042: asn_debug.put_line('x_msg_count: ' || l_msg_count);
9043: asn_debug.put_line('x_msg_data: ' || l_msg_data);
9044: END IF;
9045:
9046: l_message := fnd_msg_pub.get(p_msg_index => fnd_msg_pub.g_last, p_encoded => fnd_api.g_false);
9047:

Line 9077: IF (g_asn_debug = 'Y') THEN

9073: END IF; --} if split_lot_serial failed
9074: END IF; --} if l_ls_table.count > 0
9075: END IF; --} if v_trans_tab.count > 0
9076:
9077: IF (g_asn_debug = 'Y') THEN
9078: asn_debug.put_line('Exit handle_rcv_asn_transactions');
9079: END IF;
9080: END handle_rcv_asn_transactions;
9081:

Line 9078: asn_debug.put_line('Exit handle_rcv_asn_transactions');

9074: END IF; --} if l_ls_table.count > 0
9075: END IF; --} if v_trans_tab.count > 0
9076:
9077: IF (g_asn_debug = 'Y') THEN
9078: asn_debug.put_line('Exit handle_rcv_asn_transactions');
9079: END IF;
9080: END handle_rcv_asn_transactions;
9081:
9082: PROCEDURE derive_vendor_trans_del(

Line 9090: IF (g_asn_debug = 'Y') THEN

9086: x_header_record IN rcv_roi_preprocessor.header_rec_type
9087: ) IS
9088: test NUMBER;
9089: BEGIN
9090: IF (g_asn_debug = 'Y') THEN
9091: asn_debug.put_line('enter derive_vendor_trans_del ');
9092: END IF;
9093:
9094:

Line 9091: asn_debug.put_line('enter derive_vendor_trans_del ');

9087: ) IS
9088: test NUMBER;
9089: BEGIN
9090: IF (g_asn_debug = 'Y') THEN
9091: asn_debug.put_line('enter derive_vendor_trans_del ');
9092: END IF;
9093:
9094:
9095: /* Derive the to_org_id */

Line 9102: IF (g_asn_debug = 'Y') THEN

9098: x_header_record
9099: );
9100:
9101: IF (x_cascaded_table(n).unit_of_measure IS NOT NULL) THEN
9102: IF (g_asn_debug = 'Y') THEN
9103: asn_debug.put_line('X_progress ' || x_progress);
9104: END IF;
9105:
9106: SELECT muom.uom_code

Line 9103: asn_debug.put_line('X_progress ' || x_progress);

9099: );
9100:
9101: IF (x_cascaded_table(n).unit_of_measure IS NOT NULL) THEN
9102: IF (g_asn_debug = 'Y') THEN
9103: asn_debug.put_line('X_progress ' || x_progress);
9104: END IF;
9105:
9106: SELECT muom.uom_code
9107: INTO x_cascaded_table(n).uom_code

Line 9111: IF (g_asn_debug = 'Y') THEN

9107: INTO x_cascaded_table(n).uom_code
9108: FROM mtl_units_of_measure muom
9109: WHERE muom.unit_of_measure = x_cascaded_table(n).unit_of_measure;
9110: ELSE
9111: IF (g_asn_debug = 'Y') THEN
9112: asn_debug.put_line('uom_code not derived as unit_of_measure is null');
9113: END IF;
9114: END IF;
9115:

Line 9112: asn_debug.put_line('uom_code not derived as unit_of_measure is null');

9108: FROM mtl_units_of_measure muom
9109: WHERE muom.unit_of_measure = x_cascaded_table(n).unit_of_measure;
9110: ELSE
9111: IF (g_asn_debug = 'Y') THEN
9112: asn_debug.put_line('uom_code not derived as unit_of_measure is null');
9113: END IF;
9114: END IF;
9115:
9116: x_progress := '026';

Line 9163: IF (g_asn_debug = 'Y') THEN

9159: /* This can be a third party which means we will have
9160: * parent_source_transaction_num populated or it is a child of
9161: * some other transaction.
9162: */
9163: IF (g_asn_debug = 'Y') THEN
9164: asn_debug.put_line('Enter Derive_parent_id');
9165: END IF;
9166:
9167: IF (x_cascaded_table(n).parent_interface_txn_id IS NOT NULL) THEN --{

Line 9164: asn_debug.put_line('Enter Derive_parent_id');

9160: * parent_source_transaction_num populated or it is a child of
9161: * some other transaction.
9162: */
9163: IF (g_asn_debug = 'Y') THEN
9164: asn_debug.put_line('Enter Derive_parent_id');
9165: END IF;
9166:
9167: IF (x_cascaded_table(n).parent_interface_txn_id IS NOT NULL) THEN --{
9168: /* Check whether it is still in cascaded table */

Line 9174: IF (g_asn_debug = 'Y') THEN

9170: IF (x_cascaded_table(i).interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id) THEN
9171: derive_values_from_plsql_table := TRUE;
9172: cascaded_table_index := i;
9173:
9174: IF (g_asn_debug = 'Y') THEN
9175: asn_debug.put_line('set derive_values_from_plsql_table true ' || cascaded_table_index);
9176: END IF;
9177:
9178: x_cascaded_table(n).derive := 'Y';

Line 9175: asn_debug.put_line('set derive_values_from_plsql_table true ' || cascaded_table_index);

9171: derive_values_from_plsql_table := TRUE;
9172: cascaded_table_index := i;
9173:
9174: IF (g_asn_debug = 'Y') THEN
9175: asn_debug.put_line('set derive_values_from_plsql_table true ' || cascaded_table_index);
9176: END IF;
9177:
9178: x_cascaded_table(n).derive := 'Y';
9179: x_cascaded_table(n).derive_index := cascaded_table_index;

Line 9189: IF (g_asn_debug = 'Y') THEN

9185: IF (NOT derive_values_from_plsql_table) THEN --{
9186: derive_values_from_rti := TRUE;
9187: x_cascaded_table(n).derive := 'Y';
9188:
9189: IF (g_asn_debug = 'Y') THEN
9190: asn_debug.put_line('set derive_values_from_rti true ' || x_cascaded_table(n).derive_index);
9191: END IF;
9192: END IF; /*if (not derived_values_from_table) then */ --}
9193: END IF; --}

Line 9190: asn_debug.put_line('set derive_values_from_rti true ' || x_cascaded_table(n).derive_index);

9186: derive_values_from_rti := TRUE;
9187: x_cascaded_table(n).derive := 'Y';
9188:
9189: IF (g_asn_debug = 'Y') THEN
9190: asn_debug.put_line('set derive_values_from_rti true ' || x_cascaded_table(n).derive_index);
9191: END IF;
9192: END IF; /*if (not derived_values_from_table) then */ --}
9193: END IF; --}
9194:

Line 9201: IF (g_asn_debug = 'Y') THEN

9197: /* did not find Parent_txn_id in rti but
9198: * parent_source_transaction_num is not null.
9199: * Hence a child transaction.
9200: */
9201: IF (g_asn_debug = 'Y') THEN
9202: asn_debug.put_line('parent_interface_txn_id is null but parent_source_transaction_num is not null');
9203: END IF;
9204:
9205: IF x_cascaded_table(n).parent_transaction_id IS NULL THEN --{

Line 9202: asn_debug.put_line('parent_interface_txn_id is null but parent_source_transaction_num is not null');

9198: * parent_source_transaction_num is not null.
9199: * Hence a child transaction.
9200: */
9201: IF (g_asn_debug = 'Y') THEN
9202: asn_debug.put_line('parent_interface_txn_id is null but parent_source_transaction_num is not null');
9203: END IF;
9204:
9205: IF x_cascaded_table(n).parent_transaction_id IS NULL THEN --{
9206: /* Check whether it is still in cascaded table */

Line 9220: IF (g_asn_debug = 'Y') THEN

9216: END LOOP;
9217:
9218: /* Derive the values from RTI if already posted */
9219: IF (NOT derive_values_from_plsql_table) THEN --{
9220: IF (g_asn_debug = 'Y') THEN
9221: asn_debug.put_line('derive_values_from_plsql_table is not set');
9222: END IF;
9223:
9224: BEGIN

Line 9221: asn_debug.put_line('derive_values_from_plsql_table is not set');

9217:
9218: /* Derive the values from RTI if already posted */
9219: IF (NOT derive_values_from_plsql_table) THEN --{
9220: IF (g_asn_debug = 'Y') THEN
9221: asn_debug.put_line('derive_values_from_plsql_table is not set');
9222: END IF;
9223:
9224: BEGIN
9225: SELECT interface_transaction_id

Line 9232: IF (g_asn_debug = 'Y') THEN

9228: WHERE GROUP_ID = x_cascaded_table(n).GROUP_ID
9229: AND source_transaction_num = x_cascaded_table(n).parent_source_transaction_num;
9230: EXCEPTION
9231: WHEN NO_DATA_FOUND THEN
9232: IF (g_asn_debug = 'Y') THEN
9233: asn_debug.put_line('Exception in rti with source_transaction_num ');
9234: END IF;
9235:
9236: x_cascaded_table(n).parent_interface_txn_id := NULL;

Line 9233: asn_debug.put_line('Exception in rti with source_transaction_num ');

9229: AND source_transaction_num = x_cascaded_table(n).parent_source_transaction_num;
9230: EXCEPTION
9231: WHEN NO_DATA_FOUND THEN
9232: IF (g_asn_debug = 'Y') THEN
9233: asn_debug.put_line('Exception in rti with source_transaction_num ');
9234: END IF;
9235:
9236: x_cascaded_table(n).parent_interface_txn_id := NULL;
9237: END;

Line 9242: IF (g_asn_debug = 'Y') THEN

9238:
9239: derive_values_from_rti := TRUE;
9240: x_cascaded_table(n).derive := 'Y';
9241:
9242: IF (g_asn_debug = 'Y') THEN
9243: asn_debug.put_line('derive_values_from_rti is true');
9244: END IF;
9245: END IF; /*if (not derived_values_from_table) then */ --}
9246: END IF; /* if x_cascaded_table(n).parent_transaction_id is

Line 9243: asn_debug.put_line('derive_values_from_rti is true');

9239: derive_values_from_rti := TRUE;
9240: x_cascaded_table(n).derive := 'Y';
9241:
9242: IF (g_asn_debug = 'Y') THEN
9243: asn_debug.put_line('derive_values_from_rti is true');
9244: END IF;
9245: END IF; /*if (not derived_values_from_table) then */ --}
9246: END IF; /* if x_cascaded_table(n).parent_transaction_id is
9247: * null then*/ --}

Line 9260: IF (g_asn_debug = 'Y') THEN

9256: * row in rti or the pl/sql table. Hence need to insert
9257: * into po_interface_errors saying that this is a child
9258: * without any parent in rti or rt.
9259: */
9260: IF (g_asn_debug = 'Y') THEN
9261: asn_debug.put_line('NO PARENT');
9262: END IF;
9263:
9264: rcv_error_pkg.set_error_message('RCV_NO_PARENT_TRANSACTION');

Line 9261: asn_debug.put_line('NO PARENT');

9257: * into po_interface_errors saying that this is a child
9258: * without any parent in rti or rt.
9259: */
9260: IF (g_asn_debug = 'Y') THEN
9261: asn_debug.put_line('NO PARENT');
9262: END IF;
9263:
9264: rcv_error_pkg.set_error_message('RCV_NO_PARENT_TRANSACTION');
9265: RAISE e_validation_error;

Line 9275: IF (g_asn_debug = 'Y') THEN

9271: FROM rcv_transactions_interface
9272: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id;
9273: EXCEPTION
9274: WHEN OTHERS THEN
9275: IF (g_asn_debug = 'Y') THEN
9276: asn_debug.put_line('Exception in rti with parent_interface_txn_id ');
9277: END IF;
9278:
9279: RAISE e_unexpected_error;

Line 9276: asn_debug.put_line('Exception in rti with parent_interface_txn_id ');

9272: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id;
9273: EXCEPTION
9274: WHEN OTHERS THEN
9275: IF (g_asn_debug = 'Y') THEN
9276: asn_debug.put_line('Exception in rti with parent_interface_txn_id ');
9277: END IF;
9278:
9279: RAISE e_unexpected_error;
9280: END;

Line 9282: IF (g_asn_debug = 'Y') THEN

9278:
9279: RAISE e_unexpected_error;
9280: END;
9281:
9282: IF (g_asn_debug = 'Y') THEN
9283: asn_debug.put_line('l_processing_status_code from rti ' || l_processing_status_code);
9284: END IF;
9285:
9286: IF (l_processing_status_code = 'ERROR') THEN

Line 9283: asn_debug.put_line('l_processing_status_code from rti ' || l_processing_status_code);

9279: RAISE e_unexpected_error;
9280: END;
9281:
9282: IF (g_asn_debug = 'Y') THEN
9283: asn_debug.put_line('l_processing_status_code from rti ' || l_processing_status_code);
9284: END IF;
9285:
9286: IF (l_processing_status_code = 'ERROR') THEN
9287: rcv_error_pkg.set_error_message('RCV_PARENT_RECORD_ERRORED');

Line 9832: IF (g_asn_debug = 'Y') THEN

9828: l_po_dist_num NUMBER := 0;
9829: /* Bug 5354379 */
9830: l_po_rel_num NUMBER := -1; --5439085
9831: BEGIN
9832: IF (g_asn_debug = 'Y') THEN
9833: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);
9834: END IF;
9835:
9836: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN --{

Line 9833: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);

9829: /* Bug 5354379 */
9830: l_po_rel_num NUMBER := -1; --5439085
9831: BEGIN
9832: IF (g_asn_debug = 'Y') THEN
9833: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);
9834: END IF;
9835:
9836: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN --{
9837: SELECT po_header_id

Line 9856: IF (g_asn_debug = 'Y') THEN

9852: delivered to inventory or returned back to supplier.
9853: In such a case raise an error and fail the transaction.
9854: */
9855:
9856: IF (g_asn_debug = 'Y') THEN
9857: asn_debug.put_line('l_num_of_distributions is 0');
9858: END IF;
9859:
9860: x_cascaded_table(n).error_status := 'F';

Line 9857: asn_debug.put_line('l_num_of_distributions is 0');

9853: In such a case raise an error and fail the transaction.
9854: */
9855:
9856: IF (g_asn_debug = 'Y') THEN
9857: asn_debug.put_line('l_num_of_distributions is 0');
9858: END IF;
9859:
9860: x_cascaded_table(n).error_status := 'F';
9861: rcv_error_pkg.set_error_message('RCV_NO_RECEIVE_SUPPLY', x_cascaded_table(n).error_message);

Line 9868: IF (g_asn_debug = 'Y') THEN

9864:
9865: END IF; /* End of FP for bug 4654553 */
9866: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9867: AND (l_num_of_distributions > 1)) THEN --{
9868: IF (g_asn_debug = 'Y') THEN
9869: asn_debug.put_line(' open po_deliver table ' || x_cascaded_table(n).parent_transaction_id);
9870: END IF;
9871:
9872: /* Bug3553796 - Deriving Distribution number when Distribution

Line 9869: asn_debug.put_line(' open po_deliver table ' || x_cascaded_table(n).parent_transaction_id);

9865: END IF; /* End of FP for bug 4654553 */
9866: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9867: AND (l_num_of_distributions > 1)) THEN --{
9868: IF (g_asn_debug = 'Y') THEN
9869: asn_debug.put_line(' open po_deliver table ' || x_cascaded_table(n).parent_transaction_id);
9870: END IF;
9871:
9872: /* Bug3553796 - Deriving Distribution number when Distribution
9873: id is available. */

Line 9879: IF (g_asn_debug = 'Y') THEN

9875: /* Bug3553796 - START */
9876: IF ( x_cascaded_table(n).po_distribution_id IS NOT NULL
9877: AND (x_cascaded_table(n).document_distribution_num IS NULL)) THEN
9878: BEGIN
9879: IF (g_asn_debug = 'Y') THEN
9880: asn_debug.put_line('Deriving Distribution Number from Distribution Id:' || x_cascaded_table(n).po_distribution_id);
9881: END IF;
9882:
9883: SELECT distribution_num

Line 9880: asn_debug.put_line('Deriving Distribution Number from Distribution Id:' || x_cascaded_table(n).po_distribution_id);

9876: IF ( x_cascaded_table(n).po_distribution_id IS NOT NULL
9877: AND (x_cascaded_table(n).document_distribution_num IS NULL)) THEN
9878: BEGIN
9879: IF (g_asn_debug = 'Y') THEN
9880: asn_debug.put_line('Deriving Distribution Number from Distribution Id:' || x_cascaded_table(n).po_distribution_id);
9881: END IF;
9882:
9883: SELECT distribution_num
9884: INTO x_cascaded_table(n).document_distribution_num

Line 9888: IF (g_asn_debug = 'Y') THEN

9884: INTO x_cascaded_table(n).document_distribution_num
9885: FROM po_distributions
9886: WHERE po_distribution_id = x_cascaded_table(n).po_distribution_id;
9887:
9888: IF (g_asn_debug = 'Y') THEN
9889: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);
9890: END IF;
9891: EXCEPTION
9892: WHEN OTHERS THEN

Line 9889: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);

9885: FROM po_distributions
9886: WHERE po_distribution_id = x_cascaded_table(n).po_distribution_id;
9887:
9888: IF (g_asn_debug = 'Y') THEN
9889: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);
9890: END IF;
9891: EXCEPTION
9892: WHEN OTHERS THEN
9893: IF (g_asn_debug = 'Y') THEN

Line 9893: IF (g_asn_debug = 'Y') THEN

9889: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);
9890: END IF;
9891: EXCEPTION
9892: WHEN OTHERS THEN
9893: IF (g_asn_debug = 'Y') THEN
9894: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
9895: END IF;
9896: END;
9897: END IF;

Line 9894: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');

9890: END IF;
9891: EXCEPTION
9892: WHEN OTHERS THEN
9893: IF (g_asn_debug = 'Y') THEN
9894: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
9895: END IF;
9896: END;
9897: END IF;
9898:

Line 9901: IF (g_asn_debug = 'Y') THEN

9897: END IF;
9898:
9899: /* Bug3553796 - END */
9900: IF (x_cascaded_table(n).document_distribution_num IS NULL) THEN --{
9901: IF (g_asn_debug = 'Y') THEN
9902: asn_debug.put_line('Distribution num is required for delivering multi distribution Po');
9903: END IF;
9904:
9905: x_cascaded_table(n).error_status := 'F';

Line 9902: asn_debug.put_line('Distribution num is required for delivering multi distribution Po');

9898:
9899: /* Bug3553796 - END */
9900: IF (x_cascaded_table(n).document_distribution_num IS NULL) THEN --{
9901: IF (g_asn_debug = 'Y') THEN
9902: asn_debug.put_line('Distribution num is required for delivering multi distribution Po');
9903: END IF;
9904:
9905: x_cascaded_table(n).error_status := 'F';
9906: rcv_error_pkg.set_error_message('RCV_DIST_NUM_REQ', x_cascaded_table(n).error_message);

Line 9941: IF (g_asn_debug = 'Y') THEN

9937: NULL;
9938: END;
9939: END IF; --}
9940:
9941: IF (g_asn_debug = 'Y') THEN
9942: asn_debug.put_line('l_num_of_distributions ' || l_num_of_distributions);
9943: END IF;
9944:
9945: IF already_derived THEN --{

Line 9942: asn_debug.put_line('l_num_of_distributions ' || l_num_of_distributions);

9938: END;
9939: END IF; --}
9940:
9941: IF (g_asn_debug = 'Y') THEN
9942: asn_debug.put_line('l_num_of_distributions ' || l_num_of_distributions);
9943: END IF;
9944:
9945: IF already_derived THEN --{
9946: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')

Line 9948: IF (g_asn_debug = 'Y') THEN

9944:
9945: IF already_derived THEN --{
9946: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9947: AND (l_num_of_distributions = 1)) THEN --{
9948: IF (g_asn_debug = 'Y') THEN
9949: asn_debug.put_line(' open po_single_deliver table ' || x_cascaded_table(n).parent_transaction_id);
9950: END IF;
9951:
9952: OPEN po_single_deliver(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);

Line 9949: asn_debug.put_line(' open po_single_deliver table ' || x_cascaded_table(n).parent_transaction_id);

9945: IF already_derived THEN --{
9946: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9947: AND (l_num_of_distributions = 1)) THEN --{
9948: IF (g_asn_debug = 'Y') THEN
9949: asn_debug.put_line(' open po_single_deliver table ' || x_cascaded_table(n).parent_transaction_id);
9950: END IF;
9951:
9952: OPEN po_single_deliver(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);
9953: ELSIF(x_cascaded_table(n).transaction_type <> 'DELIVER') THEN --}{

Line 9955: IF (g_asn_debug = 'Y') THEN

9951:
9952: OPEN po_single_deliver(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);
9953: ELSIF(x_cascaded_table(n).transaction_type <> 'DELIVER') THEN --}{
9954: /* For transfers, accept and reject */
9955: IF (g_asn_debug = 'Y') THEN
9956: asn_debug.put_line(' open po_transfer table ' || x_cascaded_table(n).parent_transaction_id);
9957: END IF;
9958:
9959: OPEN po_transfer(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);

Line 9956: asn_debug.put_line(' open po_transfer table ' || x_cascaded_table(n).parent_transaction_id);

9952: OPEN po_single_deliver(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);
9953: ELSIF(x_cascaded_table(n).transaction_type <> 'DELIVER') THEN --}{
9954: /* For transfers, accept and reject */
9955: IF (g_asn_debug = 'Y') THEN
9956: asn_debug.put_line(' open po_transfer table ' || x_cascaded_table(n).parent_transaction_id);
9957: END IF;
9958:
9959: OPEN po_transfer(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);
9960: END IF; --}

Line 9988: IF (g_asn_debug = 'Y') THEN

9984: WHERE line_location_id = (SELECT po_line_location_id
9985: FROM rcv_transactions_interface
9986: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id);
9987:
9988: IF (g_asn_debug = 'Y') THEN
9989: asn_debug.put_line('l_num_of_distributions ' || l_num_of_distributions);
9990: END IF;
9991:
9992: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')

Line 9989: asn_debug.put_line('l_num_of_distributions ' || l_num_of_distributions);

9985: FROM rcv_transactions_interface
9986: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id);
9987:
9988: IF (g_asn_debug = 'Y') THEN
9989: asn_debug.put_line('l_num_of_distributions ' || l_num_of_distributions);
9990: END IF;
9991:
9992: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9993: AND (l_num_of_distributions = 1)) THEN --{

Line 9994: IF (g_asn_debug = 'Y') THEN

9990: END IF;
9991:
9992: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9993: AND (l_num_of_distributions = 1)) THEN --{
9994: IF (g_asn_debug = 'Y') THEN
9995: asn_debug.put_line(' open Single deliver cursor from rti');
9996: END IF;
9997:
9998: OPEN po_single_deliver_rti(x_cascaded_table(n).parent_interface_txn_id);

Line 9995: asn_debug.put_line(' open Single deliver cursor from rti');

9991:
9992: IF ( (x_cascaded_table(n).transaction_type = 'DELIVER')
9993: AND (l_num_of_distributions = 1)) THEN --{
9994: IF (g_asn_debug = 'Y') THEN
9995: asn_debug.put_line(' open Single deliver cursor from rti');
9996: END IF;
9997:
9998: OPEN po_single_deliver_rti(x_cascaded_table(n).parent_interface_txn_id);
9999: ELSIF( (x_cascaded_table(n).transaction_type = 'DELIVER')

Line 10010: IF (g_asn_debug = 'Y') THEN

10006: IF ( x_cascaded_table(n).po_distribution_id IS NOT NULL
10007: AND (x_cascaded_table(n).document_distribution_num IS NULL)) THEN
10008:
10009: BEGIN
10010: IF (g_asn_debug = 'Y') THEN
10011: asn_debug.put_line('Deriving Distribution Number from Distribution Id:' || x_cascaded_table(n).po_distribution_id);
10012: END IF;
10013:
10014: SELECT distribution_num

Line 10011: asn_debug.put_line('Deriving Distribution Number from Distribution Id:' || x_cascaded_table(n).po_distribution_id);

10007: AND (x_cascaded_table(n).document_distribution_num IS NULL)) THEN
10008:
10009: BEGIN
10010: IF (g_asn_debug = 'Y') THEN
10011: asn_debug.put_line('Deriving Distribution Number from Distribution Id:' || x_cascaded_table(n).po_distribution_id);
10012: END IF;
10013:
10014: SELECT distribution_num
10015: INTO x_cascaded_table(n).document_distribution_num

Line 10019: IF (g_asn_debug = 'Y') THEN

10015: INTO x_cascaded_table(n).document_distribution_num
10016: FROM po_distributions
10017: WHERE po_distribution_id = x_cascaded_table(n).po_distribution_id;
10018:
10019: IF (g_asn_debug = 'Y') THEN
10020: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);
10021: END IF;
10022:
10023: EXCEPTION

Line 10020: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);

10016: FROM po_distributions
10017: WHERE po_distribution_id = x_cascaded_table(n).po_distribution_id;
10018:
10019: IF (g_asn_debug = 'Y') THEN
10020: asn_debug.put_line('Derived Distribution Number:' || x_cascaded_table(n).document_distribution_num);
10021: END IF;
10022:
10023: EXCEPTION
10024: WHEN OTHERS THEN

Line 10025: IF (g_asn_debug = 'Y') THEN

10021: END IF;
10022:
10023: EXCEPTION
10024: WHEN OTHERS THEN
10025: IF (g_asn_debug = 'Y') THEN
10026: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
10027: END IF;
10028: END;
10029: END IF;

Line 10026: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');

10022:
10023: EXCEPTION
10024: WHEN OTHERS THEN
10025: IF (g_asn_debug = 'Y') THEN
10026: asn_debug.put_line('wrong po_distribution_id entered in rcv_transactions_interface');
10027: END IF;
10028: END;
10029: END IF;
10030: -- } bug 5354379

Line 10033: IF (g_asn_debug = 'Y') THEN

10029: END IF;
10030: -- } bug 5354379
10031:
10032: IF (x_cascaded_table(n).document_distribution_num IS NULL) THEN --{
10033: IF (g_asn_debug = 'Y') THEN
10034: asn_debug.put_line('Distribution num is required for delivering multi distribution Po');
10035: END IF;
10036:
10037: x_cascaded_table(n).error_status := 'F';

Line 10034: asn_debug.put_line('Distribution num is required for delivering multi distribution Po');

10030: -- } bug 5354379
10031:
10032: IF (x_cascaded_table(n).document_distribution_num IS NULL) THEN --{
10033: IF (g_asn_debug = 'Y') THEN
10034: asn_debug.put_line('Distribution num is required for delivering multi distribution Po');
10035: END IF;
10036:
10037: x_cascaded_table(n).error_status := 'F';
10038: rcv_error_pkg.set_error_message('RCV_DIST_NUM_REQ', x_cascaded_table(n).error_message);

Line 10042: IF (g_asn_debug = 'Y') THEN

10038: rcv_error_pkg.set_error_message('RCV_DIST_NUM_REQ', x_cascaded_table(n).error_message);
10039: rcv_error_pkg.log_interface_error('INTERFACE_TRANSACTION_ID', FALSE);
10040: END IF; --}
10041:
10042: IF (g_asn_debug = 'Y') THEN
10043: asn_debug.put_line(' open Multi deliver cursor from rti');
10044: END IF;
10045:
10046: OPEN po_deliver_rti(x_cascaded_table(n).parent_interface_txn_id, x_cascaded_table(n).document_distribution_num);

Line 10043: asn_debug.put_line(' open Multi deliver cursor from rti');

10039: rcv_error_pkg.log_interface_error('INTERFACE_TRANSACTION_ID', FALSE);
10040: END IF; --}
10041:
10042: IF (g_asn_debug = 'Y') THEN
10043: asn_debug.put_line(' open Multi deliver cursor from rti');
10044: END IF;
10045:
10046: OPEN po_deliver_rti(x_cascaded_table(n).parent_interface_txn_id, x_cascaded_table(n).document_distribution_num);
10047: l_po_deliver_rti_cursor_opened := 1;--Bug 5354379

Line 10049: IF (g_asn_debug = 'Y') THEN

10045:
10046: OPEN po_deliver_rti(x_cascaded_table(n).parent_interface_txn_id, x_cascaded_table(n).document_distribution_num);
10047: l_po_deliver_rti_cursor_opened := 1;--Bug 5354379
10048: ELSE --}{
10049: IF (g_asn_debug = 'Y') THEN
10050: asn_debug.put_line(' open transfer cursor from rti');
10051: END IF;
10052:
10053: OPEN po_transfer_rti(x_cascaded_table(n).parent_interface_txn_id);

Line 10050: asn_debug.put_line(' open transfer cursor from rti');

10046: OPEN po_deliver_rti(x_cascaded_table(n).parent_interface_txn_id, x_cascaded_table(n).document_distribution_num);
10047: l_po_deliver_rti_cursor_opened := 1;--Bug 5354379
10048: ELSE --}{
10049: IF (g_asn_debug = 'Y') THEN
10050: asn_debug.put_line(' open transfer cursor from rti');
10051: END IF;
10052:
10053: OPEN po_transfer_rti(x_cascaded_table(n).parent_interface_txn_id);
10054: END IF; --}

Line 10062: IF (g_asn_debug = 'Y') THEN

10058: /******************************************************************/
10059: --check line quanity > 0
10060: x_progress := '097';
10061:
10062: IF (g_asn_debug = 'Y') THEN
10063: asn_debug.put_line('X_progress ' || x_progress);
10064: END IF;
10065:
10066: IF x_cascaded_table(n).error_status IN('S', 'W')

Line 10063: asn_debug.put_line('X_progress ' || x_progress);

10059: --check line quanity > 0
10060: x_progress := '097';
10061:
10062: IF (g_asn_debug = 'Y') THEN
10063: asn_debug.put_line('X_progress ' || x_progress);
10064: END IF;
10065:
10066: IF x_cascaded_table(n).error_status IN('S', 'W')
10067: AND x_cascaded_table(n).quantity <= 0 THEN --{

Line 10068: IF (g_asn_debug = 'Y') THEN

10064: END IF;
10065:
10066: IF x_cascaded_table(n).error_status IN('S', 'W')
10067: AND x_cascaded_table(n).quantity <= 0 THEN --{
10068: IF (g_asn_debug = 'Y') THEN
10069: asn_debug.put_line('Quantity is <= zero. Cascade will fail');
10070: END IF;
10071:
10072: x_cascaded_table(n).error_status := 'F';

Line 10069: asn_debug.put_line('Quantity is <= zero. Cascade will fail');

10065:
10066: IF x_cascaded_table(n).error_status IN('S', 'W')
10067: AND x_cascaded_table(n).quantity <= 0 THEN --{
10068: IF (g_asn_debug = 'Y') THEN
10069: asn_debug.put_line('Quantity is <= zero. Cascade will fail');
10070: END IF;
10071:
10072: x_cascaded_table(n).error_status := 'F';
10073: rcv_error_pkg.set_error_message('RCV_ENTER_QTY_GT_ZERO', x_cascaded_table(n).error_message);

Line 10089: IF (g_asn_debug = 'Y') THEN

10085: such a way that the ROI validation does'nt error out when
10086: po_line_id is populated for one time items. */
10087: x_progress := '098';
10088:
10089: IF (g_asn_debug = 'Y') THEN
10090: asn_debug.put_line('X_progress ' || x_progress);
10091: END IF;
10092:
10093: IF ( ( x_cascaded_table(n).parent_transaction_id IS NOT NULL

Line 10090: asn_debug.put_line('X_progress ' || x_progress);

10086: po_line_id is populated for one time items. */
10087: x_progress := '098';
10088:
10089: IF (g_asn_debug = 'Y') THEN
10090: asn_debug.put_line('X_progress ' || x_progress);
10091: END IF;
10092:
10093: IF ( ( x_cascaded_table(n).parent_transaction_id IS NOT NULL
10094: OR x_cascaded_table(n).parent_interface_txn_id IS NOT NULL)

Line 10098: IF (g_asn_debug = 'Y') THEN

10094: OR x_cascaded_table(n).parent_interface_txn_id IS NOT NULL)
10095: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
10096:
10097: -- Copy record from main table to temp table
10098: IF (g_asn_debug = 'Y') THEN
10099: asn_debug.put_line('Copy record from main table to temp table');
10100: END IF;
10101:
10102: current_n := 1;

Line 10099: asn_debug.put_line('Copy record from main table to temp table');

10095: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
10096:
10097: -- Copy record from main table to temp table
10098: IF (g_asn_debug = 'Y') THEN
10099: asn_debug.put_line('Copy record from main table to temp table');
10100: END IF;
10101:
10102: current_n := 1;
10103: temp_cascaded_table(current_n) := x_cascaded_table(n);

Line 10106: IF (g_asn_debug = 'Y') THEN

10102: current_n := 1;
10103: temp_cascaded_table(current_n) := x_cascaded_table(n);
10104:
10105: -- Get all rows which meet this condition
10106: IF (g_asn_debug = 'Y') THEN
10107: asn_debug.put_line('Get all rows which meet this condition');
10108: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
10109: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
10110: END IF;

Line 10107: asn_debug.put_line('Get all rows which meet this condition');

10103: temp_cascaded_table(current_n) := x_cascaded_table(n);
10104:
10105: -- Get all rows which meet this condition
10106: IF (g_asn_debug = 'Y') THEN
10107: asn_debug.put_line('Get all rows which meet this condition');
10108: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
10109: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
10110: END IF;
10111:

Line 10108: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);

10104:
10105: -- Get all rows which meet this condition
10106: IF (g_asn_debug = 'Y') THEN
10107: asn_debug.put_line('Get all rows which meet this condition');
10108: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
10109: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
10110: END IF;
10111:
10112: -- Assign shipped quantity to remaining quantity

Line 10109: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);

10105: -- Get all rows which meet this condition
10106: IF (g_asn_debug = 'Y') THEN
10107: asn_debug.put_line('Get all rows which meet this condition');
10108: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
10109: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
10110: END IF;
10111:
10112: -- Assign shipped quantity to remaining quantity
10113: IF (g_asn_debug = 'Y') THEN

Line 10113: IF (g_asn_debug = 'Y') THEN

10109: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
10110: END IF;
10111:
10112: -- Assign shipped quantity to remaining quantity
10113: IF (g_asn_debug = 'Y') THEN
10114: asn_debug.put_line('Assign populated quantity to remaining quantity ' || temp_cascaded_table(current_n).quantity);
10115: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
10116: END IF;
10117:

Line 10114: asn_debug.put_line('Assign populated quantity to remaining quantity ' || temp_cascaded_table(current_n).quantity);

10110: END IF;
10111:
10112: -- Assign shipped quantity to remaining quantity
10113: IF (g_asn_debug = 'Y') THEN
10114: asn_debug.put_line('Assign populated quantity to remaining quantity ' || temp_cascaded_table(current_n).quantity);
10115: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
10116: END IF;
10117:
10118: x_remaining_quantity := temp_cascaded_table(current_n).quantity;

Line 10115: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));

10111:
10112: -- Assign shipped quantity to remaining quantity
10113: IF (g_asn_debug = 'Y') THEN
10114: asn_debug.put_line('Assign populated quantity to remaining quantity ' || temp_cascaded_table(current_n).quantity);
10115: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
10116: END IF;
10117:
10118: x_remaining_quantity := temp_cascaded_table(current_n).quantity;
10119: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record

Line 10122: IF (g_asn_debug = 'Y') THEN

10118: x_remaining_quantity := temp_cascaded_table(current_n).quantity;
10119: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record
10120: x_remaining_qty_po_uom := 0;
10121:
10122: IF (g_asn_debug = 'Y') THEN
10123: asn_debug.put_line('Have assigned the quantity ' || x_remaining_quantity);
10124: END IF;
10125:
10126: -- Calculate tax_amount_factor for calculating tax_amount for

Line 10123: asn_debug.put_line('Have assigned the quantity ' || x_remaining_quantity);

10119: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record
10120: x_remaining_qty_po_uom := 0;
10121:
10122: IF (g_asn_debug = 'Y') THEN
10123: asn_debug.put_line('Have assigned the quantity ' || x_remaining_quantity);
10124: END IF;
10125:
10126: -- Calculate tax_amount_factor for calculating tax_amount for
10127: -- each cascaded line

Line 10135: IF (g_asn_debug = 'Y') THEN

10131: ELSE
10132: tax_amount_factor := 0;
10133: END IF;
10134:
10135: IF (g_asn_debug = 'Y') THEN
10136: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
10137: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));
10138: END IF;
10139:

Line 10136: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));

10132: tax_amount_factor := 0;
10133: END IF;
10134:
10135: IF (g_asn_debug = 'Y') THEN
10136: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
10137: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));
10138: END IF;
10139:
10140: x_first_trans := TRUE;

Line 10137: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));

10133: END IF;
10134:
10135: IF (g_asn_debug = 'Y') THEN
10136: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
10137: asn_debug.put_line('Shipped Quantity : ' || TO_CHAR(x_remaining_quantity));
10138: END IF;
10139:
10140: x_first_trans := TRUE;
10141: transaction_ok := FALSE;

Line 10143: IF (g_asn_debug = 'Y') THEN

10139:
10140: x_first_trans := TRUE;
10141: transaction_ok := FALSE;
10142:
10143: IF (g_asn_debug = 'Y') THEN
10144: asn_debug.put_line('Before starting Cascade');
10145: END IF;
10146:
10147: IF (g_asn_debug = 'Y') THEN

Line 10144: asn_debug.put_line('Before starting Cascade');

10140: x_first_trans := TRUE;
10141: transaction_ok := FALSE;
10142:
10143: IF (g_asn_debug = 'Y') THEN
10144: asn_debug.put_line('Before starting Cascade');
10145: END IF;
10146:
10147: IF (g_asn_debug = 'Y') THEN
10148: asn_debug.put_line('Record Count = ' || x_record_count);

Line 10147: IF (g_asn_debug = 'Y') THEN

10143: IF (g_asn_debug = 'Y') THEN
10144: asn_debug.put_line('Before starting Cascade');
10145: END IF;
10146:
10147: IF (g_asn_debug = 'Y') THEN
10148: asn_debug.put_line('Record Count = ' || x_record_count);
10149: END IF;
10150:
10151: LOOP --{

Line 10148: asn_debug.put_line('Record Count = ' || x_record_count);

10144: asn_debug.put_line('Before starting Cascade');
10145: END IF;
10146:
10147: IF (g_asn_debug = 'Y') THEN
10148: asn_debug.put_line('Record Count = ' || x_record_count);
10149: END IF;
10150:
10151: LOOP --{
10152: IF (g_asn_debug = 'Y') THEN

Line 10152: IF (g_asn_debug = 'Y') THEN

10148: asn_debug.put_line('Record Count = ' || x_record_count);
10149: END IF;
10150:
10151: LOOP --{
10152: IF (g_asn_debug = 'Y') THEN
10153: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
10154: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
10155: END IF;
10156:

Line 10153: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));

10149: END IF;
10150:
10151: LOOP --{
10152: IF (g_asn_debug = 'Y') THEN
10153: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
10154: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
10155: END IF;
10156:
10157: /*

Line 10154: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));

10150:
10151: LOOP --{
10152: IF (g_asn_debug = 'Y') THEN
10153: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
10154: asn_debug.put_line('Remaining Quantity ASN UOM ' || TO_CHAR(x_remaining_quantity));
10155: END IF;
10156:
10157: /*
10158: ** Fetch the appropriate record

Line 10160: IF (g_asn_debug = 'Y') THEN

10156:
10157: /*
10158: ** Fetch the appropriate record
10159: */
10160: IF (g_asn_debug = 'Y') THEN
10161: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
10162: END IF;
10163:
10164: IF (po_transfer%ISOPEN) THEN --{

Line 10161: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);

10157: /*
10158: ** Fetch the appropriate record
10159: */
10160: IF (g_asn_debug = 'Y') THEN
10161: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
10162: END IF;
10163:
10164: IF (po_transfer%ISOPEN) THEN --{
10165: IF (g_asn_debug = 'Y') THEN

Line 10165: IF (g_asn_debug = 'Y') THEN

10161: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
10162: END IF;
10163:
10164: IF (po_transfer%ISOPEN) THEN --{
10165: IF (g_asn_debug = 'Y') THEN
10166: asn_debug.put_line(' fetch po_transfer');
10167: END IF;
10168:
10169: FETCH po_transfer INTO x_po_transferrec;

Line 10166: asn_debug.put_line(' fetch po_transfer');

10162: END IF;
10163:
10164: IF (po_transfer%ISOPEN) THEN --{
10165: IF (g_asn_debug = 'Y') THEN
10166: asn_debug.put_line(' fetch po_transfer');
10167: END IF;
10168:
10169: FETCH po_transfer INTO x_po_transferrec;
10170:

Line 10177: IF (g_asn_debug = 'Y') THEN

10173: END IF;
10174:
10175: rows_fetched := po_transfer%ROWCOUNT;
10176: ELSIF(po_single_deliver%ISOPEN) THEN --}{
10177: IF (g_asn_debug = 'Y') THEN
10178: asn_debug.put_line(' fetch po_single_deliver');
10179: END IF;
10180:
10181: FETCH po_single_deliver INTO x_po_transferrec;

Line 10178: asn_debug.put_line(' fetch po_single_deliver');

10174:
10175: rows_fetched := po_transfer%ROWCOUNT;
10176: ELSIF(po_single_deliver%ISOPEN) THEN --}{
10177: IF (g_asn_debug = 'Y') THEN
10178: asn_debug.put_line(' fetch po_single_deliver');
10179: END IF;
10180:
10181: FETCH po_single_deliver INTO x_po_transferrec;
10182:

Line 10184: IF (g_asn_debug = 'Y') THEN

10180:
10181: FETCH po_single_deliver INTO x_po_transferrec;
10182:
10183: IF (po_single_deliver%NOTFOUND) THEN
10184: IF (g_asn_debug = 'Y') THEN
10185: asn_debug.put_line('Single Deliver last row');
10186: END IF;
10187:
10188: lastrecord := TRUE;

Line 10185: asn_debug.put_line('Single Deliver last row');

10181: FETCH po_single_deliver INTO x_po_transferrec;
10182:
10183: IF (po_single_deliver%NOTFOUND) THEN
10184: IF (g_asn_debug = 'Y') THEN
10185: asn_debug.put_line('Single Deliver last row');
10186: END IF;
10187:
10188: lastrecord := TRUE;
10189: END IF;

Line 10193: IF (g_asn_debug = 'Y') THEN

10189: END IF;
10190:
10191: rows_fetched := po_single_deliver%ROWCOUNT;
10192: ELSIF(po_transfer_rti%ISOPEN) THEN --}{
10193: IF (g_asn_debug = 'Y') THEN
10194: asn_debug.put_line(' fetch po_transfer_rti');
10195: END IF;
10196:
10197: FETCH po_transfer_rti INTO x_po_transferrec;

Line 10194: asn_debug.put_line(' fetch po_transfer_rti');

10190:
10191: rows_fetched := po_single_deliver%ROWCOUNT;
10192: ELSIF(po_transfer_rti%ISOPEN) THEN --}{
10193: IF (g_asn_debug = 'Y') THEN
10194: asn_debug.put_line(' fetch po_transfer_rti');
10195: END IF;
10196:
10197: FETCH po_transfer_rti INTO x_po_transferrec;
10198:

Line 10200: IF (g_asn_debug = 'Y') THEN

10196:
10197: FETCH po_transfer_rti INTO x_po_transferrec;
10198:
10199: IF (po_transfer_rti%NOTFOUND) THEN
10200: IF (g_asn_debug = 'Y') THEN
10201: asn_debug.put_line('transfer last row');
10202: END IF;
10203:
10204: lastrecord := TRUE;

Line 10201: asn_debug.put_line('transfer last row');

10197: FETCH po_transfer_rti INTO x_po_transferrec;
10198:
10199: IF (po_transfer_rti%NOTFOUND) THEN
10200: IF (g_asn_debug = 'Y') THEN
10201: asn_debug.put_line('transfer last row');
10202: END IF;
10203:
10204: lastrecord := TRUE;
10205: END IF;

Line 10209: IF (g_asn_debug = 'Y') THEN

10205: END IF;
10206:
10207: rows_fetched := po_transfer_rti%ROWCOUNT;
10208: ELSIF(po_single_deliver_rti%ISOPEN) THEN --}{
10209: IF (g_asn_debug = 'Y') THEN
10210: asn_debug.put_line(' fetch po_single_deliver_rti');
10211: END IF;
10212:
10213: FETCH po_single_deliver_rti INTO x_po_transferrec;

Line 10210: asn_debug.put_line(' fetch po_single_deliver_rti');

10206:
10207: rows_fetched := po_transfer_rti%ROWCOUNT;
10208: ELSIF(po_single_deliver_rti%ISOPEN) THEN --}{
10209: IF (g_asn_debug = 'Y') THEN
10210: asn_debug.put_line(' fetch po_single_deliver_rti');
10211: END IF;
10212:
10213: FETCH po_single_deliver_rti INTO x_po_transferrec;
10214:

Line 10216: IF (g_asn_debug = 'Y') THEN

10212:
10213: FETCH po_single_deliver_rti INTO x_po_transferrec;
10214:
10215: IF (po_single_deliver_rti%NOTFOUND) THEN
10216: IF (g_asn_debug = 'Y') THEN
10217: asn_debug.put_line('single_deliver_rti last row');
10218: END IF;
10219:
10220: lastrecord := TRUE;

Line 10217: asn_debug.put_line('single_deliver_rti last row');

10213: FETCH po_single_deliver_rti INTO x_po_transferrec;
10214:
10215: IF (po_single_deliver_rti%NOTFOUND) THEN
10216: IF (g_asn_debug = 'Y') THEN
10217: asn_debug.put_line('single_deliver_rti last row');
10218: END IF;
10219:
10220: lastrecord := TRUE;
10221: END IF;

Line 10226: IF (g_asn_debug = 'Y') THEN

10222:
10223: rows_fetched := po_single_deliver_rti%ROWCOUNT;
10224: ELSIF( po_deliver%ISOPEN
10225: AND x_cascaded_table(n).document_distribution_num IS NOT NULL) THEN --}{
10226: IF (g_asn_debug = 'Y') THEN
10227: asn_debug.put_line(' fetch po_deliver');
10228: END IF;
10229:
10230: FETCH po_deliver INTO x_po_transferrec;

Line 10227: asn_debug.put_line(' fetch po_deliver');

10223: rows_fetched := po_single_deliver_rti%ROWCOUNT;
10224: ELSIF( po_deliver%ISOPEN
10225: AND x_cascaded_table(n).document_distribution_num IS NOT NULL) THEN --}{
10226: IF (g_asn_debug = 'Y') THEN
10227: asn_debug.put_line(' fetch po_deliver');
10228: END IF;
10229:
10230: FETCH po_deliver INTO x_po_transferrec;
10231:

Line 10237: IF (g_asn_debug = 'Y') THEN

10233: lastrecord := TRUE;
10234: END IF;
10235:
10236: IF (firstrecord) THEN
10237: IF (g_asn_debug = 'Y') THEN
10238: asn_debug.put_line('first record for multi distributions');
10239: END IF;
10240:
10241: firstrecord := FALSE;

Line 10238: asn_debug.put_line('first record for multi distributions');

10234: END IF;
10235:
10236: IF (firstrecord) THEN
10237: IF (g_asn_debug = 'Y') THEN
10238: asn_debug.put_line('first record for multi distributions');
10239: END IF;
10240:
10241: firstrecord := FALSE;
10242:

Line 10250: IF (g_asn_debug = 'Y') THEN

10246: WHERE rcv_transaction_id = x_po_transferrec.rcv_transaction_id
10247: AND supply_type_code = 'RECEIVING';
10248: END IF;
10249:
10250: IF (g_asn_debug = 'Y') THEN
10251: asn_debug.put_line(' l_total_rec_quantity ' || l_total_rec_quantity);
10252: END IF;
10253:
10254: rows_fetched := po_deliver%ROWCOUNT;

Line 10251: asn_debug.put_line(' l_total_rec_quantity ' || l_total_rec_quantity);

10247: AND supply_type_code = 'RECEIVING';
10248: END IF;
10249:
10250: IF (g_asn_debug = 'Y') THEN
10251: asn_debug.put_line(' l_total_rec_quantity ' || l_total_rec_quantity);
10252: END IF;
10253:
10254: rows_fetched := po_deliver%ROWCOUNT;
10255: ELSIF(po_deliver_rti%ISOPEN) THEN --}{

Line 10256: IF (g_asn_debug = 'Y') THEN

10252: END IF;
10253:
10254: rows_fetched := po_deliver%ROWCOUNT;
10255: ELSIF(po_deliver_rti%ISOPEN) THEN --}{
10256: IF (g_asn_debug = 'Y') THEN
10257: asn_debug.put_line(' fetch po_deliver_rti');
10258: END IF;
10259:
10260: FETCH po_deliver_rti INTO x_po_transferrec;

Line 10257: asn_debug.put_line(' fetch po_deliver_rti');

10253:
10254: rows_fetched := po_deliver%ROWCOUNT;
10255: ELSIF(po_deliver_rti%ISOPEN) THEN --}{
10256: IF (g_asn_debug = 'Y') THEN
10257: asn_debug.put_line(' fetch po_deliver_rti');
10258: END IF;
10259:
10260: FETCH po_deliver_rti INTO x_po_transferrec;
10261:

Line 10263: IF (g_asn_debug = 'Y') THEN

10259:
10260: FETCH po_deliver_rti INTO x_po_transferrec;
10261:
10262: IF (po_deliver_rti%NOTFOUND) THEN
10263: IF (g_asn_debug = 'Y') THEN
10264: asn_debug.put_line('deliver_rti last row');
10265: END IF;
10266:
10267: lastrecord := TRUE;

Line 10264: asn_debug.put_line('deliver_rti last row');

10260: FETCH po_deliver_rti INTO x_po_transferrec;
10261:
10262: IF (po_deliver_rti%NOTFOUND) THEN
10263: IF (g_asn_debug = 'Y') THEN
10264: asn_debug.put_line('deliver_rti last row');
10265: END IF;
10266:
10267: lastrecord := TRUE;
10268: END IF;

Line 10272: IF (g_asn_debug = 'Y') THEN

10268: END IF;
10269:
10270: l_total_rec_quantity := x_po_transferrec.qty;
10271:
10272: IF (g_asn_debug = 'Y') THEN
10273: asn_debug.put_line(' l_total_rec_quantity if multi distribution from rti ' || x_po_transferrec.qty);
10274: END IF;
10275:
10276: rows_fetched := po_deliver_rti%ROWCOUNT;

Line 10273: asn_debug.put_line(' l_total_rec_quantity if multi distribution from rti ' || x_po_transferrec.qty);

10269:
10270: l_total_rec_quantity := x_po_transferrec.qty;
10271:
10272: IF (g_asn_debug = 'Y') THEN
10273: asn_debug.put_line(' l_total_rec_quantity if multi distribution from rti ' || x_po_transferrec.qty);
10274: END IF;
10275:
10276: rows_fetched := po_deliver_rti%ROWCOUNT;
10277: ELSIF(temp_cascaded_table(current_n).derive = 'Y') THEN --}{

Line 10286: IF (g_asn_debug = 'Y') THEN

10282: * parent_interface_txn_id) populated with
10283: * with the correct value. Also we have cascaded_table_index
10284: * with the correct pl/sql table index number;
10285: */
10286: IF (g_asn_debug = 'Y') THEN
10287: asn_debug.put_line(' fetch pl/sql table');
10288: END IF;
10289:
10290: temp_index := temp_cascaded_table(current_n).derive_index;

Line 10287: asn_debug.put_line(' fetch pl/sql table');

10283: * with the correct value. Also we have cascaded_table_index
10284: * with the correct pl/sql table index number;
10285: */
10286: IF (g_asn_debug = 'Y') THEN
10287: asn_debug.put_line(' fetch pl/sql table');
10288: END IF;
10289:
10290: temp_index := temp_cascaded_table(current_n).derive_index;
10291: x_po_transferrec.po_line_location_id := x_cascaded_table(temp_index).po_line_location_id;

Line 10329: IF (g_asn_debug = 'Y') THEN

10325:
10326:
10327: --x_remaining_quantity:= temp_cascaded_table(current_n).quantity;
10328:
10329: IF (g_asn_debug = 'Y') THEN
10330: asn_debug.put_line('Transfer Rows fetched ' || TO_CHAR(rows_fetched));
10331: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_transferrec.po_line_id));
10332: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_transferrec.po_distribution_id));
10333: asn_debug.put_line('Transfer remainaing qty ' || x_remaining_quantity);

Line 10330: asn_debug.put_line('Transfer Rows fetched ' || TO_CHAR(rows_fetched));

10326:
10327: --x_remaining_quantity:= temp_cascaded_table(current_n).quantity;
10328:
10329: IF (g_asn_debug = 'Y') THEN
10330: asn_debug.put_line('Transfer Rows fetched ' || TO_CHAR(rows_fetched));
10331: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_transferrec.po_line_id));
10332: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_transferrec.po_distribution_id));
10333: asn_debug.put_line('Transfer remainaing qty ' || x_remaining_quantity);
10334: END IF;

Line 10331: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_transferrec.po_line_id));

10327: --x_remaining_quantity:= temp_cascaded_table(current_n).quantity;
10328:
10329: IF (g_asn_debug = 'Y') THEN
10330: asn_debug.put_line('Transfer Rows fetched ' || TO_CHAR(rows_fetched));
10331: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_transferrec.po_line_id));
10332: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_transferrec.po_distribution_id));
10333: asn_debug.put_line('Transfer remainaing qty ' || x_remaining_quantity);
10334: END IF;
10335:

Line 10332: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_transferrec.po_distribution_id));

10328:
10329: IF (g_asn_debug = 'Y') THEN
10330: asn_debug.put_line('Transfer Rows fetched ' || TO_CHAR(rows_fetched));
10331: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_transferrec.po_line_id));
10332: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_transferrec.po_distribution_id));
10333: asn_debug.put_line('Transfer remainaing qty ' || x_remaining_quantity);
10334: END IF;
10335:
10336: /* { Bug 5354379: To log meaningful error message with the PO number, PO line number

Line 10333: asn_debug.put_line('Transfer remainaing qty ' || x_remaining_quantity);

10329: IF (g_asn_debug = 'Y') THEN
10330: asn_debug.put_line('Transfer Rows fetched ' || TO_CHAR(rows_fetched));
10331: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_transferrec.po_line_id));
10332: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_transferrec.po_distribution_id));
10333: asn_debug.put_line('Transfer remainaing qty ' || x_remaining_quantity);
10334: END IF;
10335:
10336: /* { Bug 5354379: To log meaningful error message with the PO number, PO line number
10337: PO line location number and distribution number and transaction qty.

Line 10369: IF (g_asn_debug = 'Y') THEN

10365: where po_release_id = x_cascaded_table(n).po_release_id;
10366: end if;
10367: EXCEPTION
10368: WHEN NO_DATA_FOUND THEN
10369: IF (g_asn_debug = 'Y') THEN
10370: asn_debug.put_line('No data found exception while getting document info for PO');
10371: END IF;
10372: END;
10373: -- } Bug 5354379

Line 10370: asn_debug.put_line('No data found exception while getting document info for PO');

10366: end if;
10367: EXCEPTION
10368: WHEN NO_DATA_FOUND THEN
10369: IF (g_asn_debug = 'Y') THEN
10370: asn_debug.put_line('No data found exception while getting document info for PO');
10371: END IF;
10372: END;
10373: -- } Bug 5354379
10374:

Line 10384: IF (g_asn_debug = 'Y') THEN

10380: * We do not support any other receiving transactions other
10381: * than direct receipt. Error out if it is complex work PO.
10382: */
10383: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN
10384: IF (g_asn_debug = 'Y') THEN
10385: asn_debug.put_line('Parent_txn_id ' || x_cascaded_table(n).parent_transaction_id);
10386: END IF;
10387:
10388: SELECT po_line_id,po_header_id

Line 10385: asn_debug.put_line('Parent_txn_id ' || x_cascaded_table(n).parent_transaction_id);

10381: * than direct receipt. Error out if it is complex work PO.
10382: */
10383: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN
10384: IF (g_asn_debug = 'Y') THEN
10385: asn_debug.put_line('Parent_txn_id ' || x_cascaded_table(n).parent_transaction_id);
10386: END IF;
10387:
10388: SELECT po_line_id,po_header_id
10389: INTO l_service_po_line_id,l_po_header_id

Line 10393: IF (g_asn_debug = 'Y') THEN

10389: INTO l_service_po_line_id,l_po_header_id
10390: FROM rcv_transactions
10391: WHERE transaction_id = x_cascaded_table(n).parent_transaction_id;
10392: ELSIF(x_cascaded_table(n).parent_interface_txn_id IS NOT NULL) THEN
10393: IF (g_asn_debug = 'Y') THEN
10394: asn_debug.put_line('parent_interface_txn_id ' || x_cascaded_table(n).parent_interface_txn_id);
10395: END IF;
10396:
10397: SELECT po_line_id,po_header_id

Line 10394: asn_debug.put_line('parent_interface_txn_id ' || x_cascaded_table(n).parent_interface_txn_id);

10390: FROM rcv_transactions
10391: WHERE transaction_id = x_cascaded_table(n).parent_transaction_id;
10392: ELSIF(x_cascaded_table(n).parent_interface_txn_id IS NOT NULL) THEN
10393: IF (g_asn_debug = 'Y') THEN
10394: asn_debug.put_line('parent_interface_txn_id ' || x_cascaded_table(n).parent_interface_txn_id);
10395: END IF;
10396:
10397: SELECT po_line_id,po_header_id
10398: INTO l_service_po_line_id,l_po_header_id

Line 10403: IF (g_asn_debug = 'Y') THEN

10399: FROM rcv_transactions_interface
10400: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id;
10401: END IF;
10402:
10403: IF (g_asn_debug = 'Y') THEN
10404: asn_debug.put_line('l_service_po_line_id ' || l_service_po_line_id);
10405: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10406: END IF;
10407:

Line 10404: asn_debug.put_line('l_service_po_line_id ' || l_service_po_line_id);

10400: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id;
10401: END IF;
10402:
10403: IF (g_asn_debug = 'Y') THEN
10404: asn_debug.put_line('l_service_po_line_id ' || l_service_po_line_id);
10405: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10406: END IF;
10407:
10408: IF l_service_po_line_id IS NOT NULL THEN --{

Line 10405: asn_debug.put_line('l_po_header_id ' || l_po_header_id);

10401: END IF;
10402:
10403: IF (g_asn_debug = 'Y') THEN
10404: asn_debug.put_line('l_service_po_line_id ' || l_service_po_line_id);
10405: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10406: END IF;
10407:
10408: IF l_service_po_line_id IS NOT NULL THEN --{
10409: SELECT NVL(order_type_lookup_code, 'QUANTITY'),

Line 10439: IF( g_asn_debug = 'Y' ) THEN

10435: l_return_status,
10436: l_complex_flag);
10437: IF (l_return_status IS NOT NULL AND
10438: l_return_status = FND_API.g_ret_sts_success) THEN
10439: IF( g_asn_debug = 'Y' ) THEN
10440: asn_debug.put_line('l_return_status ' || l_return_status);
10441: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10442: END IF;
10443: ELSE

Line 10440: asn_debug.put_line('l_return_status ' || l_return_status);

10436: l_complex_flag);
10437: IF (l_return_status IS NOT NULL AND
10438: l_return_status = FND_API.g_ret_sts_success) THEN
10439: IF( g_asn_debug = 'Y' ) THEN
10440: asn_debug.put_line('l_return_status ' || l_return_status);
10441: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10442: END IF;
10443: ELSE
10444: IF( g_asn_debug = 'Y') THEN

Line 10441: asn_debug.put_line('l_po_header_id ' || l_po_header_id);

10437: IF (l_return_status IS NOT NULL AND
10438: l_return_status = FND_API.g_ret_sts_success) THEN
10439: IF( g_asn_debug = 'Y' ) THEN
10440: asn_debug.put_line('l_return_status ' || l_return_status);
10441: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10442: END IF;
10443: ELSE
10444: IF( g_asn_debug = 'Y') THEN
10445: asn_debug.put_line('l_return_status ' || l_return_status);

Line 10444: IF( g_asn_debug = 'Y') THEN

10440: asn_debug.put_line('l_return_status ' || l_return_status);
10441: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10442: END IF;
10443: ELSE
10444: IF( g_asn_debug = 'Y') THEN
10445: asn_debug.put_line('l_return_status ' || l_return_status);
10446: END IF;
10447: END IF;
10448:

Line 10445: asn_debug.put_line('l_return_status ' || l_return_status);

10441: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
10442: END IF;
10443: ELSE
10444: IF( g_asn_debug = 'Y') THEN
10445: asn_debug.put_line('l_return_status ' || l_return_status);
10446: END IF;
10447: END IF;
10448:
10449: IF (l_complex_flag = 'Y') THEN

Line 10450: asn_debug.put_line('We do not support transaction type ' || x_cascaded_table(n).transaction_type || ' for complex work POs');

10446: END IF;
10447: END IF;
10448:
10449: IF (l_complex_flag = 'Y') THEN
10450: asn_debug.put_line('We do not support transaction type ' || x_cascaded_table(n).transaction_type || ' for complex work POs');
10451: rcv_error_pkg.set_error_message('RCV_INVALID_TRANSACTION_TYPE');
10452: rcv_error_pkg.log_interface_error('TRANSACTION_TYPE');
10453: End if;
10454:

Line 10461: IF (g_asn_debug = 'Y') THEN

10457:
10458:
10459: IF ( lastrecord
10460: OR x_remaining_quantity <= 0) THEN --{
10461: IF (g_asn_debug = 'Y') THEN
10462: asn_debug.put_line('Hit exit condition');
10463: END IF;
10464:
10465: IF NOT x_first_trans THEN

Line 10462: asn_debug.put_line('Hit exit condition');

10458:
10459: IF ( lastrecord
10460: OR x_remaining_quantity <= 0) THEN --{
10461: IF (g_asn_debug = 'Y') THEN
10462: asn_debug.put_line('Hit exit condition');
10463: END IF;
10464:
10465: IF NOT x_first_trans THEN
10466: -- x_first_trans has been reset which means some cascade has

Line 10468: IF (g_asn_debug = 'Y') THEN

10464:
10465: IF NOT x_first_trans THEN
10466: -- x_first_trans has been reset which means some cascade has
10467: -- happened. Otherwise current_n = 1
10468: IF (g_asn_debug = 'Y') THEN
10469: asn_debug.put_line('current_n before is ' || current_n);
10470: END IF;
10471:
10472: current_n := current_n - 1;

Line 10469: asn_debug.put_line('current_n before is ' || current_n);

10465: IF NOT x_first_trans THEN
10466: -- x_first_trans has been reset which means some cascade has
10467: -- happened. Otherwise current_n = 1
10468: IF (g_asn_debug = 'Y') THEN
10469: asn_debug.put_line('current_n before is ' || current_n);
10470: END IF;
10471:
10472: current_n := current_n - 1;
10473: END IF;

Line 10476: IF (g_asn_debug = 'Y') THEN

10472: current_n := current_n - 1;
10473: END IF;
10474:
10475: -- do the tolerance act here
10476: IF (g_asn_debug = 'Y') THEN
10477: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
10478: asn_debug.put_line('Check which condition has occured');
10479: END IF;
10480:

Line 10477: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));

10473: END IF;
10474:
10475: -- do the tolerance act here
10476: IF (g_asn_debug = 'Y') THEN
10477: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
10478: asn_debug.put_line('Check which condition has occured');
10479: END IF;
10480:
10481: -- lastrecord...we have run out of rows and we still have quantity to allocate

Line 10478: asn_debug.put_line('Check which condition has occured');

10474:
10475: -- do the tolerance act here
10476: IF (g_asn_debug = 'Y') THEN
10477: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
10478: asn_debug.put_line('Check which condition has occured');
10479: END IF;
10480:
10481: -- lastrecord...we have run out of rows and we still have quantity to allocate
10482: IF x_remaining_quantity > 0 THEN --{

Line 10483: IF (g_asn_debug = 'Y') THEN

10479: END IF;
10480:
10481: -- lastrecord...we have run out of rows and we still have quantity to allocate
10482: IF x_remaining_quantity > 0 THEN --{
10483: IF (g_asn_debug = 'Y') THEN
10484: asn_debug.put_line('There is quantity remaining');
10485: asn_debug.put_line('Need to check qty tolerances');
10486: END IF;
10487:

Line 10484: asn_debug.put_line('There is quantity remaining');

10480:
10481: -- lastrecord...we have run out of rows and we still have quantity to allocate
10482: IF x_remaining_quantity > 0 THEN --{
10483: IF (g_asn_debug = 'Y') THEN
10484: asn_debug.put_line('There is quantity remaining');
10485: asn_debug.put_line('Need to check qty tolerances');
10486: END IF;
10487:
10488: IF rows_fetched > 0

Line 10485: asn_debug.put_line('Need to check qty tolerances');

10481: -- lastrecord...we have run out of rows and we still have quantity to allocate
10482: IF x_remaining_quantity > 0 THEN --{
10483: IF (g_asn_debug = 'Y') THEN
10484: asn_debug.put_line('There is quantity remaining');
10485: asn_debug.put_line('Need to check qty tolerances');
10486: END IF;
10487:
10488: IF rows_fetched > 0
10489: AND NOT x_first_trans THEN --{

Line 10496: IF (g_asn_debug = 'Y') THEN

10492: /* for transfer,accept an reject type we dont have the
10493: * tolerance check. Hence error out.
10494: * We cannot transfer quantities more than that was received.
10495: */
10496: IF (g_asn_debug = 'Y') THEN
10497: asn_debug.put_line(' in transfer Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
10498: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
10499: END IF;
10500:

Line 10497: asn_debug.put_line(' in transfer Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));

10493: * tolerance check. Hence error out.
10494: * We cannot transfer quantities more than that was received.
10495: */
10496: IF (g_asn_debug = 'Y') THEN
10497: asn_debug.put_line(' in transfer Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
10498: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
10499: END IF;
10500:
10501: IF (g_asn_debug = 'Y') THEN

Line 10498: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));

10494: * We cannot transfer quantities more than that was received.
10495: */
10496: IF (g_asn_debug = 'Y') THEN
10497: asn_debug.put_line(' in transfer Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
10498: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
10499: END IF;
10500:
10501: IF (g_asn_debug = 'Y') THEN
10502: asn_debug.put_line('delete the temp table ');

Line 10501: IF (g_asn_debug = 'Y') THEN

10497: asn_debug.put_line(' in transfer Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
10498: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
10499: END IF;
10500:
10501: IF (g_asn_debug = 'Y') THEN
10502: asn_debug.put_line('delete the temp table ');
10503: END IF;
10504:
10505: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 10502: asn_debug.put_line('delete the temp table ');

10498: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
10499: END IF;
10500:
10501: IF (g_asn_debug = 'Y') THEN
10502: asn_debug.put_line('delete the temp table ');
10503: END IF;
10504:
10505: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
10506: IF l_po_rel_num = -1 THEN--Bug 5439085

Line 10526: IF (g_asn_debug = 'Y') THEN

10522: temp_cascaded_table.DELETE(i);
10523: END LOOP;
10524: END IF;
10525:
10526: IF (g_asn_debug = 'Y') THEN
10527: asn_debug.put_line('mark the actual table with error status');
10528: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
10530: END IF;

Line 10527: asn_debug.put_line('mark the actual table with error status');

10523: END LOOP;
10524: END IF;
10525:
10526: IF (g_asn_debug = 'Y') THEN
10527: asn_debug.put_line('mark the actual table with error status');
10528: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
10530: END IF;
10531:

Line 10528: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

10524: END IF;
10525:
10526: IF (g_asn_debug = 'Y') THEN
10527: asn_debug.put_line('mark the actual table with error status');
10528: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
10530: END IF;
10531:
10532: IF (g_asn_debug = 'Y') THEN

Line 10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

10525:
10526: IF (g_asn_debug = 'Y') THEN
10527: asn_debug.put_line('mark the actual table with error status');
10528: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
10530: END IF;
10531:
10532: IF (g_asn_debug = 'Y') THEN
10533: asn_debug.put_line('Need to insert a row into po_interface_errors for transfer');

Line 10532: IF (g_asn_debug = 'Y') THEN

10528: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
10530: END IF;
10531:
10532: IF (g_asn_debug = 'Y') THEN
10533: asn_debug.put_line('Need to insert a row into po_interface_errors for transfer');
10534: END IF;
10535: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
10536: IF rows_fetched = 0 THEN

Line 10533: asn_debug.put_line('Need to insert a row into po_interface_errors for transfer');

10529: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
10530: END IF;
10531:
10532: IF (g_asn_debug = 'Y') THEN
10533: asn_debug.put_line('Need to insert a row into po_interface_errors for transfer');
10534: END IF;
10535: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
10536: IF rows_fetched = 0 THEN
10537: IF (g_asn_debug = 'Y') THEN

Line 10537: IF (g_asn_debug = 'Y') THEN

10533: asn_debug.put_line('Need to insert a row into po_interface_errors for transfer');
10534: END IF;
10535: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
10536: IF rows_fetched = 0 THEN
10537: IF (g_asn_debug = 'Y') THEN
10538: asn_debug.put_line('No rows were retrieved from cursor.');
10539: END IF;
10540: ELSIF x_first_trans THEN
10541: IF (g_asn_debug = 'Y') THEN

Line 10538: asn_debug.put_line('No rows were retrieved from cursor.');

10534: END IF;
10535: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
10536: IF rows_fetched = 0 THEN
10537: IF (g_asn_debug = 'Y') THEN
10538: asn_debug.put_line('No rows were retrieved from cursor.');
10539: END IF;
10540: ELSIF x_first_trans THEN
10541: IF (g_asn_debug = 'Y') THEN
10542: asn_debug.put_line('No rows were cascaded');

Line 10541: IF (g_asn_debug = 'Y') THEN

10537: IF (g_asn_debug = 'Y') THEN
10538: asn_debug.put_line('No rows were retrieved from cursor.');
10539: END IF;
10540: ELSIF x_first_trans THEN
10541: IF (g_asn_debug = 'Y') THEN
10542: asn_debug.put_line('No rows were cascaded');
10543: END IF;
10544: END IF;
10545:

Line 10542: asn_debug.put_line('No rows were cascaded');

10538: asn_debug.put_line('No rows were retrieved from cursor.');
10539: END IF;
10540: ELSIF x_first_trans THEN
10541: IF (g_asn_debug = 'Y') THEN
10542: asn_debug.put_line('No rows were cascaded');
10543: END IF;
10544: END IF;
10545:
10546: x_temp_count := 1;

Line 10576: IF (g_asn_debug = 'Y') THEN

10572: END IF;
10573: END IF; --} end else for rows fetched = 0 OR x_first_trans = true
10574: -- end x_remaining_qty > 0 => this is the last record
10575: ELSE -- }{
10576: IF (g_asn_debug = 'Y') THEN
10577: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
10578: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
10579: END IF;
10580: END IF; --} ends the check for whether last record has been reached

Line 10577: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));

10573: END IF; --} end else for rows fetched = 0 OR x_first_trans = true
10574: -- end x_remaining_qty > 0 => this is the last record
10575: ELSE -- }{
10576: IF (g_asn_debug = 'Y') THEN
10577: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
10578: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
10579: END IF;
10580: END IF; --} ends the check for whether last record has been reached
10581:

Line 10578: asn_debug.put_line('Return the cascaded rows back to the calling procedure');

10574: -- end x_remaining_qty > 0 => this is the last record
10575: ELSE -- }{
10576: IF (g_asn_debug = 'Y') THEN
10577: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
10578: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
10579: END IF;
10580: END IF; --} ends the check for whether last record has been reached
10581:
10582: -- close cursors

Line 10584: IF (g_asn_debug = 'Y') THEN

10580: END IF; --} ends the check for whether last record has been reached
10581:
10582: -- close cursors
10583:
10584: IF (g_asn_debug = 'Y') THEN
10585: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);
10586: END IF;
10587:
10588: IF po_transfer%ISOPEN THEN

Line 10585: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);

10581:
10582: -- close cursors
10583:
10584: IF (g_asn_debug = 'Y') THEN
10585: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);
10586: END IF;
10587:
10588: IF po_transfer%ISOPEN THEN
10589: CLOSE po_transfer;

Line 10608: IF (g_asn_debug = 'Y') THEN

10604: IF po_deliver%ISOPEN THEN
10605: CLOSE po_deliver;
10606: END IF;
10607:
10608: IF (g_asn_debug = 'Y') THEN
10609: asn_debug.put_line('before exit current_n is ' || current_n);
10610: END IF;
10611:
10612: EXIT;

Line 10609: asn_debug.put_line('before exit current_n is ' || current_n);

10605: CLOSE po_deliver;
10606: END IF;
10607:
10608: IF (g_asn_debug = 'Y') THEN
10609: asn_debug.put_line('before exit current_n is ' || current_n);
10610: END IF;
10611:
10612: EXIT;
10613: END IF; --} matches lastrecord or x_remaining_quantity <= 0

Line 10617: IF (g_asn_debug = 'Y') THEN

10613: END IF; --} matches lastrecord or x_remaining_quantity <= 0
10614:
10615: -- eliminate the row if it fails the date check
10616:
10617: IF (g_asn_debug = 'Y') THEN
10618: asn_debug.put_line(' Entering qty calculateion for transfer');
10619: END IF;
10620:
10621: IF (x_first_trans)

Line 10618: asn_debug.put_line(' Entering qty calculateion for transfer');

10614:
10615: -- eliminate the row if it fails the date check
10616:
10617: IF (g_asn_debug = 'Y') THEN
10618: asn_debug.put_line(' Entering qty calculateion for transfer');
10619: END IF;
10620:
10621: IF (x_first_trans)
10622: AND temp_cascaded_table(current_n).item_id IS NULL THEN

Line 10634: IF (g_asn_debug = 'Y') THEN

10630: current_n,
10631: x_converted_parent_trx_qty
10632: );
10633:
10634: IF (g_asn_debug = 'Y') THEN
10635: asn_debug.put_line('trans_del interface qty ' || x_converted_parent_trx_qty);
10636: END IF;
10637:
10638: /* If this is a deliver for a multi distribution PO shipment

Line 10635: asn_debug.put_line('trans_del interface qty ' || x_converted_parent_trx_qty);

10631: x_converted_parent_trx_qty
10632: );
10633:
10634: IF (g_asn_debug = 'Y') THEN
10635: asn_debug.put_line('trans_del interface qty ' || x_converted_parent_trx_qty);
10636: END IF;
10637:
10638: /* If this is a deliver for a multi distribution PO shipment
10639: * line and if its parent is in rti, then x_converted_parent_trx_qty

Line 10647: IF (g_asn_debug = 'Y') THEN

10643: * equal to the qty in po_distributions.
10644: */
10645: IF ( (temp_cascaded_table(1).transaction_type = 'DELIVER')
10646: AND (l_num_of_distributions > 1)) THEN --{
10647: IF (g_asn_debug = 'Y') THEN
10648: asn_debug.put_line('before getting available qty for standard multi distributions deliver ');
10649: END IF;
10650:
10651: /* Bug 5354379:

Line 10648: asn_debug.put_line('before getting available qty for standard multi distributions deliver ');

10644: */
10645: IF ( (temp_cascaded_table(1).transaction_type = 'DELIVER')
10646: AND (l_num_of_distributions > 1)) THEN --{
10647: IF (g_asn_debug = 'Y') THEN
10648: asn_debug.put_line('before getting available qty for standard multi distributions deliver ');
10649: END IF;
10650:
10651: /* Bug 5354379:
10652: We should not compare the transaction quantity with the po_distributions_all.ordered_quantity,

Line 10661: IF (g_asn_debug = 'Y') THEN

10657: So, get the available qty from RTI for that DELIVER txn
10658: */
10659:
10660: IF l_po_deliver_rti_cursor_opened = 1 THEN --{ l_po_deliver_rti_cursor_opened = 1
10661: IF (g_asn_debug = 'Y') THEN
10662: asn_debug.put_line('In l_po_deliver_rti_cursor_opened...');
10663: END IF;
10664: l_interface_txn_id := x_cascaded_table(n).interface_transaction_id;
10665:

Line 10662: asn_debug.put_line('In l_po_deliver_rti_cursor_opened...');

10658: */
10659:
10660: IF l_po_deliver_rti_cursor_opened = 1 THEN --{ l_po_deliver_rti_cursor_opened = 1
10661: IF (g_asn_debug = 'Y') THEN
10662: asn_debug.put_line('In l_po_deliver_rti_cursor_opened...');
10663: END IF;
10664: l_interface_txn_id := x_cascaded_table(n).interface_transaction_id;
10665:
10666: --In the following 2 loops, trying to get the RECEIVE txn id for the current DELIVER txn.

Line 10675: IF (g_asn_debug = 'Y') THEN

10671: --If the "RECEIVE txn for the current DELIVER txn is available in RTI,
10672: --RECEIVE interface txn id is fetched from RTI and it will be available in the variable l_parent_interface_txn_id
10673:
10674: LOOP --{ loop1
10675: IF (g_asn_debug = 'Y') THEN
10676: asn_debug.put_line('Inside LOOP1 to fetch RECEIVE txn_id....');
10677: asn_debug.put_line('Fetching record from RTI, l_interface_txn_id'||l_interface_txn_id);
10678: END IF;
10679:

Line 10676: asn_debug.put_line('Inside LOOP1 to fetch RECEIVE txn_id....');

10672: --RECEIVE interface txn id is fetched from RTI and it will be available in the variable l_parent_interface_txn_id
10673:
10674: LOOP --{ loop1
10675: IF (g_asn_debug = 'Y') THEN
10676: asn_debug.put_line('Inside LOOP1 to fetch RECEIVE txn_id....');
10677: asn_debug.put_line('Fetching record from RTI, l_interface_txn_id'||l_interface_txn_id);
10678: END IF;
10679:
10680: BEGIN --{

Line 10677: asn_debug.put_line('Fetching record from RTI, l_interface_txn_id'||l_interface_txn_id);

10673:
10674: LOOP --{ loop1
10675: IF (g_asn_debug = 'Y') THEN
10676: asn_debug.put_line('Inside LOOP1 to fetch RECEIVE txn_id....');
10677: asn_debug.put_line('Fetching record from RTI, l_interface_txn_id'||l_interface_txn_id);
10678: END IF;
10679:
10680: BEGIN --{
10681: SELECT parent_interface_txn_id,

Line 10695: IF (g_asn_debug = 'Y') THEN

10691: --parent txn is available in rcv_transactions table
10692: l_transaction_id := l_parent_transaction_id;
10693: LOOP --{ loop2
10694: --Fetch the record from rcv_transactions table
10695: IF (g_asn_debug = 'Y') THEN
10696: asn_debug.put_line('Inside LOOP2 to fetch RECEIVE txn_id....');
10697: asn_debug.put_line('Fetching record from RT, l_transaction_id'||l_transaction_id);
10698: END IF;
10699:

Line 10696: asn_debug.put_line('Inside LOOP2 to fetch RECEIVE txn_id....');

10692: l_transaction_id := l_parent_transaction_id;
10693: LOOP --{ loop2
10694: --Fetch the record from rcv_transactions table
10695: IF (g_asn_debug = 'Y') THEN
10696: asn_debug.put_line('Inside LOOP2 to fetch RECEIVE txn_id....');
10697: asn_debug.put_line('Fetching record from RT, l_transaction_id'||l_transaction_id);
10698: END IF;
10699:
10700: SELECT transaction_type,

Line 10697: asn_debug.put_line('Fetching record from RT, l_transaction_id'||l_transaction_id);

10693: LOOP --{ loop2
10694: --Fetch the record from rcv_transactions table
10695: IF (g_asn_debug = 'Y') THEN
10696: asn_debug.put_line('Inside LOOP2 to fetch RECEIVE txn_id....');
10697: asn_debug.put_line('Fetching record from RT, l_transaction_id'||l_transaction_id);
10698: END IF;
10699:
10700: SELECT transaction_type,
10701: parent_transaction_id

Line 10711: IF (g_asn_debug = 'Y') THEN

10707: IF l_transaction_type = 'RECEIVE' THEN --{
10708: --exit loop1 and loop2
10709: --return l_transaction_id
10710: l_parent_transaction_id := l_transaction_id;
10711: IF (g_asn_debug = 'Y') THEN
10712: asn_debug.put_line('Fetched RECEIVE txn_id from RT....'||l_parent_transaction_id);
10713: END IF;
10714: l_exit := 'Y';
10715: EXIT; --exit loop2

Line 10712: asn_debug.put_line('Fetched RECEIVE txn_id from RT....'||l_parent_transaction_id);

10708: --exit loop1 and loop2
10709: --return l_transaction_id
10710: l_parent_transaction_id := l_transaction_id;
10711: IF (g_asn_debug = 'Y') THEN
10712: asn_debug.put_line('Fetched RECEIVE txn_id from RT....'||l_parent_transaction_id);
10713: END IF;
10714: l_exit := 'Y';
10715: EXIT; --exit loop2
10716: ELSIF l_parent_transaction_id IS NOT NULL THEN

Line 10723: IF (g_asn_debug = 'Y') THEN

10719: ELSE
10720: --Error condition
10721: l_exit := 'Y';
10722: l_loop_exit_status := 'E';
10723: IF (g_asn_debug = 'Y') THEN
10724: asn_debug.put_line('Error condition..parent_txn_id is null, not able to fetch RECEIVE txn_id');
10725: END IF;
10726: EXIT; --exit loop2
10727: END IF; --} l_transaction_type = 'RECEIVE'

Line 10724: asn_debug.put_line('Error condition..parent_txn_id is null, not able to fetch RECEIVE txn_id');

10720: --Error condition
10721: l_exit := 'Y';
10722: l_loop_exit_status := 'E';
10723: IF (g_asn_debug = 'Y') THEN
10724: asn_debug.put_line('Error condition..parent_txn_id is null, not able to fetch RECEIVE txn_id');
10725: END IF;
10726: EXIT; --exit loop2
10727: END IF; --} l_transaction_type = 'RECEIVE'
10728: END LOOP; --{ loop2

Line 10746: IF (g_asn_debug = 'Y') THEN

10742: --This is the RECEIVE txn in RTI
10743: l_parent_interface_txn_id := l_interface_txn_id;
10744: l_parent_receive_txn_in_rt := 'N';
10745: l_loop_exit_status := 'S';
10746: IF (g_asn_debug = 'Y') THEN
10747: asn_debug.put_line('Fetched RECEIVE interface txn_id from RTI....'||l_parent_interface_txn_id);
10748: END IF;
10749: ELSE
10750: --Error condtion

Line 10747: asn_debug.put_line('Fetched RECEIVE interface txn_id from RTI....'||l_parent_interface_txn_id);

10743: l_parent_interface_txn_id := l_interface_txn_id;
10744: l_parent_receive_txn_in_rt := 'N';
10745: l_loop_exit_status := 'S';
10746: IF (g_asn_debug = 'Y') THEN
10747: asn_debug.put_line('Fetched RECEIVE interface txn_id from RTI....'||l_parent_interface_txn_id);
10748: END IF;
10749: ELSE
10750: --Error condtion
10751: l_loop_exit_status := 'E';

Line 10752: IF (g_asn_debug = 'Y') THEN

10748: END IF;
10749: ELSE
10750: --Error condtion
10751: l_loop_exit_status := 'E';
10752: IF (g_asn_debug = 'Y') THEN
10753: asn_debug.put_line('Error condition..parent_interface_txn_id is null, not able to fetch RECEIVE txn_id');
10754: END IF;
10755: END IF;
10756: l_exit := 'Y';

Line 10753: asn_debug.put_line('Error condition..parent_interface_txn_id is null, not able to fetch RECEIVE txn_id');

10749: ELSE
10750: --Error condtion
10751: l_loop_exit_status := 'E';
10752: IF (g_asn_debug = 'Y') THEN
10753: asn_debug.put_line('Error condition..parent_interface_txn_id is null, not able to fetch RECEIVE txn_id');
10754: END IF;
10755: END IF;
10756: l_exit := 'Y';
10757: EXIT; --exit loop1

Line 10764: IF (g_asn_debug = 'Y') THEN

10760: EXCEPTION
10761: WHEN NO_DATA_FOUND then
10762: l_exit := 'Y';
10763: l_loop_exit_status := 'E';
10764: IF (g_asn_debug = 'Y') THEN
10765: asn_debug.put_line('No data found exception occured in Fetching RECEIVE txn_id');
10766: END IF;
10767: END;--} BEGIN ends
10768:

Line 10765: asn_debug.put_line('No data found exception occured in Fetching RECEIVE txn_id');

10761: WHEN NO_DATA_FOUND then
10762: l_exit := 'Y';
10763: l_loop_exit_status := 'E';
10764: IF (g_asn_debug = 'Y') THEN
10765: asn_debug.put_line('No data found exception occured in Fetching RECEIVE txn_id');
10766: END IF;
10767: END;--} BEGIN ends
10768:
10769: --Check Exit condition met

Line 10771: IF (g_asn_debug = 'Y') THEN

10767: END;--} BEGIN ends
10768:
10769: --Check Exit condition met
10770: IF l_exit = 'Y' THEN
10771: IF (g_asn_debug = 'Y') THEN
10772: asn_debug.put_line('Exiting the loop to Fetch RECEIVE txn_id....');
10773: END IF;
10774: EXIT;--exit loop1
10775: END IF;

Line 10772: asn_debug.put_line('Exiting the loop to Fetch RECEIVE txn_id....');

10768:
10769: --Check Exit condition met
10770: IF l_exit = 'Y' THEN
10771: IF (g_asn_debug = 'Y') THEN
10772: asn_debug.put_line('Exiting the loop to Fetch RECEIVE txn_id....');
10773: END IF;
10774: EXIT;--exit loop1
10775: END IF;
10776: END LOOP; --}loop1

Line 10781: IF (g_asn_debug = 'Y') THEN

10777:
10778: --Check Loop exited successfuly by fetching the RECEIVE txn id
10779: IF l_loop_exit_status = 'E' THEN --{
10780: --Error out this DELIVER txn and set RTI record status to 'E'
10781: IF (g_asn_debug = 'Y') THEN
10782: asn_debug.put_line('Error out this DELIVER txn and set RTI record status to Error, as not able get RECEIVE txn_id....');
10783: END IF;
10784: x_cascaded_table(n).error_status := 'E';
10785: ELSIF l_loop_exit_status = 'S' THEN --{ l_loop_exit_status = 'S'

Line 10782: asn_debug.put_line('Error out this DELIVER txn and set RTI record status to Error, as not able get RECEIVE txn_id....');

10778: --Check Loop exited successfuly by fetching the RECEIVE txn id
10779: IF l_loop_exit_status = 'E' THEN --{
10780: --Error out this DELIVER txn and set RTI record status to 'E'
10781: IF (g_asn_debug = 'Y') THEN
10782: asn_debug.put_line('Error out this DELIVER txn and set RTI record status to Error, as not able get RECEIVE txn_id....');
10783: END IF;
10784: x_cascaded_table(n).error_status := 'E';
10785: ELSIF l_loop_exit_status = 'S' THEN --{ l_loop_exit_status = 'S'
10786: --Check where to get the AVAILABLE qty for this DELIVER txn

Line 10792: IF (g_asn_debug = 'Y') THEN

10788: -- if l_parent_receive_txn_in_rt is 'N', Fetch the AVAILABLE qty from rcv_transactions_interface
10789: IF l_parent_receive_txn_in_rt = 'Y' THEN--{ l_parent_receive_txn_in_rt = 'Y'
10790: --Fetch AVAILABLE qty from mtl_supply using l_parent_transaction_id
10791: BEGIN --{
10792: IF (g_asn_debug = 'Y') THEN
10793: asn_debug.put_line('Fetching mtl_supply, from the fetched RECEIVE txn_id....'||l_parent_transaction_id);
10794: asn_debug.put_line('PO distribution id....'||x_po_transferrec.po_distribution_id);
10795: END IF;
10796: /*Fetch the available qty for DELIVER txn based on the shipment line from mtl_supply.

Line 10793: asn_debug.put_line('Fetching mtl_supply, from the fetched RECEIVE txn_id....'||l_parent_transaction_id);

10789: IF l_parent_receive_txn_in_rt = 'Y' THEN--{ l_parent_receive_txn_in_rt = 'Y'
10790: --Fetch AVAILABLE qty from mtl_supply using l_parent_transaction_id
10791: BEGIN --{
10792: IF (g_asn_debug = 'Y') THEN
10793: asn_debug.put_line('Fetching mtl_supply, from the fetched RECEIVE txn_id....'||l_parent_transaction_id);
10794: asn_debug.put_line('PO distribution id....'||x_po_transferrec.po_distribution_id);
10795: END IF;
10796: /*Fetch the available qty for DELIVER txn based on the shipment line from mtl_supply.
10797: Reason: When RECEIPT txn is performed through forms, we won't get distribution details.

Line 10794: asn_debug.put_line('PO distribution id....'||x_po_transferrec.po_distribution_id);

10790: --Fetch AVAILABLE qty from mtl_supply using l_parent_transaction_id
10791: BEGIN --{
10792: IF (g_asn_debug = 'Y') THEN
10793: asn_debug.put_line('Fetching mtl_supply, from the fetched RECEIVE txn_id....'||l_parent_transaction_id);
10794: asn_debug.put_line('PO distribution id....'||x_po_transferrec.po_distribution_id);
10795: END IF;
10796: /*Fetch the available qty for DELIVER txn based on the shipment line from mtl_supply.
10797: Reason: When RECEIPT txn is performed through forms, we won't get distribution details.
10798: For eg: Assume PO with 1 line(qty15) 1shipment(15) and

Line 10826: IF (g_asn_debug = 'Y') THEN

10822: EXCEPTION
10823: WHEN NO_DATA_FOUND THEN
10824: --Error out DELIVER txn and set RTI status to 'E'
10825: l_fetch_mtl_supply := 'E';
10826: IF (g_asn_debug = 'Y') THEN
10827: asn_debug.put_line('No data found exception in fetching mtl_supply');
10828: END IF;
10829: END; --} Begin ends
10830:

Line 10827: asn_debug.put_line('No data found exception in fetching mtl_supply');

10823: WHEN NO_DATA_FOUND THEN
10824: --Error out DELIVER txn and set RTI status to 'E'
10825: l_fetch_mtl_supply := 'E';
10826: IF (g_asn_debug = 'Y') THEN
10827: asn_debug.put_line('No data found exception in fetching mtl_supply');
10828: END IF;
10829: END; --} Begin ends
10830:
10831: IF l_fetch_mtl_supply = 'E' THEN

Line 10833: IF (g_asn_debug = 'Y') THEN

10829: END; --} Begin ends
10830:
10831: IF l_fetch_mtl_supply = 'E' THEN
10832: --Error out this DELIVER txn and set RTI record status to 'E'
10833: IF (g_asn_debug = 'Y') THEN
10834: asn_debug.put_line('mtl_supply doesnot exist. error out the DELIVER txn...');
10835: END IF;
10836: x_cascaded_table(n).error_status := 'E';
10837: IF l_po_rel_num = -1 THEN--Bug 5439085

Line 10834: asn_debug.put_line('mtl_supply doesnot exist. error out the DELIVER txn...');

10830:
10831: IF l_fetch_mtl_supply = 'E' THEN
10832: --Error out this DELIVER txn and set RTI record status to 'E'
10833: IF (g_asn_debug = 'Y') THEN
10834: asn_debug.put_line('mtl_supply doesnot exist. error out the DELIVER txn...');
10835: END IF;
10836: x_cascaded_table(n).error_status := 'E';
10837: IF l_po_rel_num = -1 THEN--Bug 5439085
10838: rcv_error_pkg.set_error_message('RCV_TRX_QTY_EXCEEDS_AVL_QTY_PO', x_cascaded_table(n).error_message);

Line 10852: IF (g_asn_debug = 'Y') THEN

10848: rcv_error_pkg.set_token('DISTNUM',l_po_dist_num);
10849: rcv_error_pkg.log_interface_error('QUANTITY', FALSE);
10850: END IF;
10851:
10852: IF (g_asn_debug = 'Y') THEN
10853: asn_debug.put_line('l_distribution_qty:'||l_distribution_qty);
10854: asn_debug.put_line('Check whether l_distribution_qty is already consumed by other DELIVER txn submitted with same group_id');
10855: END IF;
10856:

Line 10853: asn_debug.put_line('l_distribution_qty:'||l_distribution_qty);

10849: rcv_error_pkg.log_interface_error('QUANTITY', FALSE);
10850: END IF;
10851:
10852: IF (g_asn_debug = 'Y') THEN
10853: asn_debug.put_line('l_distribution_qty:'||l_distribution_qty);
10854: asn_debug.put_line('Check whether l_distribution_qty is already consumed by other DELIVER txn submitted with same group_id');
10855: END IF;
10856:
10857: --Fetch sum of quantity of only pre processed 'DELIVER' txns in RTI for that group_id

Line 10854: asn_debug.put_line('Check whether l_distribution_qty is already consumed by other DELIVER txn submitted with same group_id');

10850: END IF;
10851:
10852: IF (g_asn_debug = 'Y') THEN
10853: asn_debug.put_line('l_distribution_qty:'||l_distribution_qty);
10854: asn_debug.put_line('Check whether l_distribution_qty is already consumed by other DELIVER txn submitted with same group_id');
10855: END IF;
10856:
10857: --Fetch sum of quantity of only pre processed 'DELIVER' txns in RTI for that group_id
10858: --and po_shipment_line, to get total_deliver_qty for that po_shipment_line

Line 10875: IF (g_asn_debug = 'Y') THEN

10871: AND po_line_location_id = x_po_transferrec.po_line_location_id
10872: AND interface_transaction_id < x_cascaded_table(n).interface_transaction_id;
10873: EXCEPTION
10874: WHEN NO_DATA_FOUND then
10875: IF (g_asn_debug = 'Y') THEN
10876: asn_debug.put_line('No data found exception while fetching sum of delivered qty..');
10877: END IF;
10878: l_total_deliver_quantity := 0;
10879: END;--} Begin ends

Line 10876: asn_debug.put_line('No data found exception while fetching sum of delivered qty..');

10872: AND interface_transaction_id < x_cascaded_table(n).interface_transaction_id;
10873: EXCEPTION
10874: WHEN NO_DATA_FOUND then
10875: IF (g_asn_debug = 'Y') THEN
10876: asn_debug.put_line('No data found exception while fetching sum of delivered qty..');
10877: END IF;
10878: l_total_deliver_quantity := 0;
10879: END;--} Begin ends
10880:

Line 10881: IF (g_asn_debug = 'Y') THEN

10877: END IF;
10878: l_total_deliver_quantity := 0;
10879: END;--} Begin ends
10880:
10881: IF (g_asn_debug = 'Y') THEN
10882: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);
10883: END IF;
10884:
10885: --x_cascaded_table(n).quantity -> transaction qty of current Deliver txn

Line 10882: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);

10878: l_total_deliver_quantity := 0;
10879: END;--} Begin ends
10880:
10881: IF (g_asn_debug = 'Y') THEN
10882: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);
10883: END IF;
10884:
10885: --x_cascaded_table(n).quantity -> transaction qty of current Deliver txn
10886: -- l_distribution_qty -> qty available in mtl_supply

Line 10890: IF (g_asn_debug = 'Y') THEN

10886: -- l_distribution_qty -> qty available in mtl_supply
10887: -- l_total_deliver_quantity -> Quantity already consumed by the DELIVER txns(only precprocessed RTI record) submitted with the same group_id
10888: IF x_cascaded_table(n).quantity > (l_distribution_qty - l_total_deliver_quantity) THEN --{ x_cascaded_table(n).quantity > (l_distribution_qty - l_total_deliver_quantity)
10889: --Error out this DELIVERY txn, as it results in Over delivery on that distribution
10890: IF (g_asn_debug = 'Y') THEN
10891: asn_debug.put_line('Error out this DELIVERY txn, as it results in Over delivery on that distribution'||x_po_transferrec.po_distribution_id);
10892: END IF;
10893: x_cascaded_table(n).error_status := 'E';
10894: IF l_po_rel_num = -1 THEN--Bug 5439085

Line 10891: asn_debug.put_line('Error out this DELIVERY txn, as it results in Over delivery on that distribution'||x_po_transferrec.po_distribution_id);

10887: -- l_total_deliver_quantity -> Quantity already consumed by the DELIVER txns(only precprocessed RTI record) submitted with the same group_id
10888: IF x_cascaded_table(n).quantity > (l_distribution_qty - l_total_deliver_quantity) THEN --{ x_cascaded_table(n).quantity > (l_distribution_qty - l_total_deliver_quantity)
10889: --Error out this DELIVERY txn, as it results in Over delivery on that distribution
10890: IF (g_asn_debug = 'Y') THEN
10891: asn_debug.put_line('Error out this DELIVERY txn, as it results in Over delivery on that distribution'||x_po_transferrec.po_distribution_id);
10892: END IF;
10893: x_cascaded_table(n).error_status := 'E';
10894: IF l_po_rel_num = -1 THEN--Bug 5439085
10895: rcv_error_pkg.set_error_message('RCV_TRX_QTY_EXCEEDS_AVL_QTY_PO', x_cascaded_table(n).error_message);

Line 10911: IF (g_asn_debug = 'Y') THEN

10907: END IF;--} x_cascaded_table(n).quantity > (l_distribution_qty - l_total_deliver_quantity)
10908: --} l_parent_receive_txn_in_rt = 'Y'
10909: ELSIF l_parent_receive_txn_in_rt = 'N' THEN--{ l_parent_receive_txn_in_rt = 'N'
10910: --Fetch the AVAILABLE qty from rcv_transactions_interface using l_parent_interface_txn_id
10911: IF (g_asn_debug = 'Y') THEN
10912: asn_debug.put_line('Fetching AVAILABLE qty from fetched RECEIVE interface_txn_id....');
10913: END IF;
10914:
10915: --Fetch sum of quantity of all preprocessed 'RECEIVE' txns loaded in RTI for that group_id

Line 10912: asn_debug.put_line('Fetching AVAILABLE qty from fetched RECEIVE interface_txn_id....');

10908: --} l_parent_receive_txn_in_rt = 'Y'
10909: ELSIF l_parent_receive_txn_in_rt = 'N' THEN--{ l_parent_receive_txn_in_rt = 'N'
10910: --Fetch the AVAILABLE qty from rcv_transactions_interface using l_parent_interface_txn_id
10911: IF (g_asn_debug = 'Y') THEN
10912: asn_debug.put_line('Fetching AVAILABLE qty from fetched RECEIVE interface_txn_id....');
10913: END IF;
10914:
10915: --Fetch sum of quantity of all preprocessed 'RECEIVE' txns loaded in RTI for that group_id
10916: --and po_line_location_id, to get total_receive_qty for that po_line_location_id

Line 10920: IF (g_asn_debug = 'Y') THEN

10916: --and po_line_location_id, to get total_receive_qty for that po_line_location_id
10917: --( by this filter interface_transaction_id < x_po_transferrec.interface_transaction_id,
10918: -- only fetching preprocessed RECEIVE txn)
10919: --x_po_transferrec.interface_transaction_id is holding 'DELIVER' txn id
10920: IF (g_asn_debug = 'Y') THEN
10921: asn_debug.put_line('Fetching sum of received qty for preprocessed RECEIVE txns....');
10922: END IF;
10923:
10924: BEGIN --{

Line 10921: asn_debug.put_line('Fetching sum of received qty for preprocessed RECEIVE txns....');

10917: --( by this filter interface_transaction_id < x_po_transferrec.interface_transaction_id,
10918: -- only fetching preprocessed RECEIVE txn)
10919: --x_po_transferrec.interface_transaction_id is holding 'DELIVER' txn id
10920: IF (g_asn_debug = 'Y') THEN
10921: asn_debug.put_line('Fetching sum of received qty for preprocessed RECEIVE txns....');
10922: END IF;
10923:
10924: BEGIN --{
10925: SELECT nvl(sum(quantity),0)

Line 10937: IF (g_asn_debug = 'Y') THEN

10933: AND po_line_location_id = x_po_transferrec.po_line_location_id
10934: AND interface_transaction_id < x_cascaded_table(n).interface_transaction_id;
10935: EXCEPTION
10936: WHEN NO_DATA_FOUND then
10937: IF (g_asn_debug = 'Y') THEN
10938: asn_debug.put_line('No data found exception while fetching sum of received qty..');
10939: END IF;
10940: l_total_receiving_quantity := 0;
10941: END;--} Begin ends

Line 10938: asn_debug.put_line('No data found exception while fetching sum of received qty..');

10934: AND interface_transaction_id < x_cascaded_table(n).interface_transaction_id;
10935: EXCEPTION
10936: WHEN NO_DATA_FOUND then
10937: IF (g_asn_debug = 'Y') THEN
10938: asn_debug.put_line('No data found exception while fetching sum of received qty..');
10939: END IF;
10940: l_total_receiving_quantity := 0;
10941: END;--} Begin ends
10942:

Line 10943: IF (g_asn_debug = 'Y') THEN

10939: END IF;
10940: l_total_receiving_quantity := 0;
10941: END;--} Begin ends
10942:
10943: IF (g_asn_debug = 'Y') THEN
10944: asn_debug.put_line('Sum of received qty for preprocessed RECEIVE txns..'||l_total_receiving_quantity);
10945: asn_debug.put_line('Fetching sum of Delivered qty for preprocessed DELIVER txns, excluding current deliver txn...');
10946: END IF;
10947:

Line 10944: asn_debug.put_line('Sum of received qty for preprocessed RECEIVE txns..'||l_total_receiving_quantity);

10940: l_total_receiving_quantity := 0;
10941: END;--} Begin ends
10942:
10943: IF (g_asn_debug = 'Y') THEN
10944: asn_debug.put_line('Sum of received qty for preprocessed RECEIVE txns..'||l_total_receiving_quantity);
10945: asn_debug.put_line('Fetching sum of Delivered qty for preprocessed DELIVER txns, excluding current deliver txn...');
10946: END IF;
10947:
10948: --Fetch sum of quantity of only pre processed 'DELIVER' txns in RTI for that group_id

Line 10945: asn_debug.put_line('Fetching sum of Delivered qty for preprocessed DELIVER txns, excluding current deliver txn...');

10941: END;--} Begin ends
10942:
10943: IF (g_asn_debug = 'Y') THEN
10944: asn_debug.put_line('Sum of received qty for preprocessed RECEIVE txns..'||l_total_receiving_quantity);
10945: asn_debug.put_line('Fetching sum of Delivered qty for preprocessed DELIVER txns, excluding current deliver txn...');
10946: END IF;
10947:
10948: --Fetch sum of quantity of only pre processed 'DELIVER' txns in RTI for that group_id
10949: --and po_line_location_id, to get total_deliver_qty for that po_distribution_id

Line 10965: IF (g_asn_debug = 'Y') THEN

10961: AND po_line_location_id = x_po_transferrec.po_line_location_id
10962: AND interface_transaction_id < x_cascaded_table(n).interface_transaction_id;
10963: EXCEPTION
10964: WHEN NO_DATA_FOUND then
10965: IF (g_asn_debug = 'Y') THEN
10966: asn_debug.put_line('No data found exception while fetching sum of delivered qty..');
10967: END IF;
10968: l_total_deliver_quantity := 0;
10969: END;

Line 10966: asn_debug.put_line('No data found exception while fetching sum of delivered qty..');

10962: AND interface_transaction_id < x_cascaded_table(n).interface_transaction_id;
10963: EXCEPTION
10964: WHEN NO_DATA_FOUND then
10965: IF (g_asn_debug = 'Y') THEN
10966: asn_debug.put_line('No data found exception while fetching sum of delivered qty..');
10967: END IF;
10968: l_total_deliver_quantity := 0;
10969: END;
10970:

Line 10971: IF (g_asn_debug = 'Y') THEN

10967: END IF;
10968: l_total_deliver_quantity := 0;
10969: END;
10970:
10971: IF (g_asn_debug = 'Y') THEN
10972: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);
10973: asn_debug.put_line('Fetching receive qty for RECEIVE txn...');
10974: END IF;
10975:

Line 10972: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);

10968: l_total_deliver_quantity := 0;
10969: END;
10970:
10971: IF (g_asn_debug = 'Y') THEN
10972: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);
10973: asn_debug.put_line('Fetching receive qty for RECEIVE txn...');
10974: END IF;
10975:
10976: --Fetch the receive quantity for the 'RECEIVE'txn of the current DELIVER txn

Line 10973: asn_debug.put_line('Fetching receive qty for RECEIVE txn...');

10969: END;
10970:
10971: IF (g_asn_debug = 'Y') THEN
10972: asn_debug.put_line('Sum of delivered qty for preprocessed DELIVERED txns..'||l_total_deliver_quantity);
10973: asn_debug.put_line('Fetching receive qty for RECEIVE txn...');
10974: END IF;
10975:
10976: --Fetch the receive quantity for the 'RECEIVE'txn of the current DELIVER txn
10977: SELECT quantity

Line 10982: IF (g_asn_debug = 'Y') THEN

10978: INTO l_receive_quantity
10979: FROM rcv_transactions_interface
10980: WHERE interface_transaction_id = l_parent_interface_txn_id;
10981:
10982: IF (g_asn_debug = 'Y') THEN
10983: asn_debug.put_line('Receive qty for RECEIVE txn...'||l_receive_quantity);
10984: asn_debug.put_line('Fetching deliver qty for DELIVER txn...');
10985: END IF;
10986: --Fetch the deliver quantity for the current 'DELIVER'txn

Line 10983: asn_debug.put_line('Receive qty for RECEIVE txn...'||l_receive_quantity);

10979: FROM rcv_transactions_interface
10980: WHERE interface_transaction_id = l_parent_interface_txn_id;
10981:
10982: IF (g_asn_debug = 'Y') THEN
10983: asn_debug.put_line('Receive qty for RECEIVE txn...'||l_receive_quantity);
10984: asn_debug.put_line('Fetching deliver qty for DELIVER txn...');
10985: END IF;
10986: --Fetch the deliver quantity for the current 'DELIVER'txn
10987: SELECT quantity

Line 10984: asn_debug.put_line('Fetching deliver qty for DELIVER txn...');

10980: WHERE interface_transaction_id = l_parent_interface_txn_id;
10981:
10982: IF (g_asn_debug = 'Y') THEN
10983: asn_debug.put_line('Receive qty for RECEIVE txn...'||l_receive_quantity);
10984: asn_debug.put_line('Fetching deliver qty for DELIVER txn...');
10985: END IF;
10986: --Fetch the deliver quantity for the current 'DELIVER'txn
10987: SELECT quantity
10988: INTO l_deliver_quantity

Line 10992: IF (g_asn_debug = 'Y') THEN

10988: INTO l_deliver_quantity
10989: FROM rcv_transactions_interface
10990: WHERE interface_transaction_id = x_cascaded_table(n).interface_transaction_id;
10991:
10992: IF (g_asn_debug = 'Y') THEN
10993: asn_debug.put_line('Deliver qty for DELIVER txn...'||l_deliver_quantity);
10994: END IF;
10995:
10996: IF (l_total_deliver_quantity + l_deliver_quantity) <= l_total_receiving_quantity THEN --{ (l_total_deliver_quantity + l_deliver_quantity) <= l_total_receiving_quantity

Line 10993: asn_debug.put_line('Deliver qty for DELIVER txn...'||l_deliver_quantity);

10989: FROM rcv_transactions_interface
10990: WHERE interface_transaction_id = x_cascaded_table(n).interface_transaction_id;
10991:
10992: IF (g_asn_debug = 'Y') THEN
10993: asn_debug.put_line('Deliver qty for DELIVER txn...'||l_deliver_quantity);
10994: END IF;
10995:
10996: IF (l_total_deliver_quantity + l_deliver_quantity) <= l_total_receiving_quantity THEN --{ (l_total_deliver_quantity + l_deliver_quantity) <= l_total_receiving_quantity
10997: --Not over delivery txn

Line 11000: IF (g_asn_debug = 'Y') THEN

10996: IF (l_total_deliver_quantity + l_deliver_quantity) <= l_total_receiving_quantity THEN --{ (l_total_deliver_quantity + l_deliver_quantity) <= l_total_receiving_quantity
10997: --Not over delivery txn
10998: --Check whether Receive txn line_location-id and deliver_txn line_location_id are same
10999: --and validate delivery qty is within the received qty
11000: IF (g_asn_debug = 'Y') THEN
11001: asn_debug.put_line('Not Over Delivery txn...');
11002: END IF;
11003: IF l_deliver_quantity <= l_receive_quantity THEN
11004: --Allow this deliver transaction

Line 11001: asn_debug.put_line('Not Over Delivery txn...');

10997: --Not over delivery txn
10998: --Check whether Receive txn line_location-id and deliver_txn line_location_id are same
10999: --and validate delivery qty is within the received qty
11000: IF (g_asn_debug = 'Y') THEN
11001: asn_debug.put_line('Not Over Delivery txn...');
11002: END IF;
11003: IF l_deliver_quantity <= l_receive_quantity THEN
11004: --Allow this deliver transaction
11005: IF (g_asn_debug = 'Y') THEN

Line 11005: IF (g_asn_debug = 'Y') THEN

11001: asn_debug.put_line('Not Over Delivery txn...');
11002: END IF;
11003: IF l_deliver_quantity <= l_receive_quantity THEN
11004: --Allow this deliver transaction
11005: IF (g_asn_debug = 'Y') THEN
11006: asn_debug.put_line('Delivery qty <= received qty...');
11007: END IF;
11008: l_distribution_qty := l_receive_quantity;
11009: ELSE

Line 11006: asn_debug.put_line('Delivery qty <= received qty...');

11002: END IF;
11003: IF l_deliver_quantity <= l_receive_quantity THEN
11004: --Allow this deliver transaction
11005: IF (g_asn_debug = 'Y') THEN
11006: asn_debug.put_line('Delivery qty <= received qty...');
11007: END IF;
11008: l_distribution_qty := l_receive_quantity;
11009: ELSE
11010: --Over delivery for that Receive txn on the spefied distribution, error out this deliver txn

Line 11011: IF (g_asn_debug = 'Y') THEN

11007: END IF;
11008: l_distribution_qty := l_receive_quantity;
11009: ELSE
11010: --Over delivery for that Receive txn on the spefied distribution, error out this deliver txn
11011: IF (g_asn_debug = 'Y') THEN
11012: asn_debug.put_line('deliver qty > received qty.');
11013: END IF;
11014: x_cascaded_table(n).error_status := 'E';
11015: IF l_po_rel_num = -1 THEN--Bug 5439085

Line 11012: asn_debug.put_line('deliver qty > received qty.');

11008: l_distribution_qty := l_receive_quantity;
11009: ELSE
11010: --Over delivery for that Receive txn on the spefied distribution, error out this deliver txn
11011: IF (g_asn_debug = 'Y') THEN
11012: asn_debug.put_line('deliver qty > received qty.');
11013: END IF;
11014: x_cascaded_table(n).error_status := 'E';
11015: IF l_po_rel_num = -1 THEN--Bug 5439085
11016: rcv_error_pkg.set_error_message('RCV_TRX_QTY_EXCEEDS_AVL_QTY_PO', x_cascaded_table(n).error_message);

Line 11031: IF (g_asn_debug = 'Y') THEN

11027: rcv_error_pkg.log_interface_error('QUANTITY', FALSE);
11028: END IF;
11029: ELSE
11030: --Over delivery for that Receive txn on the spefied distribution, error out this deliver txn
11031: IF (g_asn_debug = 'Y') THEN
11032: asn_debug.put_line('Trying to perform over Delivery txn, on the specified distribution...Error out this Deliver txn..');
11033: END IF;
11034: x_cascaded_table(n).error_status := 'E';
11035: IF l_po_rel_num = -1 THEN--Bug 5439085

Line 11032: asn_debug.put_line('Trying to perform over Delivery txn, on the specified distribution...Error out this Deliver txn..');

11028: END IF;
11029: ELSE
11030: --Over delivery for that Receive txn on the spefied distribution, error out this deliver txn
11031: IF (g_asn_debug = 'Y') THEN
11032: asn_debug.put_line('Trying to perform over Delivery txn, on the specified distribution...Error out this Deliver txn..');
11033: END IF;
11034: x_cascaded_table(n).error_status := 'E';
11035: IF l_po_rel_num = -1 THEN--Bug 5439085
11036: rcv_error_pkg.set_error_message('RCV_TRX_QTY_EXCEEDS_AVL_QTY_PO', x_cascaded_table(n).error_message);

Line 11084: IF (g_asn_debug = 'Y') THEN

11080: temp_cascaded_table(current_n).item_id,
11081: x_po_transferrec.unit_of_meas
11082: ); -- in parents uom
11083:
11084: IF (g_asn_debug = 'Y') THEN
11085: asn_debug.put_line('l_total_rec_quantity ' || l_total_rec_quantity);
11086: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11087: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11088: END IF;

Line 11085: asn_debug.put_line('l_total_rec_quantity ' || l_total_rec_quantity);

11081: x_po_transferrec.unit_of_meas
11082: ); -- in parents uom
11083:
11084: IF (g_asn_debug = 'Y') THEN
11085: asn_debug.put_line('l_total_rec_quantity ' || l_total_rec_quantity);
11086: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11087: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11088: END IF;
11089:

Line 11086: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);

11082: ); -- in parents uom
11083:
11084: IF (g_asn_debug = 'Y') THEN
11085: asn_debug.put_line('l_total_rec_quantity ' || l_total_rec_quantity);
11086: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11087: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11088: END IF;
11089:
11090: IF ( (l_converted_transaction_qty <= l_total_rec_quantity)

Line 11087: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);

11083:
11084: IF (g_asn_debug = 'Y') THEN
11085: asn_debug.put_line('l_total_rec_quantity ' || l_total_rec_quantity);
11086: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11087: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11088: END IF;
11089:
11090: IF ( (l_converted_transaction_qty <= l_total_rec_quantity)
11091: AND (l_converted_transaction_qty <= l_converted_distribution_qty)) THEN

Line 11097: IF (g_asn_debug = 'Y') THEN

11093: ELSE
11094: x_converted_parent_trx_qty := 0;
11095: END IF;
11096:
11097: IF (g_asn_debug = 'Y') THEN
11098: asn_debug.put_line('Available qty for standard multiple distributions deliver ' || x_converted_parent_trx_qty);
11099: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11100: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11101: END IF;

Line 11098: asn_debug.put_line('Available qty for standard multiple distributions deliver ' || x_converted_parent_trx_qty);

11094: x_converted_parent_trx_qty := 0;
11095: END IF;
11096:
11097: IF (g_asn_debug = 'Y') THEN
11098: asn_debug.put_line('Available qty for standard multiple distributions deliver ' || x_converted_parent_trx_qty);
11099: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11100: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11101: END IF;
11102: END IF; --}

Line 11099: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);

11095: END IF;
11096:
11097: IF (g_asn_debug = 'Y') THEN
11098: asn_debug.put_line('Available qty for standard multiple distributions deliver ' || x_converted_parent_trx_qty);
11099: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11100: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11101: END IF;
11102: END IF; --}
11103:

Line 11100: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);

11096:
11097: IF (g_asn_debug = 'Y') THEN
11098: asn_debug.put_line('Available qty for standard multiple distributions deliver ' || x_converted_parent_trx_qty);
11099: asn_debug.put_line('l_converted_distribution_qty ' || l_converted_distribution_qty);
11100: asn_debug.put_line('l_converted_transaction_qty ' || l_converted_transaction_qty);
11101: END IF;
11102: END IF; --}
11103:
11104: IF ( (x_converted_parent_trx_qty = 0)

Line 11108: IF (g_asn_debug = 'Y') THEN

11104: IF ( (x_converted_parent_trx_qty = 0)
11105: AND ( (temp_cascaded_table(1).transaction_type <> 'DELIVER')
11106: OR ( temp_cascaded_table(1).transaction_type = 'DELIVER'
11107: AND l_num_of_distributions = 1))) THEN --{
11108: IF (g_asn_debug = 'Y') THEN
11109: asn_debug.put_line('calling transfer get_available_qty ');
11110: END IF;
11111:
11112: rcv_quantities_s.get_available_quantity('TRANSFER',

Line 11109: asn_debug.put_line('calling transfer get_available_qty ');

11105: AND ( (temp_cascaded_table(1).transaction_type <> 'DELIVER')
11106: OR ( temp_cascaded_table(1).transaction_type = 'DELIVER'
11107: AND l_num_of_distributions = 1))) THEN --{
11108: IF (g_asn_debug = 'Y') THEN
11109: asn_debug.put_line('calling transfer get_available_qty ');
11110: END IF;
11111:
11112: rcv_quantities_s.get_available_quantity('TRANSFER',
11113: x_po_transferrec.rcv_transaction_id,

Line 11126: IF (g_asn_debug = 'Y') THEN

11122: x_secondary_available_qty
11123: );
11124: END IF; --}
11125:
11126: IF (g_asn_debug = 'Y') THEN
11127: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for transfer is ' || x_converted_parent_trx_qty);
11128: END IF;
11129:
11130: x_remaining_qty_parent_uom := convert_into_correct_qty(x_remaining_quantity,

Line 11127: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for transfer is ' || x_converted_parent_trx_qty);

11123: );
11124: END IF; --}
11125:
11126: IF (g_asn_debug = 'Y') THEN
11127: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for transfer is ' || x_converted_parent_trx_qty);
11128: END IF;
11129:
11130: x_remaining_qty_parent_uom := convert_into_correct_qty(x_remaining_quantity,
11131: temp_cascaded_table(1).unit_of_measure,

Line 11137: IF (g_asn_debug = 'Y') THEN

11133: x_po_transferrec.unit_of_meas
11134: );
11135:
11136: IF (x_remaining_qty_parent_uom = 0) THEN
11137: IF (g_asn_debug = 'Y') THEN
11138: asn_debug.put_line(' Transfer Need an error message in the interface tables');
11139: END IF;
11140: ELSE
11141: /* Converted qty successfully and we have some quantity on which we can act */

Line 11138: asn_debug.put_line(' Transfer Need an error message in the interface tables');

11134: );
11135:
11136: IF (x_remaining_qty_parent_uom = 0) THEN
11137: IF (g_asn_debug = 'Y') THEN
11138: asn_debug.put_line(' Transfer Need an error message in the interface tables');
11139: END IF;
11140: ELSE
11141: /* Converted qty successfully and we have some quantity on which we can act */
11142: IF (g_asn_debug = 'Y') THEN

Line 11142: IF (g_asn_debug = 'Y') THEN

11138: asn_debug.put_line(' Transfer Need an error message in the interface tables');
11139: END IF;
11140: ELSE
11141: /* Converted qty successfully and we have some quantity on which we can act */
11142: IF (g_asn_debug = 'Y') THEN
11143: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);
11144: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_qty_parent_uom);
11145: END IF;
11146:

Line 11143: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);

11139: END IF;
11140: ELSE
11141: /* Converted qty successfully and we have some quantity on which we can act */
11142: IF (g_asn_debug = 'Y') THEN
11143: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);
11144: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_qty_parent_uom);
11145: END IF;
11146:
11147: IF (x_converted_parent_trx_qty > 0) THEN --{

Line 11144: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_qty_parent_uom);

11140: ELSE
11141: /* Converted qty successfully and we have some quantity on which we can act */
11142: IF (g_asn_debug = 'Y') THEN
11143: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);
11144: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_qty_parent_uom);
11145: END IF;
11146:
11147: IF (x_converted_parent_trx_qty > 0) THEN --{
11148: IF (x_converted_parent_trx_qty < x_remaining_qty_parent_uom) THEN --{

Line 11168: IF (g_asn_debug = 'Y') THEN

11164: END IF;
11165:
11166: insert_into_table := TRUE;
11167: ELSE --}{
11168: IF (g_asn_debug = 'Y') THEN
11169: asn_debug.put_line('We are in >= Qty branch ');
11170: END IF;
11171:
11172: x_converted_parent_trx_qty := x_remaining_qty_parent_uom;

Line 11169: asn_debug.put_line('We are in >= Qty branch ');

11165:
11166: insert_into_table := TRUE;
11167: ELSE --}{
11168: IF (g_asn_debug = 'Y') THEN
11169: asn_debug.put_line('We are in >= Qty branch ');
11170: END IF;
11171:
11172: x_converted_parent_trx_qty := x_remaining_qty_parent_uom;
11173: insert_into_table := TRUE;

Line 11181: IF (g_asn_debug = 'Y') THEN

11177: ELSE /* x_converted_parent_trx_qty >0 */ --}{
11178: IF rows_fetched = x_record_count THEN -- { last row needs to be inserted anyway
11179: -- so that the row can be used based on qty tolerance
11180: -- checks
11181: IF (g_asn_debug = 'Y') THEN
11182: asn_debug.put_line('Quantity is less then 0 but last record');
11183: END IF;
11184:
11185: insert_into_table := TRUE;

Line 11182: asn_debug.put_line('Quantity is less then 0 but last record');

11178: IF rows_fetched = x_record_count THEN -- { last row needs to be inserted anyway
11179: -- so that the row can be used based on qty tolerance
11180: -- checks
11181: IF (g_asn_debug = 'Y') THEN
11182: asn_debug.put_line('Quantity is less then 0 but last record');
11183: END IF;
11184:
11185: insert_into_table := TRUE;
11186: x_converted_trx_qty := 0;

Line 11188: IF (g_asn_debug = 'Y') THEN

11184:
11185: insert_into_table := TRUE;
11186: x_converted_trx_qty := 0;
11187: ELSE --}{
11188: IF (g_asn_debug = 'Y') THEN
11189: asn_debug.put_line('<= 0 Quantity but more records in cursor');
11190: END IF;
11191:
11192: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration

Line 11189: asn_debug.put_line('<= 0 Quantity but more records in cursor');

11185: insert_into_table := TRUE;
11186: x_converted_trx_qty := 0;
11187: ELSE --}{
11188: IF (g_asn_debug = 'Y') THEN
11189: asn_debug.put_line('<= 0 Quantity but more records in cursor');
11190: END IF;
11191:
11192: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration
11193:

Line 11194: IF (g_asn_debug = 'Y') THEN

11190: END IF;
11191:
11192: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration
11193:
11194: IF (g_asn_debug = 'Y') THEN
11195: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');
11196: END IF;
11197:
11198: insert_into_table := FALSE;

Line 11195: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');

11191:
11192: x_remaining_qty_po_uom := 0; -- we may have a diff uom on the next iteration
11193:
11194: IF (g_asn_debug = 'Y') THEN
11195: asn_debug.put_line('We have to deal with remaining_qty > 0 and x_converted_trx_qty -ve');
11196: END IF;
11197:
11198: insert_into_table := FALSE;
11199: END IF; --}

Line 11204: IF (g_asn_debug = 'Y') THEN

11200: END IF; /*x_converted_parent_trx_qty >0 */ --}
11201: END IF;
11202:
11203: /* Converted qty successfully and we have some quantity on which we can act */
11204: IF (g_asn_debug = 'Y') THEN
11205: asn_debug.put_line('Transaction qty in terms of the parents uom is ' || x_converted_parent_trx_qty);
11206: END IF;
11207:
11208: IF insert_into_table THEN --{ --start

Line 11205: asn_debug.put_line('Transaction qty in terms of the parents uom is ' || x_converted_parent_trx_qty);

11201: END IF;
11202:
11203: /* Converted qty successfully and we have some quantity on which we can act */
11204: IF (g_asn_debug = 'Y') THEN
11205: asn_debug.put_line('Transaction qty in terms of the parents uom is ' || x_converted_parent_trx_qty);
11206: END IF;
11207:
11208: IF insert_into_table THEN --{ --start
11209: IF (x_first_trans) THEN --{

Line 11210: IF (g_asn_debug = 'Y') THEN

11206: END IF;
11207:
11208: IF insert_into_table THEN --{ --start
11209: IF (x_first_trans) THEN --{
11210: IF (g_asn_debug = 'Y') THEN
11211: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
11212: END IF;
11213:
11214: x_first_trans := FALSE;

Line 11211: asn_debug.put_line('First Time ' || TO_CHAR(current_n));

11207:
11208: IF insert_into_table THEN --{ --start
11209: IF (x_first_trans) THEN --{
11210: IF (g_asn_debug = 'Y') THEN
11211: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
11212: END IF;
11213:
11214: x_first_trans := FALSE;
11215: ELSE --}{

Line 11216: IF (g_asn_debug = 'Y') THEN

11212: END IF;
11213:
11214: x_first_trans := FALSE;
11215: ELSE --}{
11216: IF (g_asn_debug = 'Y') THEN
11217: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
11218: END IF;
11219:
11220: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);

Line 11217: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));

11213:
11214: x_first_trans := FALSE;
11215: ELSE --}{
11216: IF (g_asn_debug = 'Y') THEN
11217: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
11218: END IF;
11219:
11220: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);
11221: END IF; --}

Line 11235: IF (g_asn_debug = 'Y') THEN

11231: temp_cascaded_table(current_n).item_id,
11232: temp_cascaded_table(current_n).unit_of_measure
11233: ); -- in asn uom
11234:
11235: IF (g_asn_debug = 'Y') THEN
11236: asn_debug.put_line('Transaction qty in terms of the transaction uom is ' || temp_cascaded_table(current_n).quantity);
11237: END IF;
11238: ELSE
11239: temp_cascaded_table(current_n).quantity := x_converted_parent_trx_qty;

Line 11236: asn_debug.put_line('Transaction qty in terms of the transaction uom is ' || temp_cascaded_table(current_n).quantity);

11232: temp_cascaded_table(current_n).unit_of_measure
11233: ); -- in asn uom
11234:
11235: IF (g_asn_debug = 'Y') THEN
11236: asn_debug.put_line('Transaction qty in terms of the transaction uom is ' || temp_cascaded_table(current_n).quantity);
11237: END IF;
11238: ELSE
11239: temp_cascaded_table(current_n).quantity := x_converted_parent_trx_qty;
11240: END IF;

Line 11252: IF (g_asn_debug = 'Y') THEN

11248: ELSE
11249: temp_cascaded_table(current_n).primary_quantity := x_converted_parent_trx_qty;
11250: END IF;
11251:
11252: IF (g_asn_debug = 'Y') THEN
11253: asn_debug.put_line('Transaction qty in terms of the primary uom is ' || temp_cascaded_table(current_n).primary_quantity);
11254: END IF;
11255:
11256: IF (NVL(x_cascaded_table(n).transaction_type, 'RECEIVE') = 'DELIVER') THEN --{

Line 11253: asn_debug.put_line('Transaction qty in terms of the primary uom is ' || temp_cascaded_table(current_n).primary_quantity);

11249: temp_cascaded_table(current_n).primary_quantity := x_converted_parent_trx_qty;
11250: END IF;
11251:
11252: IF (g_asn_debug = 'Y') THEN
11253: asn_debug.put_line('Transaction qty in terms of the primary uom is ' || temp_cascaded_table(current_n).primary_quantity);
11254: END IF;
11255:
11256: IF (NVL(x_cascaded_table(n).transaction_type, 'RECEIVE') = 'DELIVER') THEN --{
11257: temp_cascaded_table(current_n).po_distribution_id := x_po_transferrec.po_distribution_id;

Line 11265: IF (g_asn_debug = 'Y') THEN

11261: -- temp_cascaded_table(current_n).currency_conversion_rate := x_po_transferrec.rate;
11262: temp_cascaded_table(current_n).destination_type_code := x_po_transferrec.destination_type_code;
11263: temp_cascaded_table(current_n).destination_context := x_po_transferrec.destination_type_code;
11264:
11265: IF (g_asn_debug = 'Y') THEN
11266: asn_debug.put_line(' po_dist ' || temp_cascaded_table(current_n).po_distribution_id);
11267: END IF;
11268:
11269: IF (NVL(temp_cascaded_table(current_n).deliver_to_location_id, 0) = 0) THEN

Line 11266: asn_debug.put_line(' po_dist ' || temp_cascaded_table(current_n).po_distribution_id);

11262: temp_cascaded_table(current_n).destination_type_code := x_po_transferrec.destination_type_code;
11263: temp_cascaded_table(current_n).destination_context := x_po_transferrec.destination_type_code;
11264:
11265: IF (g_asn_debug = 'Y') THEN
11266: asn_debug.put_line(' po_dist ' || temp_cascaded_table(current_n).po_distribution_id);
11267: END IF;
11268:
11269: IF (NVL(temp_cascaded_table(current_n).deliver_to_location_id, 0) = 0) THEN
11270: temp_cascaded_table(current_n).deliver_to_location_id := x_po_transferrec.deliver_to_location_id;

Line 11273: IF (g_asn_debug = 'Y') THEN

11269: IF (NVL(temp_cascaded_table(current_n).deliver_to_location_id, 0) = 0) THEN
11270: temp_cascaded_table(current_n).deliver_to_location_id := x_po_transferrec.deliver_to_location_id;
11271: END IF;
11272:
11273: IF (g_asn_debug = 'Y') THEN
11274: asn_debug.put_line(' deliver_to_person_id ' || temp_cascaded_table(current_n).deliver_to_person_id);
11275: END IF;
11276:
11277: /* Bug 2392074 - If the deliver_to_person mentioned in the po_distributions is

Line 11274: asn_debug.put_line(' deliver_to_person_id ' || temp_cascaded_table(current_n).deliver_to_person_id);

11270: temp_cascaded_table(current_n).deliver_to_location_id := x_po_transferrec.deliver_to_location_id;
11271: END IF;
11272:
11273: IF (g_asn_debug = 'Y') THEN
11274: asn_debug.put_line(' deliver_to_person_id ' || temp_cascaded_table(current_n).deliver_to_person_id);
11275: END IF;
11276:
11277: /* Bug 2392074 - If the deliver_to_person mentioned in the po_distributions is
11278: invalid or inactive at the time of Receipt we need to clear the deliver to person,

Line 11299: IF (g_asn_debug = 'Y') THEN

11295: EXCEPTION
11296: WHEN NO_DATA_FOUND THEN
11297: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11298:
11299: IF (g_asn_debug = 'Y') THEN
11300: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
11301: asn_debug.put_line(' So it is cleared off');
11302: END IF;
11303: WHEN OTHERS THEN

Line 11300: asn_debug.put_line('The deliver to person entered in PO is currently inactive');

11296: WHEN NO_DATA_FOUND THEN
11297: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11298:
11299: IF (g_asn_debug = 'Y') THEN
11300: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
11301: asn_debug.put_line(' So it is cleared off');
11302: END IF;
11303: WHEN OTHERS THEN
11304: temp_cascaded_table(current_n).deliver_to_person_id := NULL;

Line 11301: asn_debug.put_line(' So it is cleared off');

11297: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11298:
11299: IF (g_asn_debug = 'Y') THEN
11300: asn_debug.put_line('The deliver to person entered in PO is currently inactive');
11301: asn_debug.put_line(' So it is cleared off');
11302: END IF;
11303: WHEN OTHERS THEN
11304: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11305:

Line 11306: IF (g_asn_debug = 'Y') THEN

11302: END IF;
11303: WHEN OTHERS THEN
11304: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11305:
11306: IF (g_asn_debug = 'Y') THEN
11307: asn_debug.put_line('Some exception has occured');
11308: asn_debug.put_line('This exception is due to the PO deliver to person');
11309: asn_debug.put_line('The deliver to person is optional');
11310: asn_debug.put_line('So cleared off the deliver to person');

Line 11307: asn_debug.put_line('Some exception has occured');

11303: WHEN OTHERS THEN
11304: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11305:
11306: IF (g_asn_debug = 'Y') THEN
11307: asn_debug.put_line('Some exception has occured');
11308: asn_debug.put_line('This exception is due to the PO deliver to person');
11309: asn_debug.put_line('The deliver to person is optional');
11310: asn_debug.put_line('So cleared off the deliver to person');
11311: END IF;

Line 11308: asn_debug.put_line('This exception is due to the PO deliver to person');

11304: temp_cascaded_table(current_n).deliver_to_person_id := NULL;
11305:
11306: IF (g_asn_debug = 'Y') THEN
11307: asn_debug.put_line('Some exception has occured');
11308: asn_debug.put_line('This exception is due to the PO deliver to person');
11309: asn_debug.put_line('The deliver to person is optional');
11310: asn_debug.put_line('So cleared off the deliver to person');
11311: END IF;
11312: END;

Line 11309: asn_debug.put_line('The deliver to person is optional');

11305:
11306: IF (g_asn_debug = 'Y') THEN
11307: asn_debug.put_line('Some exception has occured');
11308: asn_debug.put_line('This exception is due to the PO deliver to person');
11309: asn_debug.put_line('The deliver to person is optional');
11310: asn_debug.put_line('So cleared off the deliver to person');
11311: END IF;
11312: END;
11313: END IF; --}

Line 11310: asn_debug.put_line('So cleared off the deliver to person');

11306: IF (g_asn_debug = 'Y') THEN
11307: asn_debug.put_line('Some exception has occured');
11308: asn_debug.put_line('This exception is due to the PO deliver to person');
11309: asn_debug.put_line('The deliver to person is optional');
11310: asn_debug.put_line('So cleared off the deliver to person');
11311: END IF;
11312: END;
11313: END IF; --}
11314: END IF; --}

Line 11316: IF (g_asn_debug = 'Y') THEN

11312: END;
11313: END IF; --}
11314: END IF; --}
11315:
11316: IF (g_asn_debug = 'Y') THEN
11317: asn_debug.put_line(' subinventory ' || temp_cascaded_table(current_n).subinventory);
11318: END IF;
11319:
11320: IF (temp_cascaded_table(current_n).subinventory IS NULL) THEN

Line 11317: asn_debug.put_line(' subinventory ' || temp_cascaded_table(current_n).subinventory);

11313: END IF; --}
11314: END IF; --}
11315:
11316: IF (g_asn_debug = 'Y') THEN
11317: asn_debug.put_line(' subinventory ' || temp_cascaded_table(current_n).subinventory);
11318: END IF;
11319:
11320: IF (temp_cascaded_table(current_n).subinventory IS NULL) THEN
11321: temp_cascaded_table(current_n).subinventory := x_po_transferrec.destination_subinventory;

Line 11324: IF (g_asn_debug = 'Y') THEN

11320: IF (temp_cascaded_table(current_n).subinventory IS NULL) THEN
11321: temp_cascaded_table(current_n).subinventory := x_po_transferrec.destination_subinventory;
11322: END IF;
11323:
11324: IF (g_asn_debug = 'Y') THEN
11325: asn_debug.put_line(' wip_entity_id ' || temp_cascaded_table(current_n).wip_entity_id);
11326: END IF;
11327:
11328: temp_cascaded_table(current_n).wip_entity_id := x_po_transferrec.wip_entity_id;

Line 11325: asn_debug.put_line(' wip_entity_id ' || temp_cascaded_table(current_n).wip_entity_id);

11321: temp_cascaded_table(current_n).subinventory := x_po_transferrec.destination_subinventory;
11322: END IF;
11323:
11324: IF (g_asn_debug = 'Y') THEN
11325: asn_debug.put_line(' wip_entity_id ' || temp_cascaded_table(current_n).wip_entity_id);
11326: END IF;
11327:
11328: temp_cascaded_table(current_n).wip_entity_id := x_po_transferrec.wip_entity_id;
11329: temp_cascaded_table(current_n).wip_operation_seq_num := x_po_transferrec.wip_operation_seq_num;

Line 11335: IF (g_asn_debug = 'Y') THEN

11331: temp_cascaded_table(current_n).wip_repetitive_schedule_id := x_po_transferrec.wip_repetitive_schedule_id;
11332: temp_cascaded_table(current_n).wip_line_id := x_po_transferrec.wip_line_id;
11333: temp_cascaded_table(current_n).bom_resource_id := x_po_transferrec.bom_resource_id;
11334:
11335: IF (g_asn_debug = 'Y') THEN
11336: asn_debug.put_line(' ussgl_transaction_code ' || temp_cascaded_table(current_n).ussgl_transaction_code);
11337: END IF;
11338:
11339: -- bug 1361786

Line 11336: asn_debug.put_line(' ussgl_transaction_code ' || temp_cascaded_table(current_n).ussgl_transaction_code);

11332: temp_cascaded_table(current_n).wip_line_id := x_po_transferrec.wip_line_id;
11333: temp_cascaded_table(current_n).bom_resource_id := x_po_transferrec.bom_resource_id;
11334:
11335: IF (g_asn_debug = 'Y') THEN
11336: asn_debug.put_line(' ussgl_transaction_code ' || temp_cascaded_table(current_n).ussgl_transaction_code);
11337: END IF;
11338:
11339: -- bug 1361786
11340: IF (temp_cascaded_table(current_n).ussgl_transaction_code IS NULL) THEN

Line 11347: IF (g_asn_debug = 'Y') THEN

11343: END IF; --}
11344:
11345: current_n := current_n + 1;
11346:
11347: IF (g_asn_debug = 'Y') THEN
11348: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
11349: END IF;
11350: END IF; --}
11351: /* Get the available qty in PRIMARY UOM */

Line 11348: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));

11344:
11345: current_n := current_n + 1;
11346:
11347: IF (g_asn_debug = 'Y') THEN
11348: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
11349: END IF;
11350: END IF; --}
11351: /* Get the available qty in PRIMARY UOM */
11352: /*

Line 11362: IF (g_asn_debug = 'Y') THEN

11358: */
11359: END LOOP; --}
11360: ELSE --} {
11361: -- error_status and error_message are set after validate_quantity_shipped
11362: IF (g_asn_debug = 'Y') THEN
11363: asn_debug.put_line('No parent_transaction_id or parent_interface_transaction_id ');
11364: END IF;
11365:
11366: IF (g_asn_debug = 'Y') THEN

Line 11363: asn_debug.put_line('No parent_transaction_id or parent_interface_transaction_id ');

11359: END LOOP; --}
11360: ELSE --} {
11361: -- error_status and error_message are set after validate_quantity_shipped
11362: IF (g_asn_debug = 'Y') THEN
11363: asn_debug.put_line('No parent_transaction_id or parent_interface_transaction_id ');
11364: END IF;
11365:
11366: IF (g_asn_debug = 'Y') THEN
11367: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

Line 11366: IF (g_asn_debug = 'Y') THEN

11362: IF (g_asn_debug = 'Y') THEN
11363: asn_debug.put_line('No parent_transaction_id or parent_interface_transaction_id ');
11364: END IF;
11365:
11366: IF (g_asn_debug = 'Y') THEN
11367: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
11368: END IF;
11369:
11370: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{

Line 11367: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

11363: asn_debug.put_line('No parent_transaction_id or parent_interface_transaction_id ');
11364: END IF;
11365:
11366: IF (g_asn_debug = 'Y') THEN
11367: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
11368: END IF;
11369:
11370: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{
11371: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 11381: IF (g_asn_debug = 'Y') THEN

11377: rcv_error_pkg.log_interface_error('PARENT_TRANSACTION_ID', FALSE);
11378: END IF; --}
11379: END IF; -- } of (asn quantity_shipped was valid)
11380:
11381: IF (g_asn_debug = 'Y') THEN
11382: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);
11383: END IF;
11384:
11385: IF po_transfer%ISOPEN THEN

Line 11382: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);

11378: END IF; --}
11379: END IF; -- } of (asn quantity_shipped was valid)
11380:
11381: IF (g_asn_debug = 'Y') THEN
11382: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);
11383: END IF;
11384:
11385: IF po_transfer%ISOPEN THEN
11386: CLOSE po_transfer;

Line 11405: IF (g_asn_debug = 'Y') THEN

11401: IF po_deliver%ISOPEN THEN
11402: CLOSE po_deliver;
11403: END IF;
11404:
11405: IF (g_asn_debug = 'Y') THEN
11406: asn_debug.put_line('Exit explode_line_quantity');
11407: END IF;
11408: EXCEPTION
11409: WHEN OTHERS THEN

Line 11406: asn_debug.put_line('Exit explode_line_quantity');

11402: CLOSE po_deliver;
11403: END IF;
11404:
11405: IF (g_asn_debug = 'Y') THEN
11406: asn_debug.put_line('Exit explode_line_quantity');
11407: END IF;
11408: EXCEPTION
11409: WHEN OTHERS THEN
11410: IF (g_asn_debug = 'Y') THEN

Line 11410: IF (g_asn_debug = 'Y') THEN

11406: asn_debug.put_line('Exit explode_line_quantity');
11407: END IF;
11408: EXCEPTION
11409: WHEN OTHERS THEN
11410: IF (g_asn_debug = 'Y') THEN
11411: asn_debug.put_line('Exception in derive_trans_del_quantity ');
11412: END IF;
11413:
11414: IF po_transfer%ISOPEN THEN

Line 11411: asn_debug.put_line('Exception in derive_trans_del_quantity ');

11407: END IF;
11408: EXCEPTION
11409: WHEN OTHERS THEN
11410: IF (g_asn_debug = 'Y') THEN
11411: asn_debug.put_line('Exception in derive_trans_del_quantity ');
11412: END IF;
11413:
11414: IF po_transfer%ISOPEN THEN
11415: CLOSE po_transfer;

Line 11439: IF (g_asn_debug = 'Y') THEN

11435: rcv_error_pkg.set_sql_error_message('derive_trans_del_line_quantity', x_progress);
11436: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
11437: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
11438:
11439: IF (g_asn_debug = 'Y') THEN
11440: asn_debug.put_line(TO_CHAR(n));
11441: asn_debug.put_line(SQLERRM);
11442: asn_debug.put_line('error ' || x_progress);
11443: END IF;

Line 11440: asn_debug.put_line(TO_CHAR(n));

11436: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
11437: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
11438:
11439: IF (g_asn_debug = 'Y') THEN
11440: asn_debug.put_line(TO_CHAR(n));
11441: asn_debug.put_line(SQLERRM);
11442: asn_debug.put_line('error ' || x_progress);
11443: END IF;
11444: END derive_trans_del_line_quantity;

Line 11441: asn_debug.put_line(SQLERRM);

11437: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
11438:
11439: IF (g_asn_debug = 'Y') THEN
11440: asn_debug.put_line(TO_CHAR(n));
11441: asn_debug.put_line(SQLERRM);
11442: asn_debug.put_line('error ' || x_progress);
11443: END IF;
11444: END derive_trans_del_line_quantity;
11445:

Line 11442: asn_debug.put_line('error ' || x_progress);

11438:
11439: IF (g_asn_debug = 'Y') THEN
11440: asn_debug.put_line(TO_CHAR(n));
11441: asn_debug.put_line(SQLERRM);
11442: asn_debug.put_line('error ' || x_progress);
11443: END IF;
11444: END derive_trans_del_line_quantity;
11445:
11446: /*

Line 11566: IF (g_asn_debug = 'Y') THEN

11562: x_cascaded_table(n).processing_status_code := p_trx_record.processing_status_code;
11563: x_cascaded_table(n).transaction_status_code := p_trx_record.transaction_status_code;
11564: x_cascaded_table(n).auto_transact_code := p_trx_record.auto_transact_code;
11565:
11566: IF (g_asn_debug = 'Y') THEN
11567: asn_debug.put_line('Enter Default');
11568: END IF;
11569:
11570: IF x_cascaded_table(n).source_document_code IS NULL THEN

Line 11567: asn_debug.put_line('Enter Default');

11563: x_cascaded_table(n).transaction_status_code := p_trx_record.transaction_status_code;
11564: x_cascaded_table(n).auto_transact_code := p_trx_record.auto_transact_code;
11565:
11566: IF (g_asn_debug = 'Y') THEN
11567: asn_debug.put_line('Enter Default');
11568: END IF;
11569:
11570: IF x_cascaded_table(n).source_document_code IS NULL THEN
11571: IF x_cascaded_table(n).receipt_source_code = 'CUSTOMER' THEN

Line 11577: IF (g_asn_debug = 'Y') THEN

11573: ELSE
11574: x_cascaded_table(n).source_document_code := 'PO';
11575: END IF;
11576:
11577: IF (g_asn_debug = 'Y') THEN
11578: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);
11579: END IF;
11580: END IF;
11581:

Line 11578: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);

11574: x_cascaded_table(n).source_document_code := 'PO';
11575: END IF;
11576:
11577: IF (g_asn_debug = 'Y') THEN
11578: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);
11579: END IF;
11580: END IF;
11581:
11582: IF (x_cascaded_table(n).derive = 'Y') THEN --{

Line 11628: IF (g_asn_debug = 'Y') THEN

11624: x_cascaded_table(n).subinventory := x_cascaded_table(temp_index).subinventory;
11625: END IF;
11626: END IF; --}
11627: ELSE --} {
11628: IF (g_asn_debug = 'Y') THEN
11629: asn_debug.put_line('open cursor Default RTI');
11630: END IF;
11631:
11632: OPEN po_transfer_rti(x_cascaded_table(n).parent_interface_txn_id);

Line 11629: asn_debug.put_line('open cursor Default RTI');

11625: END IF;
11626: END IF; --}
11627: ELSE --} {
11628: IF (g_asn_debug = 'Y') THEN
11629: asn_debug.put_line('open cursor Default RTI');
11630: END IF;
11631:
11632: OPEN po_transfer_rti(x_cascaded_table(n).parent_interface_txn_id);
11633: END IF; --}

Line 11639: IF (g_asn_debug = 'Y') THEN

11635: OPEN po_transfer(x_cascaded_table(n).parent_transaction_id);
11636: END IF; --}
11637:
11638: IF (po_transfer%ISOPEN) THEN
11639: IF (g_asn_debug = 'Y') THEN
11640: asn_debug.put_line('fetch cursor Default');
11641: END IF;
11642:
11643: FETCH po_transfer INTO default_po_transfer_info;

Line 11640: asn_debug.put_line('fetch cursor Default');

11636: END IF; --}
11637:
11638: IF (po_transfer%ISOPEN) THEN
11639: IF (g_asn_debug = 'Y') THEN
11640: asn_debug.put_line('fetch cursor Default');
11641: END IF;
11642:
11643: FETCH po_transfer INTO default_po_transfer_info;
11644: ELSIF(po_transfer_rti%ISOPEN) THEN

Line 11652: IF (g_asn_debug = 'Y') THEN --{

11648: IF ( ( po_transfer%ISOPEN
11649: AND po_transfer%FOUND)
11650: OR ( po_transfer_rti%ISOPEN
11651: AND po_transfer_rti%FOUND)) THEN --{
11652: IF (g_asn_debug = 'Y') THEN --{
11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);
11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);

Line 11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);

11649: AND po_transfer%FOUND)
11650: OR ( po_transfer_rti%ISOPEN
11651: AND po_transfer_rti%FOUND)) THEN --{
11652: IF (g_asn_debug = 'Y') THEN --{
11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);
11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);

Line 11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);

11650: OR ( po_transfer_rti%ISOPEN
11651: AND po_transfer_rti%FOUND)) THEN --{
11652: IF (g_asn_debug = 'Y') THEN --{
11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);
11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);

Line 11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);

11651: AND po_transfer_rti%FOUND)) THEN --{
11652: IF (g_asn_debug = 'Y') THEN --{
11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);
11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);

Line 11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);

11652: IF (g_asn_debug = 'Y') THEN --{
11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);
11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);

Line 11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);

11653: asn_debug.put_line('Defaulting Transfer po_revision_num' || default_po_transfer_info.po_revision_num);
11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);

Line 11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);

11654: asn_debug.put_line('Defaulting Transfer item_description' || default_po_transfer_info.item_description);
11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);

Line 11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);

11655: asn_debug.put_line('Defaulting Transfer po_release_id' || default_po_transfer_info.po_release_id);
11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);

Line 11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);

11656: asn_debug.put_line('Defaulting Transfer location_id' || default_po_transfer_info.loc_id);
11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);

Line 11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);

11657: asn_debug.put_line('Defaulting Transfer organization_id' || default_po_transfer_info.organization_id);
11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);

Line 11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);

11658: asn_debug.put_line('Defaulting Transfer routing_header_id' || default_po_transfer_info.routing_header_id);
11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);

Line 11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);

11659: asn_debug.put_line('Defaulting Transfer currency_code' || default_po_transfer_info.currency_code);
11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);

Line 11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);

11660: asn_debug.put_line('Defaulting Transfer currency_conversion_rate' || default_po_transfer_info.currency_conversion_rate);
11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);

Line 11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);

11661: asn_debug.put_line('Defaulting Transfer currency_conversion_type' || default_po_transfer_info.currency_conversion_type);
11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);

Line 11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);

11662: asn_debug.put_line('Defaulting Transfer currency_conversion_date' || default_po_transfer_info.currency_conversion_date);
11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);

Line 11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);

11663: asn_debug.put_line('Defaulting Transfer shipment_header_id' || default_po_transfer_info.shipment_header_id);
11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);
11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);

Line 11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);

11664: asn_debug.put_line('Defaulting Transfer shipment_line_id' || default_po_transfer_info.shipment_line_id);
11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);
11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);
11672: asn_debug.put_line('Defaulting Transfer CUSTOMER_SITE_ID' || default_po_transfer_info.customer_site_id);

Line 11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);

11665: asn_debug.put_line('Defaulting Transfer category_id' || default_po_transfer_info.category_id);
11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);
11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);
11672: asn_debug.put_line('Defaulting Transfer CUSTOMER_SITE_ID' || default_po_transfer_info.customer_site_id);
11673: END IF; --}

Line 11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);

11666: asn_debug.put_line('Defaulting Transfer vendor_id' || default_po_transfer_info.vendor_id);
11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);
11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);
11672: asn_debug.put_line('Defaulting Transfer CUSTOMER_SITE_ID' || default_po_transfer_info.customer_site_id);
11673: END IF; --}
11674:

Line 11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);

11667: asn_debug.put_line('Defaulting Transfer vendor_site_id' || default_po_transfer_info.vendor_site_id);
11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);
11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);
11672: asn_debug.put_line('Defaulting Transfer CUSTOMER_SITE_ID' || default_po_transfer_info.customer_site_id);
11673: END IF; --}
11674:
11675: IF x_cascaded_table(n).oe_order_header_id IS NULL

Line 11672: asn_debug.put_line('Defaulting Transfer CUSTOMER_SITE_ID' || default_po_transfer_info.customer_site_id);

11668: asn_debug.put_line('Defaulting Transfer DELIVER_TO_PERSON_ID' || default_po_transfer_info.deliver_to_person_id);
11669: asn_debug.put_line('Defaulting Transfer DELIVER_TO_LOCATION_ID' || default_po_transfer_info.deliver_to_location_id);
11670: asn_debug.put_line('Defaulting Transfer SUBINVENTORY' || default_po_transfer_info.subinventory);
11671: asn_debug.put_line('Defaulting Transfer CUSTOMER_ID' || default_po_transfer_info.customer_id);
11672: asn_debug.put_line('Defaulting Transfer CUSTOMER_SITE_ID' || default_po_transfer_info.customer_site_id);
11673: END IF; --}
11674:
11675: IF x_cascaded_table(n).oe_order_header_id IS NULL
11676: AND x_cascaded_table(n).source_document_code = 'RMA' THEN

Line 11679: IF (g_asn_debug = 'Y') THEN

11675: IF x_cascaded_table(n).oe_order_header_id IS NULL
11676: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
11677: x_cascaded_table(n).oe_order_header_id := default_po_transfer_info.oe_order_header_id;
11678:
11679: IF (g_asn_debug = 'Y') THEN
11680: asn_debug.put_line('Defaulting Transfer oe_order_header_id ' || x_cascaded_table(n).oe_order_header_id);
11681: END IF;
11682: END IF;
11683:

Line 11680: asn_debug.put_line('Defaulting Transfer oe_order_header_id ' || x_cascaded_table(n).oe_order_header_id);

11676: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
11677: x_cascaded_table(n).oe_order_header_id := default_po_transfer_info.oe_order_header_id;
11678:
11679: IF (g_asn_debug = 'Y') THEN
11680: asn_debug.put_line('Defaulting Transfer oe_order_header_id ' || x_cascaded_table(n).oe_order_header_id);
11681: END IF;
11682: END IF;
11683:
11684: IF x_cascaded_table(n).oe_order_line_id IS NULL

Line 11688: IF (g_asn_debug = 'Y') THEN

11684: IF x_cascaded_table(n).oe_order_line_id IS NULL
11685: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
11686: x_cascaded_table(n).oe_order_line_id := default_po_transfer_info.oe_order_line_id;
11687:
11688: IF (g_asn_debug = 'Y') THEN
11689: asn_debug.put_line('Defaulting Transfer oe_order_line_id ' || x_cascaded_table(n).oe_order_line_id);
11690: END IF;
11691: END IF;
11692:

Line 11689: asn_debug.put_line('Defaulting Transfer oe_order_line_id ' || x_cascaded_table(n).oe_order_line_id);

11685: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
11686: x_cascaded_table(n).oe_order_line_id := default_po_transfer_info.oe_order_line_id;
11687:
11688: IF (g_asn_debug = 'Y') THEN
11689: asn_debug.put_line('Defaulting Transfer oe_order_line_id ' || x_cascaded_table(n).oe_order_line_id);
11690: END IF;
11691: END IF;
11692:
11693: x_cascaded_table(n).po_revision_num := default_po_transfer_info.po_revision_num;

Line 11728: IF (g_asn_debug = 'Y') THEN

11724: WHERE pll.line_location_id = x_cascaded_table(n).po_line_location_id
11725: AND pl.po_line_id = x_cascaded_table(n).po_line_id
11726: AND pl.po_line_id = pll.po_line_id;
11727:
11728: IF (g_asn_debug = 'Y') THEN
11729: asn_debug.put_line('Defaulting Transfer po_unit_price' || x_cascaded_table(n).po_unit_price);
11730: END IF;
11731: END IF; --}
11732:

Line 11729: asn_debug.put_line('Defaulting Transfer po_unit_price' || x_cascaded_table(n).po_unit_price);

11725: AND pl.po_line_id = x_cascaded_table(n).po_line_id
11726: AND pl.po_line_id = pll.po_line_id;
11727:
11728: IF (g_asn_debug = 'Y') THEN
11729: asn_debug.put_line('Defaulting Transfer po_unit_price' || x_cascaded_table(n).po_unit_price);
11730: END IF;
11731: END IF; --}
11732:
11733: x_cascaded_table(n).customer_id := default_po_transfer_info.customer_id;

Line 11811: IF (g_asn_debug = 'Y') THEN

11807: IF (x_cascaded_table(n).transaction_type = 'DELIVER') THEN
11808: x_cascaded_table(n).location_id := x_cascaded_table(n).deliver_to_location_id;
11809: END IF;
11810:
11811: IF (g_asn_debug = 'Y') THEN
11812: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
11813: END IF;
11814:
11815: IF (g_asn_debug = 'Y') THEN

Line 11812: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));

11808: x_cascaded_table(n).location_id := x_cascaded_table(n).deliver_to_location_id;
11809: END IF;
11810:
11811: IF (g_asn_debug = 'Y') THEN
11812: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
11813: END IF;
11814:
11815: IF (g_asn_debug = 'Y') THEN
11816: asn_debug.put_line('Exit default_vendor_trans_del');

Line 11815: IF (g_asn_debug = 'Y') THEN

11811: IF (g_asn_debug = 'Y') THEN
11812: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
11813: END IF;
11814:
11815: IF (g_asn_debug = 'Y') THEN
11816: asn_debug.put_line('Exit default_vendor_trans_del');
11817: END IF;
11818:
11819: IF po_transfer%ISOPEN THEN

Line 11816: asn_debug.put_line('Exit default_vendor_trans_del');

11812: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
11813: END IF;
11814:
11815: IF (g_asn_debug = 'Y') THEN
11816: asn_debug.put_line('Exit default_vendor_trans_del');
11817: END IF;
11818:
11819: IF po_transfer%ISOPEN THEN
11820: CLOSE po_transfer;

Line 11846: IF (g_asn_debug = 'Y') THEN

11842: l_return_status VARCHAR2(1) :='S';
11843: l_complex_flag varchar2(1);
11844:
11845: BEGIN
11846: IF (g_asn_debug = 'Y') THEN
11847: asn_debug.put_line('enter derive_correction_line ');
11848: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
11849: END IF;
11850:

Line 11847: asn_debug.put_line('enter derive_correction_line ');

11843: l_complex_flag varchar2(1);
11844:
11845: BEGIN
11846: IF (g_asn_debug = 'Y') THEN
11847: asn_debug.put_line('enter derive_correction_line ');
11848: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
11849: END IF;
11850:
11851: /* Derive the to_org_id */

Line 11848: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);

11844:
11845: BEGIN
11846: IF (g_asn_debug = 'Y') THEN
11847: asn_debug.put_line('enter derive_correction_line ');
11848: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
11849: END IF;
11850:
11851: /* Derive the to_org_id */
11852: derive_ship_to_org_info(x_cascaded_table,

Line 11858: IF (g_asn_debug = 'Y') THEN

11854: x_header_record
11855: );
11856:
11857: IF (x_cascaded_table(n).unit_of_measure IS NOT NULL) THEN
11858: IF (g_asn_debug = 'Y') THEN
11859: asn_debug.put_line('X_progress ' || x_progress);
11860: END IF;
11861:
11862: SELECT muom.uom_code

Line 11859: asn_debug.put_line('X_progress ' || x_progress);

11855: );
11856:
11857: IF (x_cascaded_table(n).unit_of_measure IS NOT NULL) THEN
11858: IF (g_asn_debug = 'Y') THEN
11859: asn_debug.put_line('X_progress ' || x_progress);
11860: END IF;
11861:
11862: SELECT muom.uom_code
11863: INTO x_cascaded_table(n).uom_code

Line 11867: IF (g_asn_debug = 'Y') THEN

11863: INTO x_cascaded_table(n).uom_code
11864: FROM mtl_units_of_measure muom
11865: WHERE muom.unit_of_measure = x_cascaded_table(n).unit_of_measure;
11866: ELSE
11867: IF (g_asn_debug = 'Y') THEN
11868: asn_debug.put_line('uom_code not derived as unit_of_measure is null');
11869: END IF;
11870: END IF;
11871:

Line 11868: asn_debug.put_line('uom_code not derived as unit_of_measure is null');

11864: FROM mtl_units_of_measure muom
11865: WHERE muom.unit_of_measure = x_cascaded_table(n).unit_of_measure;
11866: ELSE
11867: IF (g_asn_debug = 'Y') THEN
11868: asn_debug.put_line('uom_code not derived as unit_of_measure is null');
11869: END IF;
11870: END IF;
11871:
11872: x_progress := '091';

Line 11879: IF (g_asn_debug = 'Y') THEN

11875: x_cascaded_table(n).auto_transact_code := NULL;
11876:
11877: -- Determine whether this is a services line type
11878: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN
11879: IF (g_asn_debug = 'Y') THEN
11880: asn_debug.put_line('parent_transaction_id ' || x_cascaded_table(n).parent_transaction_id);
11881: END IF;
11882:
11883: SELECT po_line_id,po_header_id

Line 11880: asn_debug.put_line('parent_transaction_id ' || x_cascaded_table(n).parent_transaction_id);

11876:
11877: -- Determine whether this is a services line type
11878: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN
11879: IF (g_asn_debug = 'Y') THEN
11880: asn_debug.put_line('parent_transaction_id ' || x_cascaded_table(n).parent_transaction_id);
11881: END IF;
11882:
11883: SELECT po_line_id,po_header_id
11884: INTO x_cascaded_table(n).po_line_id,l_po_header_id

Line 11888: IF (g_asn_debug = 'Y') THEN

11884: INTO x_cascaded_table(n).po_line_id,l_po_header_id
11885: FROM rcv_transactions
11886: WHERE transaction_id = x_cascaded_table(n).parent_transaction_id;
11887: ELSIF(x_cascaded_table(n).parent_interface_txn_id IS NOT NULL) THEN
11888: IF (g_asn_debug = 'Y') THEN
11889: asn_debug.put_line('parent_interface_txn_id ' || x_cascaded_table(n).parent_interface_txn_id);
11890: END IF;
11891:
11892: SELECT po_line_id,po_header_id

Line 11889: asn_debug.put_line('parent_interface_txn_id ' || x_cascaded_table(n).parent_interface_txn_id);

11885: FROM rcv_transactions
11886: WHERE transaction_id = x_cascaded_table(n).parent_transaction_id;
11887: ELSIF(x_cascaded_table(n).parent_interface_txn_id IS NOT NULL) THEN
11888: IF (g_asn_debug = 'Y') THEN
11889: asn_debug.put_line('parent_interface_txn_id ' || x_cascaded_table(n).parent_interface_txn_id);
11890: END IF;
11891:
11892: SELECT po_line_id,po_header_id
11893: INTO x_cascaded_table(n).po_line_id,l_po_header_id

Line 11898: IF (g_asn_debug = 'Y') THEN

11894: FROM rcv_transactions_interface
11895: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id;
11896: END IF;
11897:
11898: IF (g_asn_debug = 'Y') THEN
11899: asn_debug.put_line('po_line_id ' || x_cascaded_table(n).po_line_id);
11900: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11901: END IF;
11902:

Line 11899: asn_debug.put_line('po_line_id ' || x_cascaded_table(n).po_line_id);

11895: WHERE interface_transaction_id = x_cascaded_table(n).parent_interface_txn_id;
11896: END IF;
11897:
11898: IF (g_asn_debug = 'Y') THEN
11899: asn_debug.put_line('po_line_id ' || x_cascaded_table(n).po_line_id);
11900: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11901: END IF;
11902:
11903: /* R12 Complex work.

Line 11900: asn_debug.put_line('l_po_header_id ' || l_po_header_id);

11896: END IF;
11897:
11898: IF (g_asn_debug = 'Y') THEN
11899: asn_debug.put_line('po_line_id ' || x_cascaded_table(n).po_line_id);
11900: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11901: END IF;
11902:
11903: /* R12 Complex work.
11904: * We do not support any other receiving transactions other

Line 11915: IF( g_asn_debug = 'Y' ) THEN

11911: l_return_status,
11912: l_complex_flag);
11913: IF (l_return_status IS NOT NULL AND
11914: l_return_status = FND_API.g_ret_sts_success) THEN
11915: IF( g_asn_debug = 'Y' ) THEN
11916: asn_debug.put_line('l_return_status ' || l_return_status);
11917: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11918: END IF;
11919: ELSE

Line 11916: asn_debug.put_line('l_return_status ' || l_return_status);

11912: l_complex_flag);
11913: IF (l_return_status IS NOT NULL AND
11914: l_return_status = FND_API.g_ret_sts_success) THEN
11915: IF( g_asn_debug = 'Y' ) THEN
11916: asn_debug.put_line('l_return_status ' || l_return_status);
11917: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11918: END IF;
11919: ELSE
11920: IF( g_asn_debug = 'Y') THEN

Line 11917: asn_debug.put_line('l_po_header_id ' || l_po_header_id);

11913: IF (l_return_status IS NOT NULL AND
11914: l_return_status = FND_API.g_ret_sts_success) THEN
11915: IF( g_asn_debug = 'Y' ) THEN
11916: asn_debug.put_line('l_return_status ' || l_return_status);
11917: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11918: END IF;
11919: ELSE
11920: IF( g_asn_debug = 'Y') THEN
11921: asn_debug.put_line('l_return_status ' || l_return_status);

Line 11920: IF( g_asn_debug = 'Y') THEN

11916: asn_debug.put_line('l_return_status ' || l_return_status);
11917: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11918: END IF;
11919: ELSE
11920: IF( g_asn_debug = 'Y') THEN
11921: asn_debug.put_line('l_return_status ' || l_return_status);
11922: END IF;
11923: END IF;
11924:

Line 11921: asn_debug.put_line('l_return_status ' || l_return_status);

11917: asn_debug.put_line('l_po_header_id ' || l_po_header_id);
11918: END IF;
11919: ELSE
11920: IF( g_asn_debug = 'Y') THEN
11921: asn_debug.put_line('l_return_status ' || l_return_status);
11922: END IF;
11923: END IF;
11924:
11925: IF (l_complex_flag = 'Y') THEN

Line 11926: asn_debug.put_line('We do not support transaction type ' || x_cascaded_table(n).transaction_type || ' for complex work POs');

11922: END IF;
11923: END IF;
11924:
11925: IF (l_complex_flag = 'Y') THEN
11926: asn_debug.put_line('We do not support transaction type ' || x_cascaded_table(n).transaction_type || ' for complex work POs');
11927: rcv_error_pkg.set_error_message('RCV_INVALID_TRANSACTION_TYPE');
11928: rcv_error_pkg.log_interface_error('TRANSACTION_TYPE');
11929: End if;
11930:

Line 11947: IF (g_asn_debug = 'Y') THEN

11943: x_cascaded_table(n).matching_basis := 'QUANTITY';
11944: x_cascaded_table(n).purchase_basis := 'GOODS';
11945: END IF;
11946:
11947: IF (g_asn_debug = 'Y') THEN
11948: asn_debug.put_line('matching_basis ' || x_cascaded_table(n).matching_basis);
11949: END IF;
11950:
11951: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN

Line 11948: asn_debug.put_line('matching_basis ' || x_cascaded_table(n).matching_basis);

11944: x_cascaded_table(n).purchase_basis := 'GOODS';
11945: END IF;
11946:
11947: IF (g_asn_debug = 'Y') THEN
11948: asn_debug.put_line('matching_basis ' || x_cascaded_table(n).matching_basis);
11949: END IF;
11950:
11951: IF (x_cascaded_table(n).matching_basis = 'AMOUNT') THEN
11952: derive_correction_line_amt(x_cascaded_table,

Line 11963: IF (g_asn_debug = 'Y') THEN

11959: temp_cascaded_table
11960: );
11961: END IF;
11962:
11963: IF (g_asn_debug = 'Y') THEN
11964: asn_debug.put_line('exit derive_correction_line');
11965: asn_debug.put_line('quantity ' || temp_cascaded_table(n).quantity);
11966: END IF;
11967: EXCEPTION

Line 11964: asn_debug.put_line('exit derive_correction_line');

11960: );
11961: END IF;
11962:
11963: IF (g_asn_debug = 'Y') THEN
11964: asn_debug.put_line('exit derive_correction_line');
11965: asn_debug.put_line('quantity ' || temp_cascaded_table(n).quantity);
11966: END IF;
11967: EXCEPTION
11968: WHEN OTHERS THEN

Line 11965: asn_debug.put_line('quantity ' || temp_cascaded_table(n).quantity);

11961: END IF;
11962:
11963: IF (g_asn_debug = 'Y') THEN
11964: asn_debug.put_line('exit derive_correction_line');
11965: asn_debug.put_line('quantity ' || temp_cascaded_table(n).quantity);
11966: END IF;
11967: EXCEPTION
11968: WHEN OTHERS THEN
11969: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_unexp_error;

Line 12185: IF (g_asn_debug = 'Y') THEN

12181: l_interface_qty_in_trx_uom NUMBER;
12182: l_item_id NUMBER;
12183: /* Bug#5369121 */
12184: BEGIN
12185: IF (g_asn_debug = 'Y') THEN
12186: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);
12187: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
12188: END IF;
12189:

Line 12186: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);

12182: l_item_id NUMBER;
12183: /* Bug#5369121 */
12184: BEGIN
12185: IF (g_asn_debug = 'Y') THEN
12186: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);
12187: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
12188: END IF;
12189:
12190: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN --{

Line 12187: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);

12183: /* Bug#5369121 */
12184: BEGIN
12185: IF (g_asn_debug = 'Y') THEN
12186: asn_debug.put_line('enter derive_quantity ' || x_cascaded_table(n).parent_transaction_id);
12187: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
12188: END IF;
12189:
12190: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN --{
12191: already_derived := TRUE;

Line 12215: IF (g_asn_debug = 'Y') THEN

12211: END;
12212: END IF; --}
12213:
12214: IF already_derived THEN --{
12215: IF (g_asn_debug = 'Y') THEN
12216: asn_debug.put_line(' open po_correct table ' || x_cascaded_table(n).parent_transaction_id);
12217: END IF;
12218:
12219: OPEN po_correct(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);

Line 12216: asn_debug.put_line(' open po_correct table ' || x_cascaded_table(n).parent_transaction_id);

12212: END IF; --}
12213:
12214: IF already_derived THEN --{
12215: IF (g_asn_debug = 'Y') THEN
12216: asn_debug.put_line(' open po_correct table ' || x_cascaded_table(n).parent_transaction_id);
12217: END IF;
12218:
12219: OPEN po_correct(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);
12220: END IF; ---}

Line 12240: IF (g_asn_debug = 'Y') THEN

12236: * We will have x_cascaded_table(n).
12237: * parent_interface_txn_id) populated with teh
12238: * correct value.
12239: */
12240: IF (g_asn_debug = 'Y') THEN
12241: asn_debug.put_line(' open correct cursor from rti');
12242: END IF;
12243:
12244: OPEN po_correct_rti(x_cascaded_table(n).parent_interface_txn_id);

Line 12241: asn_debug.put_line(' open correct cursor from rti');

12237: * parent_interface_txn_id) populated with teh
12238: * correct value.
12239: */
12240: IF (g_asn_debug = 'Y') THEN
12241: asn_debug.put_line(' open correct cursor from rti');
12242: END IF;
12243:
12244: OPEN po_correct_rti(x_cascaded_table(n).parent_interface_txn_id);
12245: END IF;

Line 12252: IF (g_asn_debug = 'Y') THEN

12248: /******************************************************************/
12249: --check line quanity > 0
12250: x_progress := '097';
12251:
12252: IF (g_asn_debug = 'Y') THEN
12253: asn_debug.put_line('X_progress ' || x_progress);
12254: END IF;
12255:
12256: IF x_cascaded_table(n).error_status IN('S', 'W')

Line 12253: asn_debug.put_line('X_progress ' || x_progress);

12249: --check line quanity > 0
12250: x_progress := '097';
12251:
12252: IF (g_asn_debug = 'Y') THEN
12253: asn_debug.put_line('X_progress ' || x_progress);
12254: END IF;
12255:
12256: IF x_cascaded_table(n).error_status IN('S', 'W')
12257: AND x_cascaded_table(n).quantity = 0 THEN --{

Line 12258: IF (g_asn_debug = 'Y') THEN

12254: END IF;
12255:
12256: IF x_cascaded_table(n).error_status IN('S', 'W')
12257: AND x_cascaded_table(n).quantity = 0 THEN --{
12258: IF (g_asn_debug = 'Y') THEN
12259: asn_debug.put_line('Quantity is <= zero. Cascade will fail');
12260: END IF;
12261:
12262: x_cascaded_table(n).error_status := 'F';

Line 12259: asn_debug.put_line('Quantity is <= zero. Cascade will fail');

12255:
12256: IF x_cascaded_table(n).error_status IN('S', 'W')
12257: AND x_cascaded_table(n).quantity = 0 THEN --{
12258: IF (g_asn_debug = 'Y') THEN
12259: asn_debug.put_line('Quantity is <= zero. Cascade will fail');
12260: END IF;
12261:
12262: x_cascaded_table(n).error_status := 'F';
12263: rcv_error_pkg.set_error_message('RCV_ENTER_QTY_GT_ZERO', x_cascaded_table(n).error_message);

Line 12279: IF (g_asn_debug = 'Y') THEN

12275: such a way that the ROI validation does'nt error out when
12276: po_line_id is populated for one time items. */
12277: x_progress := '098';
12278:
12279: IF (g_asn_debug = 'Y') THEN
12280: asn_debug.put_line('X_progress ' || x_progress);
12281: END IF;
12282:
12283: IF ( ( x_cascaded_table(n).parent_transaction_id IS NOT NULL

Line 12280: asn_debug.put_line('X_progress ' || x_progress);

12276: po_line_id is populated for one time items. */
12277: x_progress := '098';
12278:
12279: IF (g_asn_debug = 'Y') THEN
12280: asn_debug.put_line('X_progress ' || x_progress);
12281: END IF;
12282:
12283: IF ( ( x_cascaded_table(n).parent_transaction_id IS NOT NULL
12284: OR x_cascaded_table(n).parent_interface_txn_id IS NOT NULL)

Line 12288: IF (g_asn_debug = 'Y') THEN

12284: OR x_cascaded_table(n).parent_interface_txn_id IS NOT NULL)
12285: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
12286:
12287: -- Copy record from main table to temp table
12288: IF (g_asn_debug = 'Y') THEN
12289: asn_debug.put_line('Copy record from main table to temp table');
12290: END IF;
12291:
12292: current_n := 1;

Line 12289: asn_debug.put_line('Copy record from main table to temp table');

12285: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
12286:
12287: -- Copy record from main table to temp table
12288: IF (g_asn_debug = 'Y') THEN
12289: asn_debug.put_line('Copy record from main table to temp table');
12290: END IF;
12291:
12292: current_n := 1;
12293: temp_cascaded_table(current_n) := x_cascaded_table(n);

Line 12296: IF (g_asn_debug = 'Y') THEN

12292: current_n := 1;
12293: temp_cascaded_table(current_n) := x_cascaded_table(n);
12294:
12295: -- Get all rows which meet this condition
12296: IF (g_asn_debug = 'Y') THEN
12297: asn_debug.put_line('Get all rows which meet this condition');
12298: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
12299: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
12300: END IF;

Line 12297: asn_debug.put_line('Get all rows which meet this condition');

12293: temp_cascaded_table(current_n) := x_cascaded_table(n);
12294:
12295: -- Get all rows which meet this condition
12296: IF (g_asn_debug = 'Y') THEN
12297: asn_debug.put_line('Get all rows which meet this condition');
12298: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
12299: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
12300: END IF;
12301:

Line 12298: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);

12294:
12295: -- Get all rows which meet this condition
12296: IF (g_asn_debug = 'Y') THEN
12297: asn_debug.put_line('Get all rows which meet this condition');
12298: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
12299: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
12300: END IF;
12301:
12302: -- Assign shipped quantity to remaining quantity

Line 12299: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);

12295: -- Get all rows which meet this condition
12296: IF (g_asn_debug = 'Y') THEN
12297: asn_debug.put_line('Get all rows which meet this condition');
12298: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
12299: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
12300: END IF;
12301:
12302: -- Assign shipped quantity to remaining quantity
12303: IF (g_asn_debug = 'Y') THEN

Line 12303: IF (g_asn_debug = 'Y') THEN

12299: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
12300: END IF;
12301:
12302: -- Assign shipped quantity to remaining quantity
12303: IF (g_asn_debug = 'Y') THEN
12304: asn_debug.put_line('Assign populated quantity to remaining quantity');
12305: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
12306: END IF;
12307:

Line 12304: asn_debug.put_line('Assign populated quantity to remaining quantity');

12300: END IF;
12301:
12302: -- Assign shipped quantity to remaining quantity
12303: IF (g_asn_debug = 'Y') THEN
12304: asn_debug.put_line('Assign populated quantity to remaining quantity');
12305: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
12306: END IF;
12307:
12308: x_remaining_quantity := temp_cascaded_table(current_n).quantity;

Line 12305: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));

12301:
12302: -- Assign shipped quantity to remaining quantity
12303: IF (g_asn_debug = 'Y') THEN
12304: asn_debug.put_line('Assign populated quantity to remaining quantity');
12305: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
12306: END IF;
12307:
12308: x_remaining_quantity := temp_cascaded_table(current_n).quantity;
12309: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record

Line 12312: IF (g_asn_debug = 'Y') THEN

12308: x_remaining_quantity := temp_cascaded_table(current_n).quantity;
12309: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record
12310: x_remaining_qty_po_uom := 0;
12311:
12312: IF (g_asn_debug = 'Y') THEN
12313: asn_debug.put_line('Have assigned the quantity');
12314: END IF;
12315:
12316: -- Calculate tax_amount_factor for calculating tax_amount for

Line 12313: asn_debug.put_line('Have assigned the quantity');

12309: x_bkp_qty := x_remaining_quantity; -- used for decrementing cum qty for first record
12310: x_remaining_qty_po_uom := 0;
12311:
12312: IF (g_asn_debug = 'Y') THEN
12313: asn_debug.put_line('Have assigned the quantity');
12314: END IF;
12315:
12316: -- Calculate tax_amount_factor for calculating tax_amount for
12317: -- each cascaded line

Line 12325: IF (g_asn_debug = 'Y') THEN

12321: ELSE
12322: tax_amount_factor := 0;
12323: END IF;
12324:
12325: IF (g_asn_debug = 'Y') THEN
12326: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
12327: asn_debug.put_line('transaction Quantity : ' || TO_CHAR(x_remaining_quantity));
12328: END IF;
12329:

Line 12326: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));

12322: tax_amount_factor := 0;
12323: END IF;
12324:
12325: IF (g_asn_debug = 'Y') THEN
12326: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
12327: asn_debug.put_line('transaction Quantity : ' || TO_CHAR(x_remaining_quantity));
12328: END IF;
12329:
12330: x_first_trans := TRUE;

Line 12327: asn_debug.put_line('transaction Quantity : ' || TO_CHAR(x_remaining_quantity));

12323: END IF;
12324:
12325: IF (g_asn_debug = 'Y') THEN
12326: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
12327: asn_debug.put_line('transaction Quantity : ' || TO_CHAR(x_remaining_quantity));
12328: END IF;
12329:
12330: x_first_trans := TRUE;
12331: transaction_ok := FALSE;

Line 12333: IF (g_asn_debug = 'Y') THEN

12329:
12330: x_first_trans := TRUE;
12331: transaction_ok := FALSE;
12332:
12333: IF (g_asn_debug = 'Y') THEN
12334: asn_debug.put_line('Before starting Cascade');
12335: END IF;
12336:
12337: IF (g_asn_debug = 'Y') THEN

Line 12334: asn_debug.put_line('Before starting Cascade');

12330: x_first_trans := TRUE;
12331: transaction_ok := FALSE;
12332:
12333: IF (g_asn_debug = 'Y') THEN
12334: asn_debug.put_line('Before starting Cascade');
12335: END IF;
12336:
12337: IF (g_asn_debug = 'Y') THEN
12338: asn_debug.put_line('Record Count = ' || x_record_count);

Line 12337: IF (g_asn_debug = 'Y') THEN

12333: IF (g_asn_debug = 'Y') THEN
12334: asn_debug.put_line('Before starting Cascade');
12335: END IF;
12336:
12337: IF (g_asn_debug = 'Y') THEN
12338: asn_debug.put_line('Record Count = ' || x_record_count);
12339: END IF;
12340:
12341: LOOP --{

Line 12338: asn_debug.put_line('Record Count = ' || x_record_count);

12334: asn_debug.put_line('Before starting Cascade');
12335: END IF;
12336:
12337: IF (g_asn_debug = 'Y') THEN
12338: asn_debug.put_line('Record Count = ' || x_record_count);
12339: END IF;
12340:
12341: LOOP --{
12342: IF (g_asn_debug = 'Y') THEN

Line 12342: IF (g_asn_debug = 'Y') THEN

12338: asn_debug.put_line('Record Count = ' || x_record_count);
12339: END IF;
12340:
12341: LOOP --{
12342: IF (g_asn_debug = 'Y') THEN
12343: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
12344: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_quantity));
12345: END IF;
12346:

Line 12343: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));

12339: END IF;
12340:
12341: LOOP --{
12342: IF (g_asn_debug = 'Y') THEN
12343: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
12344: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_quantity));
12345: END IF;
12346:
12347: /*

Line 12344: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_quantity));

12340:
12341: LOOP --{
12342: IF (g_asn_debug = 'Y') THEN
12343: asn_debug.put_line('Backup Qty ' || TO_CHAR(x_bkp_qty));
12344: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_quantity));
12345: END IF;
12346:
12347: /*
12348: ** Fetch the appropriate record

Line 12350: IF (g_asn_debug = 'Y') THEN

12346:
12347: /*
12348: ** Fetch the appropriate record
12349: */
12350: IF (g_asn_debug = 'Y') THEN
12351: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
12352: END IF;
12353:
12354: IF (po_correct%ISOPEN) THEN --{

Line 12351: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);

12347: /*
12348: ** Fetch the appropriate record
12349: */
12350: IF (g_asn_debug = 'Y') THEN
12351: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
12352: END IF;
12353:
12354: IF (po_correct%ISOPEN) THEN --{
12355: IF (g_asn_debug = 'Y') THEN

Line 12355: IF (g_asn_debug = 'Y') THEN

12351: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
12352: END IF;
12353:
12354: IF (po_correct%ISOPEN) THEN --{
12355: IF (g_asn_debug = 'Y') THEN
12356: asn_debug.put_line(' fetch po_correct');
12357: END IF;
12358:
12359: FETCH po_correct INTO x_po_correctrec;

Line 12356: asn_debug.put_line(' fetch po_correct');

12352: END IF;
12353:
12354: IF (po_correct%ISOPEN) THEN --{
12355: IF (g_asn_debug = 'Y') THEN
12356: asn_debug.put_line(' fetch po_correct');
12357: END IF;
12358:
12359: FETCH po_correct INTO x_po_correctrec;
12360:

Line 12367: IF (g_asn_debug = 'Y') THEN

12363: END IF;
12364:
12365: rows_fetched := po_correct%ROWCOUNT;
12366: ELSIF(po_correct_rti%ISOPEN) THEN --}{
12367: IF (g_asn_debug = 'Y') THEN
12368: asn_debug.put_line(' fetch po_correct_rti');
12369: END IF;
12370:
12371: FETCH po_correct_rti INTO x_po_correctrec;

Line 12368: asn_debug.put_line(' fetch po_correct_rti');

12364:
12365: rows_fetched := po_correct%ROWCOUNT;
12366: ELSIF(po_correct_rti%ISOPEN) THEN --}{
12367: IF (g_asn_debug = 'Y') THEN
12368: asn_debug.put_line(' fetch po_correct_rti');
12369: END IF;
12370:
12371: FETCH po_correct_rti INTO x_po_correctrec;
12372:

Line 12374: IF (g_asn_debug = 'Y') THEN

12370:
12371: FETCH po_correct_rti INTO x_po_correctrec;
12372:
12373: IF (po_correct_rti%NOTFOUND) THEN
12374: IF (g_asn_debug = 'Y') THEN
12375: asn_debug.put_line('correct last row');
12376: END IF;
12377:
12378: lastrecord := TRUE;

Line 12375: asn_debug.put_line('correct last row');

12371: FETCH po_correct_rti INTO x_po_correctrec;
12372:
12373: IF (po_correct_rti%NOTFOUND) THEN
12374: IF (g_asn_debug = 'Y') THEN
12375: asn_debug.put_line('correct last row');
12376: END IF;
12377:
12378: lastrecord := TRUE;
12379: END IF;

Line 12391: IF (g_asn_debug = 'Y') THEN

12387: * parent_interface_txn_id) populated with
12388: * with the correct value. Also we have cascaded_table_index
12389: * with the correct pl/sql table index number;
12390: */
12391: IF (g_asn_debug = 'Y') THEN
12392: asn_debug.put_line(' fetch pl/sql table');
12393: END IF;
12394:
12395: temp_index := temp_cascaded_table(current_n).derive_index;

Line 12392: asn_debug.put_line(' fetch pl/sql table');

12388: * with the correct value. Also we have cascaded_table_index
12389: * with the correct pl/sql table index number;
12390: */
12391: IF (g_asn_debug = 'Y') THEN
12392: asn_debug.put_line(' fetch pl/sql table');
12393: END IF;
12394:
12395: temp_index := temp_cascaded_table(current_n).derive_index;
12396: x_po_correctrec.po_line_location_id := x_cascaded_table(temp_index).po_line_location_id;

Line 12434: IF (g_asn_debug = 'Y') THEN

12430: lastrecord := TRUE;
12431: END IF; --}
12432: --x_remaining_quantity:= temp_cascaded_table(current_n).quantity;
12433:
12434: IF (g_asn_debug = 'Y') THEN
12435: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
12436: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
12437: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);

Line 12435: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));

12431: END IF; --}
12432: --x_remaining_quantity:= temp_cascaded_table(current_n).quantity;
12433:
12434: IF (g_asn_debug = 'Y') THEN
12435: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
12436: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
12437: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);
12439: END IF;

Line 12436: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));

12432: --x_remaining_quantity:= temp_cascaded_table(current_n).quantity;
12433:
12434: IF (g_asn_debug = 'Y') THEN
12435: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
12436: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
12437: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);
12439: END IF;
12440:

Line 12437: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));

12433:
12434: IF (g_asn_debug = 'Y') THEN
12435: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
12436: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
12437: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);
12439: END IF;
12440:
12441: IF (lastrecord) THEN --{

Line 12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);

12434: IF (g_asn_debug = 'Y') THEN
12435: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
12436: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
12437: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);
12439: END IF;
12440:
12441: IF (lastrecord) THEN --{
12442: IF (g_asn_debug = 'Y') THEN

Line 12442: IF (g_asn_debug = 'Y') THEN

12438: asn_debug.put_line('correct remainaing qty ' || x_remaining_quantity);
12439: END IF;
12440:
12441: IF (lastrecord) THEN --{
12442: IF (g_asn_debug = 'Y') THEN
12443: asn_debug.put_line('Hit exit condition');
12444: END IF;
12445:
12446: IF NOT x_first_trans THEN

Line 12443: asn_debug.put_line('Hit exit condition');

12439: END IF;
12440:
12441: IF (lastrecord) THEN --{
12442: IF (g_asn_debug = 'Y') THEN
12443: asn_debug.put_line('Hit exit condition');
12444: END IF;
12445:
12446: IF NOT x_first_trans THEN
12447: -- x_first_trans has been reset which means some cascade has

Line 12449: IF (g_asn_debug = 'Y') THEN

12445:
12446: IF NOT x_first_trans THEN
12447: -- x_first_trans has been reset which means some cascade has
12448: -- happened. Otherwise current_n = 1
12449: IF (g_asn_debug = 'Y') THEN
12450: asn_debug.put_line('current_n before is ' || current_n);
12451: END IF;
12452:
12453: current_n := current_n - 1;

Line 12450: asn_debug.put_line('current_n before is ' || current_n);

12446: IF NOT x_first_trans THEN
12447: -- x_first_trans has been reset which means some cascade has
12448: -- happened. Otherwise current_n = 1
12449: IF (g_asn_debug = 'Y') THEN
12450: asn_debug.put_line('current_n before is ' || current_n);
12451: END IF;
12452:
12453: current_n := current_n - 1;
12454: END IF;

Line 12457: IF (g_asn_debug = 'Y') THEN

12453: current_n := current_n - 1;
12454: END IF;
12455:
12456: -- do the tolerance act here
12457: IF (g_asn_debug = 'Y') THEN
12458: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
12459: asn_debug.put_line('Check which condition has occured');
12460: END IF;
12461:

Line 12458: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));

12454: END IF;
12455:
12456: -- do the tolerance act here
12457: IF (g_asn_debug = 'Y') THEN
12458: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
12459: asn_debug.put_line('Check which condition has occured');
12460: END IF;
12461:
12462: -- lastrecord...we have run out of rows and we still have quantity to allocate

Line 12459: asn_debug.put_line('Check which condition has occured');

12455:
12456: -- do the tolerance act here
12457: IF (g_asn_debug = 'Y') THEN
12458: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
12459: asn_debug.put_line('Check which condition has occured');
12460: END IF;
12461:
12462: -- lastrecord...we have run out of rows and we still have quantity to allocate
12463: /* Do abs(x_remaining_quantity) since it can be a negative

Line 12467: IF (g_asn_debug = 'Y') THEN

12463: /* Do abs(x_remaining_quantity) since it can be a negative
12464: * or positive correction.
12465: */
12466: IF ABS(x_remaining_quantity) > 0 THEN --{
12467: IF (g_asn_debug = 'Y') THEN
12468: asn_debug.put_line('There is quantity remaining ');
12469: asn_debug.put_line('tolerable quantity now in plsql table ' || temp_cascaded_table(current_n).quantity);
12470: asn_debug.put_line('rows_fetched ' || rows_fetched);
12471: END IF;

Line 12468: asn_debug.put_line('There is quantity remaining ');

12464: * or positive correction.
12465: */
12466: IF ABS(x_remaining_quantity) > 0 THEN --{
12467: IF (g_asn_debug = 'Y') THEN
12468: asn_debug.put_line('There is quantity remaining ');
12469: asn_debug.put_line('tolerable quantity now in plsql table ' || temp_cascaded_table(current_n).quantity);
12470: asn_debug.put_line('rows_fetched ' || rows_fetched);
12471: END IF;
12472:

Line 12469: asn_debug.put_line('tolerable quantity now in plsql table ' || temp_cascaded_table(current_n).quantity);

12465: */
12466: IF ABS(x_remaining_quantity) > 0 THEN --{
12467: IF (g_asn_debug = 'Y') THEN
12468: asn_debug.put_line('There is quantity remaining ');
12469: asn_debug.put_line('tolerable quantity now in plsql table ' || temp_cascaded_table(current_n).quantity);
12470: asn_debug.put_line('rows_fetched ' || rows_fetched);
12471: END IF;
12472:
12473: IF NOT x_first_trans THEN

Line 12470: asn_debug.put_line('rows_fetched ' || rows_fetched);

12466: IF ABS(x_remaining_quantity) > 0 THEN --{
12467: IF (g_asn_debug = 'Y') THEN
12468: asn_debug.put_line('There is quantity remaining ');
12469: asn_debug.put_line('tolerable quantity now in plsql table ' || temp_cascaded_table(current_n).quantity);
12470: asn_debug.put_line('rows_fetched ' || rows_fetched);
12471: END IF;
12472:
12473: IF NOT x_first_trans THEN
12474: IF (g_asn_debug = 'Y') THEN

Line 12474: IF (g_asn_debug = 'Y') THEN

12470: asn_debug.put_line('rows_fetched ' || rows_fetched);
12471: END IF;
12472:
12473: IF NOT x_first_trans THEN
12474: IF (g_asn_debug = 'Y') THEN
12475: asn_debug.put_line('not fisrt txn');
12476: END IF;
12477: END IF;
12478:

Line 12475: asn_debug.put_line('not fisrt txn');

12471: END IF;
12472:
12473: IF NOT x_first_trans THEN
12474: IF (g_asn_debug = 'Y') THEN
12475: asn_debug.put_line('not fisrt txn');
12476: END IF;
12477: END IF;
12478:
12479: IF rows_fetched > 0

Line 12481: IF (g_asn_debug = 'Y') THEN

12477: END IF;
12478:
12479: IF rows_fetched > 0
12480: AND NOT x_first_trans THEN --{
12481: IF (g_asn_debug = 'Y') THEN
12482: asn_debug.put_line(' inside transaction_type ' || x_po_correctrec.parent_transaction_type);
12483: END IF;
12484:
12485: IF (SIGN(x_cascaded_table(current_n).quantity) = 1) THEN --{

Line 12482: asn_debug.put_line(' inside transaction_type ' || x_po_correctrec.parent_transaction_type);

12478:
12479: IF rows_fetched > 0
12480: AND NOT x_first_trans THEN --{
12481: IF (g_asn_debug = 'Y') THEN
12482: asn_debug.put_line(' inside transaction_type ' || x_po_correctrec.parent_transaction_type);
12483: END IF;
12484:
12485: IF (SIGN(x_cascaded_table(current_n).quantity) = 1) THEN --{
12486: IF (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH')) THEN --{

Line 12487: IF (g_asn_debug = 'Y') THEN

12483: END IF;
12484:
12485: IF (SIGN(x_cascaded_table(current_n).quantity) = 1) THEN --{
12486: IF (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH')) THEN --{
12487: IF (g_asn_debug = 'Y') THEN
12488: asn_debug.put_line('Need to check qty tolerances');
12489: END IF;
12490:
12491: SELECT NVL(po_line_locations.qty_rcv_exception_code, 'NONE')

Line 12488: asn_debug.put_line('Need to check qty tolerances');

12484:
12485: IF (SIGN(x_cascaded_table(current_n).quantity) = 1) THEN --{
12486: IF (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH')) THEN --{
12487: IF (g_asn_debug = 'Y') THEN
12488: asn_debug.put_line('Need to check qty tolerances');
12489: END IF;
12490:
12491: SELECT NVL(po_line_locations.qty_rcv_exception_code, 'NONE')
12492: INTO x_qty_rcv_exception_code

Line 12496: IF (g_asn_debug = 'Y') THEN

12492: INTO x_qty_rcv_exception_code
12493: FROM po_line_locations
12494: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
12495:
12496: IF (g_asn_debug = 'Y') THEN
12497: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
12498: END IF;
12499:
12500: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{

Line 12497: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));

12493: FROM po_line_locations
12494: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
12495:
12496: IF (g_asn_debug = 'Y') THEN
12497: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
12498: END IF;
12499:
12500: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
12501: /* Bug# 1807842 */

Line 12503: IF (g_asn_debug = 'Y') THEN

12499:
12500: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
12501: /* Bug# 1807842 */
12502: IF (temp_cascaded_table(current_n).quantity <= x_converted_parent_trx_qty) THEN --{
12503: IF (g_asn_debug = 'Y') THEN
12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));
12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');

Line 12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));

12500: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
12501: /* Bug# 1807842 */
12502: IF (temp_cascaded_table(current_n).quantity <= x_converted_parent_trx_qty) THEN --{
12503: IF (g_asn_debug = 'Y') THEN
12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));
12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
12508: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');

Line 12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));

12501: /* Bug# 1807842 */
12502: IF (temp_cascaded_table(current_n).quantity <= x_converted_parent_trx_qty) THEN --{
12503: IF (g_asn_debug = 'Y') THEN
12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));
12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
12508: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
12509: END IF;

Line 12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));

12502: IF (temp_cascaded_table(current_n).quantity <= x_converted_parent_trx_qty) THEN --{
12503: IF (g_asn_debug = 'Y') THEN
12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));
12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
12508: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
12509: END IF;
12510:

Line 12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');

12503: IF (g_asn_debug = 'Y') THEN
12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));
12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
12508: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
12509: END IF;
12510:
12511: temp_cascaded_table(current_n).quantity := temp_cascaded_table(current_n).quantity + x_remaining_quantity;

Line 12508: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');

12504: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_parent_trx_qty));
12505: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12506: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12507: asn_debug.put_line('Assign remaining ASN UOM qty ' || TO_CHAR(x_remaining_quantity) || ' to last record');
12508: asn_debug.put_line('Assign remaining PO UOM qty ' || TO_CHAR(x_remaining_qty_po_uom) || ' to last record');
12509: END IF;
12510:
12511: temp_cascaded_table(current_n).quantity := temp_cascaded_table(current_n).quantity + x_remaining_quantity;
12512: temp_cascaded_table(current_n).primary_quantity := temp_cascaded_table(current_n).primary_quantity

Line 12522: IF (g_asn_debug = 'Y') THEN

12518: END IF; /* Bug# 1807842 */ --}
12519:
12520: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 6);
12521:
12522: IF (g_asn_debug = 'Y') THEN
12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

Line 12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));

12519:
12520: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 6);
12521:
12522: IF (g_asn_debug = 'Y') THEN
12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

Line 12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));

12520: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).quantity * tax_amount_factor, 6);
12521:
12522: IF (g_asn_debug = 'Y') THEN
12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12528: END IF;

Line 12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));

12521:
12522: IF (g_asn_debug = 'Y') THEN
12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12528: END IF;
12529:

Line 12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

12522: IF (g_asn_debug = 'Y') THEN
12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12528: END IF;
12529:
12530: IF x_qty_rcv_exception_code = 'WARNING' THEN --{

Line 12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

12523: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12524: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12525: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12526: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12528: END IF;
12529:
12530: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
12531: IF (g_asn_debug = 'Y') THEN

Line 12531: IF (g_asn_debug = 'Y') THEN

12527: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12528: END IF;
12529:
12530: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
12531: IF (g_asn_debug = 'Y') THEN
12532: asn_debug.put_line('IN WARNING');
12533: END IF;
12534:
12535: temp_cascaded_table(current_n).error_status := 'W';

Line 12532: asn_debug.put_line('IN WARNING');

12528: END IF;
12529:
12530: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
12531: IF (g_asn_debug = 'Y') THEN
12532: asn_debug.put_line('IN WARNING');
12533: END IF;
12534:
12535: temp_cascaded_table(current_n).error_status := 'W';
12536: temp_cascaded_table(current_n).error_message := 'RCV_ALL_QTY_OVER_TOLERANCE';

Line 12538: IF (g_asn_debug = 'Y') THEN

12534:
12535: temp_cascaded_table(current_n).error_status := 'W';
12536: temp_cascaded_table(current_n).error_message := 'RCV_ALL_QTY_OVER_TOLERANCE';
12537:
12538: IF (g_asn_debug = 'Y') THEN
12539: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
12540: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
12541: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
12542: END IF;

Line 12539: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));

12535: temp_cascaded_table(current_n).error_status := 'W';
12536: temp_cascaded_table(current_n).error_message := 'RCV_ALL_QTY_OVER_TOLERANCE';
12537:
12538: IF (g_asn_debug = 'Y') THEN
12539: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
12540: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
12541: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
12542: END IF;
12543:

Line 12540: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));

12536: temp_cascaded_table(current_n).error_message := 'RCV_ALL_QTY_OVER_TOLERANCE';
12537:
12538: IF (g_asn_debug = 'Y') THEN
12539: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
12540: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
12541: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
12542: END IF;
12543:
12544: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 12541: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));

12537:
12538: IF (g_asn_debug = 'Y') THEN
12539: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
12540: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
12541: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
12542: END IF;
12543:
12544: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;
12545: rcv_error_pkg.set_error_message('RCV_ENTER_QTY_GT_ZERO', x_cascaded_table(n).error_message);

Line 12550: IF (g_asn_debug = 'Y') THEN

12546: rcv_error_pkg.set_token('QTY_A', temp_cascaded_table(current_n).quantity);
12547: rcv_error_pkg.set_token('QTY_B', temp_cascaded_table(current_n).quantity - x_remaining_quantity);
12548: rcv_error_pkg.log_interface_warning('QUANTITY');
12549:
12550: IF (g_asn_debug = 'Y') THEN
12551: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
12552: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
12553: asn_debug.put_line('Need to insert into po_interface_errors');
12554: END IF;

Line 12551: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);

12547: rcv_error_pkg.set_token('QTY_B', temp_cascaded_table(current_n).quantity - x_remaining_quantity);
12548: rcv_error_pkg.log_interface_warning('QUANTITY');
12549:
12550: IF (g_asn_debug = 'Y') THEN
12551: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
12552: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
12553: asn_debug.put_line('Need to insert into po_interface_errors');
12554: END IF;
12555: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'

Line 12552: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);

12548: rcv_error_pkg.log_interface_warning('QUANTITY');
12549:
12550: IF (g_asn_debug = 'Y') THEN
12551: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
12552: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
12553: asn_debug.put_line('Need to insert into po_interface_errors');
12554: END IF;
12555: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
12556:

Line 12553: asn_debug.put_line('Need to insert into po_interface_errors');

12549:
12550: IF (g_asn_debug = 'Y') THEN
12551: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
12552: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
12553: asn_debug.put_line('Need to insert into po_interface_errors');
12554: END IF;
12555: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
12556:
12557: IF (g_asn_debug = 'Y') THEN

Line 12557: IF (g_asn_debug = 'Y') THEN

12553: asn_debug.put_line('Need to insert into po_interface_errors');
12554: END IF;
12555: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
12556:
12557: IF (g_asn_debug = 'Y') THEN
12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

Line 12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));

12554: END IF;
12555: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
12556:
12557: IF (g_asn_debug = 'Y') THEN
12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12562: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

Line 12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));

12555: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
12556:
12557: IF (g_asn_debug = 'Y') THEN
12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12562: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12563: END IF;

Line 12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));

12556:
12557: IF (g_asn_debug = 'Y') THEN
12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12562: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12563: END IF;
12564: END IF; --}

Line 12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));

12557: IF (g_asn_debug = 'Y') THEN
12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12562: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12563: END IF;
12564: END IF; --}
12565: END IF; --}

Line 12562: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

12558: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity));
12559: asn_debug.put_line('Current shipped quantity ' || TO_CHAR(temp_cascaded_table(current_n).quantity_shipped));
12560: asn_debug.put_line('Current source document quantity ' || TO_CHAR(temp_cascaded_table(current_n).source_doc_quantity));
12561: asn_debug.put_line('Current primary quantity ' || TO_CHAR(temp_cascaded_table(current_n).primary_quantity));
12562: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
12563: END IF;
12564: END IF; --}
12565: END IF; --}
12566:

Line 12570: IF (g_asn_debug = 'Y') THEN

12566:
12567: IF ( ( (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH'))
12568: AND x_qty_rcv_exception_code = 'REJECT')
12569: OR (x_po_correctrec.parent_transaction_type NOT IN('RECEIVE', 'MATCH'))) THEN --{
12570: IF (g_asn_debug = 'Y') THEN
12571: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
12572: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
12573: END IF;
12574:

Line 12571: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));

12567: IF ( ( (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH'))
12568: AND x_qty_rcv_exception_code = 'REJECT')
12569: OR (x_po_correctrec.parent_transaction_type NOT IN('RECEIVE', 'MATCH'))) THEN --{
12570: IF (g_asn_debug = 'Y') THEN
12571: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
12572: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
12573: END IF;
12574:
12575: IF (g_asn_debug = 'Y') THEN

Line 12572: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));

12568: AND x_qty_rcv_exception_code = 'REJECT')
12569: OR (x_po_correctrec.parent_transaction_type NOT IN('RECEIVE', 'MATCH'))) THEN --{
12570: IF (g_asn_debug = 'Y') THEN
12571: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
12572: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
12573: END IF;
12574:
12575: IF (g_asn_debug = 'Y') THEN
12576: asn_debug.put_line('delete the temp table ');

Line 12575: IF (g_asn_debug = 'Y') THEN

12571: asn_debug.put_line('Extra ASN UOM Quantity ' || TO_CHAR(x_remaining_quantity));
12572: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
12573: END IF;
12574:
12575: IF (g_asn_debug = 'Y') THEN
12576: asn_debug.put_line('delete the temp table ');
12577: END IF;
12578:
12579: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 12576: asn_debug.put_line('delete the temp table ');

12572: asn_debug.put_line('Extra PO UOM Quantity ' || TO_CHAR(x_remaining_qty_po_uom));
12573: END IF;
12574:
12575: IF (g_asn_debug = 'Y') THEN
12576: asn_debug.put_line('delete the temp table ');
12577: END IF;
12578:
12579: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
12580: rcv_error_pkg.set_error_message('RCV_CORRECT_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 12591: IF (g_asn_debug = 'Y') THEN

12587: temp_cascaded_table.DELETE(i);
12588: END LOOP;
12589: END IF;
12590:
12591: IF (g_asn_debug = 'Y') THEN
12592: asn_debug.put_line('mark the actual table with error status');
12593: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12595: END IF;

Line 12592: asn_debug.put_line('mark the actual table with error status');

12588: END LOOP;
12589: END IF;
12590:
12591: IF (g_asn_debug = 'Y') THEN
12592: asn_debug.put_line('mark the actual table with error status');
12593: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12595: END IF;
12596:

Line 12593: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

12589: END IF;
12590:
12591: IF (g_asn_debug = 'Y') THEN
12592: asn_debug.put_line('mark the actual table with error status');
12593: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12595: END IF;
12596:
12597: IF (g_asn_debug = 'Y') THEN

Line 12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

12590:
12591: IF (g_asn_debug = 'Y') THEN
12592: asn_debug.put_line('mark the actual table with error status');
12593: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12595: END IF;
12596:
12597: IF (g_asn_debug = 'Y') THEN
12598: asn_debug.put_line('Need to insert a row into po_interface_errors');

Line 12597: IF (g_asn_debug = 'Y') THEN

12593: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12595: END IF;
12596:
12597: IF (g_asn_debug = 'Y') THEN
12598: asn_debug.put_line('Need to insert a row into po_interface_errors');
12599: END IF;
12600: END IF; --} matches if(none/warning) and elseif(reject)
12601: END IF; --}

Line 12598: asn_debug.put_line('Need to insert a row into po_interface_errors');

12594: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12595: END IF;
12596:
12597: IF (g_asn_debug = 'Y') THEN
12598: asn_debug.put_line('Need to insert a row into po_interface_errors');
12599: END IF;
12600: END IF; --} matches if(none/warning) and elseif(reject)
12601: END IF; --}
12602:

Line 12608: IF (g_asn_debug = 'Y') THEN

12604: /* for correct,accept an reject type we dont have the
12605: * tolerance check. Hence error out.
12606: * We cannot correct quantities more than that was received.
12607: */
12608: IF (g_asn_debug = 'Y') THEN
12609: asn_debug.put_line(' in correct extra Quantity ' || TO_CHAR(x_remaining_quantity));
12610: END IF;
12611:
12612: IF (g_asn_debug = 'Y') THEN

Line 12609: asn_debug.put_line(' in correct extra Quantity ' || TO_CHAR(x_remaining_quantity));

12605: * tolerance check. Hence error out.
12606: * We cannot correct quantities more than that was received.
12607: */
12608: IF (g_asn_debug = 'Y') THEN
12609: asn_debug.put_line(' in correct extra Quantity ' || TO_CHAR(x_remaining_quantity));
12610: END IF;
12611:
12612: IF (g_asn_debug = 'Y') THEN
12613: asn_debug.put_line('delete the temp table ');

Line 12612: IF (g_asn_debug = 'Y') THEN

12608: IF (g_asn_debug = 'Y') THEN
12609: asn_debug.put_line(' in correct extra Quantity ' || TO_CHAR(x_remaining_quantity));
12610: END IF;
12611:
12612: IF (g_asn_debug = 'Y') THEN
12613: asn_debug.put_line('delete the temp table ');
12614: END IF;
12615: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
12616: rcv_error_pkg.set_error_message('RCV_CORRECT_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 12613: asn_debug.put_line('delete the temp table ');

12609: asn_debug.put_line(' in correct extra Quantity ' || TO_CHAR(x_remaining_quantity));
12610: END IF;
12611:
12612: IF (g_asn_debug = 'Y') THEN
12613: asn_debug.put_line('delete the temp table ');
12614: END IF;
12615: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
12616: rcv_error_pkg.set_error_message('RCV_CORRECT_QTY_OVER_TOLERANCE', x_cascaded_table(n).error_message);
12617: rcv_error_pkg.set_token('QTY_A', x_cascaded_table(current_n).quantity);

Line 12627: IF (g_asn_debug = 'Y') THEN

12623: temp_cascaded_table.DELETE(i);
12624: END LOOP;
12625: END IF;
12626:
12627: IF (g_asn_debug = 'Y') THEN
12628: asn_debug.put_line('mark the actual table with error status');
12629: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12631: END IF;

Line 12628: asn_debug.put_line('mark the actual table with error status');

12624: END LOOP;
12625: END IF;
12626:
12627: IF (g_asn_debug = 'Y') THEN
12628: asn_debug.put_line('mark the actual table with error status');
12629: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12631: END IF;
12632:

Line 12629: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

12625: END IF;
12626:
12627: IF (g_asn_debug = 'Y') THEN
12628: asn_debug.put_line('mark the actual table with error status');
12629: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12631: END IF;
12632:
12633: IF (g_asn_debug = 'Y') THEN

Line 12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

12626:
12627: IF (g_asn_debug = 'Y') THEN
12628: asn_debug.put_line('mark the actual table with error status');
12629: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12631: END IF;
12632:
12633: IF (g_asn_debug = 'Y') THEN
12634: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');

Line 12633: IF (g_asn_debug = 'Y') THEN

12629: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12631: END IF;
12632:
12633: IF (g_asn_debug = 'Y') THEN
12634: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');
12635: END IF;
12636: END IF; --}
12637: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true

Line 12634: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');

12630: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
12631: END IF;
12632:
12633: IF (g_asn_debug = 'Y') THEN
12634: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');
12635: END IF;
12636: END IF; --}
12637: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
12638: IF rows_fetched = 0 THEN

Line 12639: IF (g_asn_debug = 'Y') THEN

12635: END IF;
12636: END IF; --}
12637: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
12638: IF rows_fetched = 0 THEN
12639: IF (g_asn_debug = 'Y') THEN
12640: asn_debug.put_line('No rows were retrieved from cursor.');
12641: END IF;
12642: ELSIF x_first_trans THEN
12643: IF (g_asn_debug = 'Y') THEN

Line 12640: asn_debug.put_line('No rows were retrieved from cursor.');

12636: END IF; --}
12637: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
12638: IF rows_fetched = 0 THEN
12639: IF (g_asn_debug = 'Y') THEN
12640: asn_debug.put_line('No rows were retrieved from cursor.');
12641: END IF;
12642: ELSIF x_first_trans THEN
12643: IF (g_asn_debug = 'Y') THEN
12644: asn_debug.put_line('No rows were cascaded');

Line 12643: IF (g_asn_debug = 'Y') THEN

12639: IF (g_asn_debug = 'Y') THEN
12640: asn_debug.put_line('No rows were retrieved from cursor.');
12641: END IF;
12642: ELSIF x_first_trans THEN
12643: IF (g_asn_debug = 'Y') THEN
12644: asn_debug.put_line('No rows were cascaded');
12645: END IF;
12646: END IF;
12647:

Line 12644: asn_debug.put_line('No rows were cascaded');

12640: asn_debug.put_line('No rows were retrieved from cursor.');
12641: END IF;
12642: ELSIF x_first_trans THEN
12643: IF (g_asn_debug = 'Y') THEN
12644: asn_debug.put_line('No rows were cascaded');
12645: END IF;
12646: END IF;
12647:
12648: x_temp_count := 1;

Line 12758: IF (g_asn_debug = 'Y') THEN

12754: END LOOP;
12755: END IF;
12756: END IF; --}
12757: ELSE -- }{
12758: IF (g_asn_debug = 'Y') THEN
12759: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
12760: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
12761: END IF;
12762: END IF; --} ends the check for whether last record has been reached

Line 12759: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));

12755: END IF;
12756: END IF; --}
12757: ELSE -- }{
12758: IF (g_asn_debug = 'Y') THEN
12759: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
12760: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
12761: END IF;
12762: END IF; --} ends the check for whether last record has been reached
12763:

Line 12760: asn_debug.put_line('Return the cascaded rows back to the calling procedure');

12756: END IF; --}
12757: ELSE -- }{
12758: IF (g_asn_debug = 'Y') THEN
12759: asn_debug.put_line('Remaining UOM quantity is zero ' || TO_CHAR(x_remaining_quantity));
12760: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
12761: END IF;
12762: END IF; --} ends the check for whether last record has been reached
12763:
12764: -- close cursors

Line 12766: IF (g_asn_debug = 'Y') THEN

12762: END IF; --} ends the check for whether last record has been reached
12763:
12764: -- close cursors
12765:
12766: IF (g_asn_debug = 'Y') THEN
12767: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);
12768: END IF;
12769:
12770: IF po_correct%ISOPEN THEN

Line 12767: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);

12763:
12764: -- close cursors
12765:
12766: IF (g_asn_debug = 'Y') THEN
12767: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);
12768: END IF;
12769:
12770: IF po_correct%ISOPEN THEN
12771: CLOSE po_correct;

Line 12778: IF (g_asn_debug = 'Y') THEN

12774: IF po_correct_rti%ISOPEN THEN
12775: CLOSE po_correct_rti;
12776: END IF;
12777:
12778: IF (g_asn_debug = 'Y') THEN
12779: asn_debug.put_line('before exit current_n is ' || current_n);
12780: END IF;
12781:
12782: EXIT;

Line 12779: asn_debug.put_line('before exit current_n is ' || current_n);

12775: CLOSE po_correct_rti;
12776: END IF;
12777:
12778: IF (g_asn_debug = 'Y') THEN
12779: asn_debug.put_line('before exit current_n is ' || current_n);
12780: END IF;
12781:
12782: EXIT;
12783: END IF; --} matches lastrecord or x_remaining_quantity <= 0

Line 12790: IF (g_asn_debug = 'Y') THEN

12786: --copy the parents unit of measure into the childs unit of measure, as this will be the one
12787: --which will be finally populated into RT for the child record (correction record).
12788: --temp_cascaded_table(current_n).unit_of_measure := x_po_correctrec.unit_of_meas;
12789:
12790: IF (g_asn_debug = 'Y') THEN
12791: asn_debug.put_line(' Entering qty calculation for correct');
12792: END IF;
12793:
12794: IF (x_first_trans)

Line 12791: asn_debug.put_line(' Entering qty calculation for correct');

12787: --which will be finally populated into RT for the child record (correction record).
12788: --temp_cascaded_table(current_n).unit_of_measure := x_po_correctrec.unit_of_meas;
12789:
12790: IF (g_asn_debug = 'Y') THEN
12791: asn_debug.put_line(' Entering qty calculation for correct');
12792: END IF;
12793:
12794: IF (x_first_trans)
12795: AND temp_cascaded_table(current_n).item_id IS NULL THEN

Line 12803: IF (g_asn_debug = 'Y') THEN

12799:
12800: insert_into_table := FALSE;
12801: already_allocated_qty := 0;
12802:
12803: IF (g_asn_debug = 'Y') THEN
12804: asn_debug.put_line('calling Correct get_available_qty ' || x_po_correctrec.parent_transaction_type);
12805: END IF;
12806:
12807: get_interface_available_qty(temp_cascaded_table,

Line 12804: asn_debug.put_line('calling Correct get_available_qty ' || x_po_correctrec.parent_transaction_type);

12800: insert_into_table := FALSE;
12801: already_allocated_qty := 0;
12802:
12803: IF (g_asn_debug = 'Y') THEN
12804: asn_debug.put_line('calling Correct get_available_qty ' || x_po_correctrec.parent_transaction_type);
12805: END IF;
12806:
12807: get_interface_available_qty(temp_cascaded_table,
12808: current_n,

Line 12812: IF (g_asn_debug = 'Y') THEN

12808: current_n,
12809: x_converted_parent_trx_qty
12810: );
12811:
12812: IF (g_asn_debug = 'Y') THEN
12813: asn_debug.put_line('correct interface_available_qty ' || x_converted_parent_trx_qty);
12814: END IF;
12815:
12816: /* x_converted_parent_trx_qty will be 0 when this is not a child

Line 12813: asn_debug.put_line('correct interface_available_qty ' || x_converted_parent_trx_qty);

12809: x_converted_parent_trx_qty
12810: );
12811:
12812: IF (g_asn_debug = 'Y') THEN
12813: asn_debug.put_line('correct interface_available_qty ' || x_converted_parent_trx_qty);
12814: END IF;
12815:
12816: /* x_converted_parent_trx_qty will be 0 when this is not a child
12817: * transaction to any rti row. Also for correct, grand parent

Line 12822: IF (g_asn_debug = 'Y') THEN

12818: * may already be processed and for positive correction we
12819: * might need to get the quantity from the grand parent.
12820: */
12821: IF (x_converted_parent_trx_qty = 0) THEN --{
12822: IF (g_asn_debug = 'Y') THEN
12823: asn_debug.put_line('interface qty is 0');
12824: END IF;
12825:
12826: IF (SIGN(temp_cascaded_table(current_n).quantity) = -1) THEN --{

Line 12823: asn_debug.put_line('interface qty is 0');

12819: * might need to get the quantity from the grand parent.
12820: */
12821: IF (x_converted_parent_trx_qty = 0) THEN --{
12822: IF (g_asn_debug = 'Y') THEN
12823: asn_debug.put_line('interface qty is 0');
12824: END IF;
12825:
12826: IF (SIGN(temp_cascaded_table(current_n).quantity) = -1) THEN --{
12827: rcv_quantities_s.get_available_quantity('CORRECT',

Line 12840: IF (g_asn_debug = 'Y') THEN

12836: x_secondary_available_qty
12837: );
12838:
12839: /* Bug#5369121 - START */
12840: IF (g_asn_debug = 'Y') THEN
12841: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);
12842: asn_debug.put_line('transaction_quantity:' || temp_cascaded_table(current_n).quantity);
12843: END IF;
12844:

Line 12841: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);

12837: );
12838:
12839: /* Bug#5369121 - START */
12840: IF (g_asn_debug = 'Y') THEN
12841: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);
12842: asn_debug.put_line('transaction_quantity:' || temp_cascaded_table(current_n).quantity);
12843: END IF;
12844:
12845: IF (x_converted_parent_trx_qty < ABS(temp_cascaded_table(current_n).quantity)) THEN

Line 12842: asn_debug.put_line('transaction_quantity:' || temp_cascaded_table(current_n).quantity);

12838:
12839: /* Bug#5369121 - START */
12840: IF (g_asn_debug = 'Y') THEN
12841: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);
12842: asn_debug.put_line('transaction_quantity:' || temp_cascaded_table(current_n).quantity);
12843: END IF;
12844:
12845: IF (x_converted_parent_trx_qty < ABS(temp_cascaded_table(current_n).quantity)) THEN
12846:

Line 12885: IF (g_asn_debug = 'Y') THEN

12881: /*
12882: ** There is unprocessed quantity. Convert it to the transaction uom
12883: ** so that the available quantity can be calculated in the trx uom
12884: */
12885: IF (g_asn_debug = 'Y') THEN
12886: asn_debug.put_line('Before uom_convert:');
12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);
12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);
12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);

Line 12886: asn_debug.put_line('Before uom_convert:');

12882: ** There is unprocessed quantity. Convert it to the transaction uom
12883: ** so that the available quantity can be calculated in the trx uom
12884: */
12885: IF (g_asn_debug = 'Y') THEN
12886: asn_debug.put_line('Before uom_convert:');
12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);
12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);
12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);
12890: asn_debug.put_line('l_item_id' || l_item_id);

Line 12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);

12883: ** so that the available quantity can be calculated in the trx uom
12884: */
12885: IF (g_asn_debug = 'Y') THEN
12886: asn_debug.put_line('Before uom_convert:');
12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);
12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);
12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);
12890: asn_debug.put_line('l_item_id' || l_item_id);
12891: END IF;

Line 12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);

12884: */
12885: IF (g_asn_debug = 'Y') THEN
12886: asn_debug.put_line('Before uom_convert:');
12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);
12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);
12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);
12890: asn_debug.put_line('l_item_id' || l_item_id);
12891: END IF;
12892:

Line 12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);

12885: IF (g_asn_debug = 'Y') THEN
12886: asn_debug.put_line('Before uom_convert:');
12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);
12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);
12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);
12890: asn_debug.put_line('l_item_id' || l_item_id);
12891: END IF;
12892:
12893: po_uom_s.uom_convert(l_interface_quantity, l_primary_uom, l_item_id,

Line 12890: asn_debug.put_line('l_item_id' || l_item_id);

12886: asn_debug.put_line('Before uom_convert:');
12887: asn_debug.put_line('l_interface_quantity' || l_interface_quantity);
12888: asn_debug.put_line('l_primary_uom' || l_primary_uom);
12889: asn_debug.put_line('l_transaction_uom' || l_transaction_uom);
12890: asn_debug.put_line('l_item_id' || l_item_id);
12891: END IF;
12892:
12893: po_uom_s.uom_convert(l_interface_quantity, l_primary_uom, l_item_id,
12894: l_transaction_uom, l_interface_qty_in_trx_uom);

Line 12900: IF (g_asn_debug = 'Y') THEN

12896: END IF;
12897:
12898: x_converted_parent_trx_qty := x_converted_parent_trx_qty - l_interface_qty_in_trx_uom;
12899:
12900: IF (g_asn_debug = 'Y') THEN
12901: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);
12902: END IF;
12903:
12904: END IF;

Line 12901: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);

12897:
12898: x_converted_parent_trx_qty := x_converted_parent_trx_qty - l_interface_qty_in_trx_uom;
12899:
12900: IF (g_asn_debug = 'Y') THEN
12901: asn_debug.put_line('x_converted_parent_trx_qty:' || x_converted_parent_trx_qty);
12902: END IF;
12903:
12904: END IF;
12905: /* Bug#5369121 - END */

Line 12938: IF (g_asn_debug = 'Y') THEN

12934: END IF;
12935: END IF; --}
12936: END IF; --} -- interface_available_qty is 0.
12937:
12938: IF (g_asn_debug = 'Y') THEN
12939: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for correct is ' || x_converted_parent_trx_qty);
12940: asn_debug.put_line('tolerable qty from GET_AVAILABLE_QUANTITY for correct is ' || x_tolerable_qty);
12941: END IF;
12942:

Line 12939: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for correct is ' || x_converted_parent_trx_qty);

12935: END IF; --}
12936: END IF; --} -- interface_available_qty is 0.
12937:
12938: IF (g_asn_debug = 'Y') THEN
12939: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for correct is ' || x_converted_parent_trx_qty);
12940: asn_debug.put_line('tolerable qty from GET_AVAILABLE_QUANTITY for correct is ' || x_tolerable_qty);
12941: END IF;
12942:
12943: IF (x_remaining_quantity = 0) THEN

Line 12940: asn_debug.put_line('tolerable qty from GET_AVAILABLE_QUANTITY for correct is ' || x_tolerable_qty);

12936: END IF; --} -- interface_available_qty is 0.
12937:
12938: IF (g_asn_debug = 'Y') THEN
12939: asn_debug.put_line('qty from GET_AVAILABLE_QUANTITY for correct is ' || x_converted_parent_trx_qty);
12940: asn_debug.put_line('tolerable qty from GET_AVAILABLE_QUANTITY for correct is ' || x_tolerable_qty);
12941: END IF;
12942:
12943: IF (x_remaining_quantity = 0) THEN
12944: IF (g_asn_debug = 'Y') THEN

Line 12944: IF (g_asn_debug = 'Y') THEN

12940: asn_debug.put_line('tolerable qty from GET_AVAILABLE_QUANTITY for correct is ' || x_tolerable_qty);
12941: END IF;
12942:
12943: IF (x_remaining_quantity = 0) THEN
12944: IF (g_asn_debug = 'Y') THEN
12945: asn_debug.put_line(' correct Need an error message in the interface tables');
12946: END IF;
12947: ELSE
12948: /* Converted successfully and have some quantity on which we can act */

Line 12945: asn_debug.put_line(' correct Need an error message in the interface tables');

12941: END IF;
12942:
12943: IF (x_remaining_quantity = 0) THEN
12944: IF (g_asn_debug = 'Y') THEN
12945: asn_debug.put_line(' correct Need an error message in the interface tables');
12946: END IF;
12947: ELSE
12948: /* Converted successfully and have some quantity on which we can act */
12949: IF (g_asn_debug = 'Y') THEN

Line 12949: IF (g_asn_debug = 'Y') THEN

12945: asn_debug.put_line(' correct Need an error message in the interface tables');
12946: END IF;
12947: ELSE
12948: /* Converted successfully and have some quantity on which we can act */
12949: IF (g_asn_debug = 'Y') THEN
12950: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);
12951: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_quantity);
12952: END IF;
12953:

Line 12950: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);

12946: END IF;
12947: ELSE
12948: /* Converted successfully and have some quantity on which we can act */
12949: IF (g_asn_debug = 'Y') THEN
12950: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);
12951: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_quantity);
12952: END IF;
12953:
12954: /* x_tolerable_quantity will be > 0 only for correction

Line 12951: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_quantity);

12947: ELSE
12948: /* Converted successfully and have some quantity on which we can act */
12949: IF (g_asn_debug = 'Y') THEN
12950: asn_debug.put_line('Converted trx qty that is available ' || x_converted_parent_trx_qty);
12951: asn_debug.put_line('Remaining qty in parents uom that is available ' || x_remaining_quantity);
12952: END IF;
12953:
12954: /* x_tolerable_quantity will be > 0 only for correction
12955: * against a receive transcation.

Line 12961: IF (g_asn_debug = 'Y') THEN

12957: IF ( (SIGN(temp_cascaded_table(current_n).quantity) = 1)
12958: AND (x_tolerable_qty > 0)) THEN --{
12959: x_converted_parent_trx_qty := x_tolerable_qty;
12960:
12961: IF (g_asn_debug = 'Y') THEN
12962: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_parent_trx_qty));
12963: END IF;
12964: END IF; --}
12965:

Line 12962: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_parent_trx_qty));

12958: AND (x_tolerable_qty > 0)) THEN --{
12959: x_converted_parent_trx_qty := x_tolerable_qty;
12960:
12961: IF (g_asn_debug = 'Y') THEN
12962: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_parent_trx_qty));
12963: END IF;
12964: END IF; --}
12965:
12966: IF (g_asn_debug = 'Y') THEN

Line 12966: IF (g_asn_debug = 'Y') THEN

12962: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_parent_trx_qty));
12963: END IF;
12964: END IF; --}
12965:
12966: IF (g_asn_debug = 'Y') THEN
12967: asn_debug.put_line('x_converted_parent_trx_qty : ' || TO_CHAR(x_converted_parent_trx_qty));
12968: END IF;
12969:
12970: IF (x_converted_parent_trx_qty > 0) THEN --{

Line 12967: asn_debug.put_line('x_converted_parent_trx_qty : ' || TO_CHAR(x_converted_parent_trx_qty));

12963: END IF;
12964: END IF; --}
12965:
12966: IF (g_asn_debug = 'Y') THEN
12967: asn_debug.put_line('x_converted_parent_trx_qty : ' || TO_CHAR(x_converted_parent_trx_qty));
12968: END IF;
12969:
12970: IF (x_converted_parent_trx_qty > 0) THEN --{
12971: /* Compare with abs(x_remaining_qty) here since we want

Line 12985: IF (g_asn_debug = 'Y') THEN

12981: */
12982: x_remaining_quantity := x_remaining_quantity - SIGN(temp_cascaded_table(current_n).quantity) * x_converted_parent_trx_qty;
12983: x_converted_parent_trx_qty := SIGN(temp_cascaded_table(current_n).quantity) * x_converted_parent_trx_qty;
12984:
12985: IF (g_asn_debug = 'Y') THEN
12986: asn_debug.put_line('remaning qty after allocation is : ' || TO_CHAR(x_remaining_quantity));
12987: END IF;
12988:
12989: insert_into_table := TRUE;

Line 12986: asn_debug.put_line('remaning qty after allocation is : ' || TO_CHAR(x_remaining_quantity));

12982: x_remaining_quantity := x_remaining_quantity - SIGN(temp_cascaded_table(current_n).quantity) * x_converted_parent_trx_qty;
12983: x_converted_parent_trx_qty := SIGN(temp_cascaded_table(current_n).quantity) * x_converted_parent_trx_qty;
12984:
12985: IF (g_asn_debug = 'Y') THEN
12986: asn_debug.put_line('remaning qty after allocation is : ' || TO_CHAR(x_remaining_quantity));
12987: END IF;
12988:
12989: insert_into_table := TRUE;
12990: ELSE --}{

Line 12991: IF (g_asn_debug = 'Y') THEN

12987: END IF;
12988:
12989: insert_into_table := TRUE;
12990: ELSE --}{
12991: IF (g_asn_debug = 'Y') THEN
12992: asn_debug.put_line('We are in >= Qty branch ');
12993: END IF;
12994:
12995: x_converted_parent_trx_qty := x_remaining_quantity;

Line 12992: asn_debug.put_line('We are in >= Qty branch ');

12988:
12989: insert_into_table := TRUE;
12990: ELSE --}{
12991: IF (g_asn_debug = 'Y') THEN
12992: asn_debug.put_line('We are in >= Qty branch ');
12993: END IF;
12994:
12995: x_converted_parent_trx_qty := x_remaining_quantity;
12996: insert_into_table := TRUE;

Line 13003: IF (g_asn_debug = 'Y') THEN

12999: ELSE /* x_converted_parent_trx_qty >0 */ --}{
13000:
13001: -- so that the row can be used based on qty tolerance
13002: -- checks
13003: IF (g_asn_debug = 'Y') THEN
13004: asn_debug.put_line('Quantity is less then 0 but last record');
13005: END IF;
13006:
13007: insert_into_table := TRUE;

Line 13004: asn_debug.put_line('Quantity is less then 0 but last record');

13000:
13001: -- so that the row can be used based on qty tolerance
13002: -- checks
13003: IF (g_asn_debug = 'Y') THEN
13004: asn_debug.put_line('Quantity is less then 0 but last record');
13005: END IF;
13006:
13007: insert_into_table := TRUE;
13008: x_converted_parent_trx_qty := 0;

Line 13013: IF (g_asn_debug = 'Y') THEN

13009: END IF; /*x_converted_parent_trx_qty >0 */ --}
13010: END IF; --} just added this
13011:
13012: /* Converted qty successfully and we have some quantity on which we can act */
13013: IF (g_asn_debug = 'Y') THEN
13014: asn_debug.put_line('Transaction qty in terms of the parents uom is ' || x_converted_parent_trx_qty);
13015: END IF;
13016:
13017: IF insert_into_table THEN --{

Line 13014: asn_debug.put_line('Transaction qty in terms of the parents uom is ' || x_converted_parent_trx_qty);

13010: END IF; --} just added this
13011:
13012: /* Converted qty successfully and we have some quantity on which we can act */
13013: IF (g_asn_debug = 'Y') THEN
13014: asn_debug.put_line('Transaction qty in terms of the parents uom is ' || x_converted_parent_trx_qty);
13015: END IF;
13016:
13017: IF insert_into_table THEN --{
13018: IF (x_first_trans) THEN --{

Line 13019: IF (g_asn_debug = 'Y') THEN

13015: END IF;
13016:
13017: IF insert_into_table THEN --{
13018: IF (x_first_trans) THEN --{
13019: IF (g_asn_debug = 'Y') THEN
13020: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
13021: END IF;
13022:
13023: x_first_trans := FALSE;

Line 13020: asn_debug.put_line('First Time ' || TO_CHAR(current_n));

13016:
13017: IF insert_into_table THEN --{
13018: IF (x_first_trans) THEN --{
13019: IF (g_asn_debug = 'Y') THEN
13020: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
13021: END IF;
13022:
13023: x_first_trans := FALSE;
13024: ELSE --}{

Line 13025: IF (g_asn_debug = 'Y') THEN

13021: END IF;
13022:
13023: x_first_trans := FALSE;
13024: ELSE --}{
13025: IF (g_asn_debug = 'Y') THEN
13026: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
13027: END IF;
13028:
13029: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);

Line 13026: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));

13022:
13023: x_first_trans := FALSE;
13024: ELSE --}{
13025: IF (g_asn_debug = 'Y') THEN
13026: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
13027: END IF;
13028:
13029: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);
13030: END IF; --}

Line 13049: IF (g_asn_debug = 'Y') THEN

13045: ELSE
13046: temp_cascaded_table(current_n).primary_quantity := x_converted_parent_trx_qty;
13047: END IF;
13048:
13049: IF (g_asn_debug = 'Y') THEN
13050: asn_debug.put_line('Transaction qty in terms of the primary uom is ' || temp_cascaded_table(current_n).primary_quantity);
13051: END IF;
13052:
13053: current_n := current_n + 1;

Line 13050: asn_debug.put_line('Transaction qty in terms of the primary uom is ' || temp_cascaded_table(current_n).primary_quantity);

13046: temp_cascaded_table(current_n).primary_quantity := x_converted_parent_trx_qty;
13047: END IF;
13048:
13049: IF (g_asn_debug = 'Y') THEN
13050: asn_debug.put_line('Transaction qty in terms of the primary uom is ' || temp_cascaded_table(current_n).primary_quantity);
13051: END IF;
13052:
13053: current_n := current_n + 1;
13054:

Line 13055: IF (g_asn_debug = 'Y') THEN

13051: END IF;
13052:
13053: current_n := current_n + 1;
13054:
13055: IF (g_asn_debug = 'Y') THEN
13056: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
13057: END IF;
13058: END IF; --}
13059: /* Get the available qty in PRIMARY UOM */

Line 13056: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));

13052:
13053: current_n := current_n + 1;
13054:
13055: IF (g_asn_debug = 'Y') THEN
13056: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
13057: END IF;
13058: END IF; --}
13059: /* Get the available qty in PRIMARY UOM */
13060: /*

Line 13070: IF (g_asn_debug = 'Y') THEN

13066: */
13067: END LOOP; --}
13068: ELSE --} {
13069: -- error_status and error_message are set after validate_quantity_shipped
13070: IF (g_asn_debug = 'Y') THEN
13071: asn_debug.put_line('No po_header_id/item_id ');
13072: END IF;
13073:
13074: IF (g_asn_debug = 'Y') THEN

Line 13071: asn_debug.put_line('No po_header_id/item_id ');

13067: END LOOP; --}
13068: ELSE --} {
13069: -- error_status and error_message are set after validate_quantity_shipped
13070: IF (g_asn_debug = 'Y') THEN
13071: asn_debug.put_line('No po_header_id/item_id ');
13072: END IF;
13073:
13074: IF (g_asn_debug = 'Y') THEN
13075: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

Line 13074: IF (g_asn_debug = 'Y') THEN

13070: IF (g_asn_debug = 'Y') THEN
13071: asn_debug.put_line('No po_header_id/item_id ');
13072: END IF;
13073:
13074: IF (g_asn_debug = 'Y') THEN
13075: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
13076: END IF;
13077:
13078: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{

Line 13075: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

13071: asn_debug.put_line('No po_header_id/item_id ');
13072: END IF;
13073:
13074: IF (g_asn_debug = 'Y') THEN
13075: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
13076: END IF;
13077:
13078: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{
13079: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 13091: IF (g_asn_debug = 'Y') THEN

13087:
13088: RETURN;
13089: END IF; -- } of (asn quantity_shipped was valid)
13090:
13091: IF (g_asn_debug = 'Y') THEN
13092: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);
13093: END IF;
13094:
13095: IF po_correct%ISOPEN THEN

Line 13092: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);

13088: RETURN;
13089: END IF; -- } of (asn quantity_shipped was valid)
13090:
13091: IF (g_asn_debug = 'Y') THEN
13092: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);
13093: END IF;
13094:
13095: IF po_correct%ISOPEN THEN
13096: CLOSE po_correct;

Line 13103: IF (g_asn_debug = 'Y') THEN

13099: IF po_correct_rti%ISOPEN THEN
13100: CLOSE po_correct_rti;
13101: END IF;
13102:
13103: IF (g_asn_debug = 'Y') THEN
13104: asn_debug.put_line('Exit explode_line_quantity');
13105: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
13106: END IF;
13107: EXCEPTION

Line 13104: asn_debug.put_line('Exit explode_line_quantity');

13100: CLOSE po_correct_rti;
13101: END IF;
13102:
13103: IF (g_asn_debug = 'Y') THEN
13104: asn_debug.put_line('Exit explode_line_quantity');
13105: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
13106: END IF;
13107: EXCEPTION
13108: WHEN OTHERS THEN

Line 13105: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);

13101: END IF;
13102:
13103: IF (g_asn_debug = 'Y') THEN
13104: asn_debug.put_line('Exit explode_line_quantity');
13105: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
13106: END IF;
13107: EXCEPTION
13108: WHEN OTHERS THEN
13109: IF (g_asn_debug = 'Y') THEN

Line 13109: IF (g_asn_debug = 'Y') THEN

13105: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
13106: END IF;
13107: EXCEPTION
13108: WHEN OTHERS THEN
13109: IF (g_asn_debug = 'Y') THEN
13110: asn_debug.put_line('Exception in derive_correction_line_quantity ');
13111: END IF;
13112:
13113: IF po_correct%ISOPEN THEN

Line 13110: asn_debug.put_line('Exception in derive_correction_line_quantity ');

13106: END IF;
13107: EXCEPTION
13108: WHEN OTHERS THEN
13109: IF (g_asn_debug = 'Y') THEN
13110: asn_debug.put_line('Exception in derive_correction_line_quantity ');
13111: END IF;
13112:
13113: IF po_correct%ISOPEN THEN
13114: CLOSE po_correct;

Line 13126: IF (g_asn_debug = 'Y') THEN

13122: rcv_error_pkg.set_sql_error_message('derive_correction_line_qty', x_progress);
13123: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
13124: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
13125:
13126: IF (g_asn_debug = 'Y') THEN
13127: asn_debug.put_line(TO_CHAR(n));
13128: asn_debug.put_line(SQLERRM);
13129: asn_debug.put_line('error ' || x_progress);
13130: END IF;

Line 13127: asn_debug.put_line(TO_CHAR(n));

13123: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
13124: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
13125:
13126: IF (g_asn_debug = 'Y') THEN
13127: asn_debug.put_line(TO_CHAR(n));
13128: asn_debug.put_line(SQLERRM);
13129: asn_debug.put_line('error ' || x_progress);
13130: END IF;
13131: END derive_correction_line_qty;

Line 13128: asn_debug.put_line(SQLERRM);

13124: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
13125:
13126: IF (g_asn_debug = 'Y') THEN
13127: asn_debug.put_line(TO_CHAR(n));
13128: asn_debug.put_line(SQLERRM);
13129: asn_debug.put_line('error ' || x_progress);
13130: END IF;
13131: END derive_correction_line_qty;
13132:

Line 13129: asn_debug.put_line('error ' || x_progress);

13125:
13126: IF (g_asn_debug = 'Y') THEN
13127: asn_debug.put_line(TO_CHAR(n));
13128: asn_debug.put_line(SQLERRM);
13129: asn_debug.put_line('error ' || x_progress);
13130: END IF;
13131: END derive_correction_line_qty;
13132:
13133: PROCEDURE derive_correction_line_amt(

Line 13291: IF (g_asn_debug = 'Y') THEN

13287: l_destination_type_code rcv_transactions.destination_type_code%TYPE;
13288: l_source_document_code rcv_transactions.source_document_code%TYPE;
13289: l_time_count NUMBER;
13290: BEGIN
13291: IF (g_asn_debug = 'Y') THEN
13292: asn_debug.put_line('enter derive_amount ' || x_cascaded_table(n).parent_transaction_id);
13293: END IF;
13294:
13295: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN --{

Line 13292: asn_debug.put_line('enter derive_amount ' || x_cascaded_table(n).parent_transaction_id);

13288: l_source_document_code rcv_transactions.source_document_code%TYPE;
13289: l_time_count NUMBER;
13290: BEGIN
13291: IF (g_asn_debug = 'Y') THEN
13292: asn_debug.put_line('enter derive_amount ' || x_cascaded_table(n).parent_transaction_id);
13293: END IF;
13294:
13295: IF (x_cascaded_table(n).parent_transaction_id IS NOT NULL) THEN --{
13296: already_derived := TRUE;

Line 13320: IF (g_asn_debug = 'Y') THEN

13316: END;
13317: END IF; --}
13318:
13319: IF already_derived THEN --{
13320: IF (g_asn_debug = 'Y') THEN
13321: asn_debug.put_line(' open po_correct table ' || x_cascaded_table(n).parent_transaction_id);
13322: END IF;
13323:
13324: OPEN po_correct(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);

Line 13321: asn_debug.put_line(' open po_correct table ' || x_cascaded_table(n).parent_transaction_id);

13317: END IF; --}
13318:
13319: IF already_derived THEN --{
13320: IF (g_asn_debug = 'Y') THEN
13321: asn_debug.put_line(' open po_correct table ' || x_cascaded_table(n).parent_transaction_id);
13322: END IF;
13323:
13324: OPEN po_correct(x_cascaded_table(n).parent_transaction_id, x_cascaded_table(n).to_organization_id);
13325: END IF; ---}

Line 13345: IF (g_asn_debug = 'Y') THEN

13341: * We will have x_cascaded_table(n).
13342: * parent_interface_txn_id) populated with teh
13343: * correct value.
13344: */
13345: IF (g_asn_debug = 'Y') THEN
13346: asn_debug.put_line(' open correct cursor from rti');
13347: END IF;
13348:
13349: OPEN po_correct_rti(x_cascaded_table(n).parent_interface_txn_id);

Line 13346: asn_debug.put_line(' open correct cursor from rti');

13342: * parent_interface_txn_id) populated with teh
13343: * correct value.
13344: */
13345: IF (g_asn_debug = 'Y') THEN
13346: asn_debug.put_line(' open correct cursor from rti');
13347: END IF;
13348:
13349: OPEN po_correct_rti(x_cascaded_table(n).parent_interface_txn_id);
13350: END IF;

Line 13357: IF (g_asn_debug = 'Y') THEN

13353: /******************************************************************/
13354: --check line amount > 0
13355: x_progress := '097';
13356:
13357: IF (g_asn_debug = 'Y') THEN
13358: asn_debug.put_line('X_progress ' || x_progress);
13359: END IF;
13360: /* Bug 6610047.
13361: * To allow corrections to timecards with zero amounts.

Line 13358: asn_debug.put_line('X_progress ' || x_progress);

13354: --check line amount > 0
13355: x_progress := '097';
13356:
13357: IF (g_asn_debug = 'Y') THEN
13358: asn_debug.put_line('X_progress ' || x_progress);
13359: END IF;
13360: /* Bug 6610047.
13361: * To allow corrections to timecards with zero amounts.
13362: * Commented the validation which checks for zero amount on the correction.

Line 13366: IF (g_asn_debug = 'Y') THEN

13362: * Commented the validation which checks for zero amount on the correction.
13363:
13364: /* IF x_cascaded_table(n).error_status IN('S', 'W')
13365: AND x_cascaded_table(n).amount = 0 THEN --{
13366: IF (g_asn_debug = 'Y') THEN
13367: asn_debug.put_line('Amount is <= zero. Cascade will fail');
13368: END IF;
13369:
13370: x_cascaded_table(n).error_status := 'F';

Line 13367: asn_debug.put_line('Amount is <= zero. Cascade will fail');

13363:
13364: /* IF x_cascaded_table(n).error_status IN('S', 'W')
13365: AND x_cascaded_table(n).amount = 0 THEN --{
13366: IF (g_asn_debug = 'Y') THEN
13367: asn_debug.put_line('Amount is <= zero. Cascade will fail');
13368: END IF;
13369:
13370: x_cascaded_table(n).error_status := 'F';
13371: rcv_error_pkg.set_error_message('RCV_ENTER_QTY_GT_ZERO', x_cascaded_table(n).error_message);

Line 13387: IF (g_asn_debug = 'Y') THEN

13383: such a way that the ROI validation does'nt error out when
13384: po_line_id is populated for one time items. */
13385: x_progress := '098';
13386:
13387: IF (g_asn_debug = 'Y') THEN
13388: asn_debug.put_line('X_progress ' || x_progress);
13389: END IF;
13390:
13391: IF ( ( x_cascaded_table(n).parent_transaction_id IS NOT NULL

Line 13388: asn_debug.put_line('X_progress ' || x_progress);

13384: po_line_id is populated for one time items. */
13385: x_progress := '098';
13386:
13387: IF (g_asn_debug = 'Y') THEN
13388: asn_debug.put_line('X_progress ' || x_progress);
13389: END IF;
13390:
13391: IF ( ( x_cascaded_table(n).parent_transaction_id IS NOT NULL
13392: OR x_cascaded_table(n).parent_interface_txn_id IS NOT NULL)

Line 13396: IF (g_asn_debug = 'Y') THEN

13392: OR x_cascaded_table(n).parent_interface_txn_id IS NOT NULL)
13393: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
13394:
13395: -- Copy record from main table to temp table
13396: IF (g_asn_debug = 'Y') THEN
13397: asn_debug.put_line('Copy record from main table to temp table');
13398: END IF;
13399:
13400: current_n := 1;

Line 13397: asn_debug.put_line('Copy record from main table to temp table');

13393: AND x_cascaded_table(n).error_status IN('S', 'W')) THEN --{
13394:
13395: -- Copy record from main table to temp table
13396: IF (g_asn_debug = 'Y') THEN
13397: asn_debug.put_line('Copy record from main table to temp table');
13398: END IF;
13399:
13400: current_n := 1;
13401: temp_cascaded_table(current_n) := x_cascaded_table(n);

Line 13404: IF (g_asn_debug = 'Y') THEN

13400: current_n := 1;
13401: temp_cascaded_table(current_n) := x_cascaded_table(n);
13402:
13403: -- Get all rows which meet this condition
13404: IF (g_asn_debug = 'Y') THEN
13405: asn_debug.put_line('Get all rows which meet this condition');
13406: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
13407: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
13408: END IF;

Line 13405: asn_debug.put_line('Get all rows which meet this condition');

13401: temp_cascaded_table(current_n) := x_cascaded_table(n);
13402:
13403: -- Get all rows which meet this condition
13404: IF (g_asn_debug = 'Y') THEN
13405: asn_debug.put_line('Get all rows which meet this condition');
13406: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
13407: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
13408: END IF;
13409:

Line 13406: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);

13402:
13403: -- Get all rows which meet this condition
13404: IF (g_asn_debug = 'Y') THEN
13405: asn_debug.put_line('Get all rows which meet this condition');
13406: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
13407: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
13408: END IF;
13409:
13410: -- Assign shipped amount to remaining amount

Line 13407: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);

13403: -- Get all rows which meet this condition
13404: IF (g_asn_debug = 'Y') THEN
13405: asn_debug.put_line('Get all rows which meet this condition');
13406: asn_debug.put_line('Transaction Type = ' || x_cascaded_table(n).transaction_type);
13407: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
13408: END IF;
13409:
13410: -- Assign shipped amount to remaining amount
13411: IF (g_asn_debug = 'Y') THEN

Line 13411: IF (g_asn_debug = 'Y') THEN

13407: asn_debug.put_line('Auto Transact Code = ' || x_cascaded_table(n).auto_transact_code);
13408: END IF;
13409:
13410: -- Assign shipped amount to remaining amount
13411: IF (g_asn_debug = 'Y') THEN
13412: asn_debug.put_line('Assign populated amount to remaining amount');
13413: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
13414: END IF;
13415:

Line 13412: asn_debug.put_line('Assign populated amount to remaining amount');

13408: END IF;
13409:
13410: -- Assign shipped amount to remaining amount
13411: IF (g_asn_debug = 'Y') THEN
13412: asn_debug.put_line('Assign populated amount to remaining amount');
13413: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
13414: END IF;
13415:
13416: x_remaining_amount := temp_cascaded_table(current_n).amount;

Line 13413: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));

13409:
13410: -- Assign shipped amount to remaining amount
13411: IF (g_asn_debug = 'Y') THEN
13412: asn_debug.put_line('Assign populated amount to remaining amount');
13413: asn_debug.put_line('Pointer in temp_cascade ' || TO_CHAR(current_n));
13414: END IF;
13415:
13416: x_remaining_amount := temp_cascaded_table(current_n).amount;
13417:

Line 13418: IF (g_asn_debug = 'Y') THEN

13414: END IF;
13415:
13416: x_remaining_amount := temp_cascaded_table(current_n).amount;
13417:
13418: IF (g_asn_debug = 'Y') THEN
13419: asn_debug.put_line('Have assigned the amount');
13420: END IF;
13421:
13422: -- Calculate tax_amount_factor for calculating tax_amount for

Line 13419: asn_debug.put_line('Have assigned the amount');

13415:
13416: x_remaining_amount := temp_cascaded_table(current_n).amount;
13417:
13418: IF (g_asn_debug = 'Y') THEN
13419: asn_debug.put_line('Have assigned the amount');
13420: END IF;
13421:
13422: -- Calculate tax_amount_factor for calculating tax_amount for
13423: -- each cascaded line

Line 13431: IF (g_asn_debug = 'Y') THEN

13427: ELSE
13428: tax_amount_factor := 0;
13429: END IF;
13430:
13431: IF (g_asn_debug = 'Y') THEN
13432: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
13433: asn_debug.put_line('transaction amount : ' || TO_CHAR(x_remaining_amount));
13434: END IF;
13435:

Line 13432: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));

13428: tax_amount_factor := 0;
13429: END IF;
13430:
13431: IF (g_asn_debug = 'Y') THEN
13432: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
13433: asn_debug.put_line('transaction amount : ' || TO_CHAR(x_remaining_amount));
13434: END IF;
13435:
13436: x_first_trans := TRUE;

Line 13433: asn_debug.put_line('transaction amount : ' || TO_CHAR(x_remaining_amount));

13429: END IF;
13430:
13431: IF (g_asn_debug = 'Y') THEN
13432: asn_debug.put_line('Tax Factor ' || TO_CHAR(tax_amount_factor));
13433: asn_debug.put_line('transaction amount : ' || TO_CHAR(x_remaining_amount));
13434: END IF;
13435:
13436: x_first_trans := TRUE;
13437: transaction_ok := FALSE;

Line 13439: IF (g_asn_debug = 'Y') THEN

13435:
13436: x_first_trans := TRUE;
13437: transaction_ok := FALSE;
13438:
13439: IF (g_asn_debug = 'Y') THEN
13440: asn_debug.put_line('Before starting Cascade');
13441: END IF;
13442:
13443: IF (g_asn_debug = 'Y') THEN

Line 13440: asn_debug.put_line('Before starting Cascade');

13436: x_first_trans := TRUE;
13437: transaction_ok := FALSE;
13438:
13439: IF (g_asn_debug = 'Y') THEN
13440: asn_debug.put_line('Before starting Cascade');
13441: END IF;
13442:
13443: IF (g_asn_debug = 'Y') THEN
13444: asn_debug.put_line('Record Count = ' || x_record_count);

Line 13443: IF (g_asn_debug = 'Y') THEN

13439: IF (g_asn_debug = 'Y') THEN
13440: asn_debug.put_line('Before starting Cascade');
13441: END IF;
13442:
13443: IF (g_asn_debug = 'Y') THEN
13444: asn_debug.put_line('Record Count = ' || x_record_count);
13445: END IF;
13446:
13447: LOOP --{

Line 13444: asn_debug.put_line('Record Count = ' || x_record_count);

13440: asn_debug.put_line('Before starting Cascade');
13441: END IF;
13442:
13443: IF (g_asn_debug = 'Y') THEN
13444: asn_debug.put_line('Record Count = ' || x_record_count);
13445: END IF;
13446:
13447: LOOP --{
13448: IF (g_asn_debug = 'Y') THEN

Line 13448: IF (g_asn_debug = 'Y') THEN

13444: asn_debug.put_line('Record Count = ' || x_record_count);
13445: END IF;
13446:
13447: LOOP --{
13448: IF (g_asn_debug = 'Y') THEN
13449: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_amount));
13450: END IF;
13451:
13452: /*

Line 13449: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_amount));

13445: END IF;
13446:
13447: LOOP --{
13448: IF (g_asn_debug = 'Y') THEN
13449: asn_debug.put_line('Remaining Quantity ' || TO_CHAR(x_remaining_amount));
13450: END IF;
13451:
13452: /*
13453: ** Fetch the appropriate record

Line 13455: IF (g_asn_debug = 'Y') THEN

13451:
13452: /*
13453: ** Fetch the appropriate record
13454: */
13455: IF (g_asn_debug = 'Y') THEN
13456: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
13457: END IF;
13458:
13459: IF (po_correct%ISOPEN) THEN --{

Line 13456: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);

13452: /*
13453: ** Fetch the appropriate record
13454: */
13455: IF (g_asn_debug = 'Y') THEN
13456: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
13457: END IF;
13458:
13459: IF (po_correct%ISOPEN) THEN --{
13460: IF (g_asn_debug = 'Y') THEN

Line 13460: IF (g_asn_debug = 'Y') THEN

13456: asn_debug.put_line('DEBUG: transaction_type = ' || x_cascaded_table(n).transaction_type);
13457: END IF;
13458:
13459: IF (po_correct%ISOPEN) THEN --{
13460: IF (g_asn_debug = 'Y') THEN
13461: asn_debug.put_line(' fetch po_correct');
13462: END IF;
13463:
13464: FETCH po_correct INTO x_po_correctrec;

Line 13461: asn_debug.put_line(' fetch po_correct');

13457: END IF;
13458:
13459: IF (po_correct%ISOPEN) THEN --{
13460: IF (g_asn_debug = 'Y') THEN
13461: asn_debug.put_line(' fetch po_correct');
13462: END IF;
13463:
13464: FETCH po_correct INTO x_po_correctrec;
13465:

Line 13472: IF (g_asn_debug = 'Y') THEN

13468: END IF;
13469:
13470: rows_fetched := po_correct%ROWCOUNT;
13471: ELSIF(po_correct_rti%ISOPEN) THEN --}{
13472: IF (g_asn_debug = 'Y') THEN
13473: asn_debug.put_line(' fetch po_correct_rti');
13474: END IF;
13475:
13476: FETCH po_correct_rti INTO x_po_correctrec;

Line 13473: asn_debug.put_line(' fetch po_correct_rti');

13469:
13470: rows_fetched := po_correct%ROWCOUNT;
13471: ELSIF(po_correct_rti%ISOPEN) THEN --}{
13472: IF (g_asn_debug = 'Y') THEN
13473: asn_debug.put_line(' fetch po_correct_rti');
13474: END IF;
13475:
13476: FETCH po_correct_rti INTO x_po_correctrec;
13477:

Line 13479: IF (g_asn_debug = 'Y') THEN

13475:
13476: FETCH po_correct_rti INTO x_po_correctrec;
13477:
13478: IF (po_correct_rti%NOTFOUND) THEN
13479: IF (g_asn_debug = 'Y') THEN
13480: asn_debug.put_line('correct last row');
13481: END IF;
13482:
13483: lastrecord := TRUE;

Line 13480: asn_debug.put_line('correct last row');

13476: FETCH po_correct_rti INTO x_po_correctrec;
13477:
13478: IF (po_correct_rti%NOTFOUND) THEN
13479: IF (g_asn_debug = 'Y') THEN
13480: asn_debug.put_line('correct last row');
13481: END IF;
13482:
13483: lastrecord := TRUE;
13484: END IF;

Line 13496: IF (g_asn_debug = 'Y') THEN

13492: * parent_interface_txn_id) populated with
13493: * with the correct value. Also we have cascaded_table_index
13494: * with the correct pl/sql table index number;
13495: */
13496: IF (g_asn_debug = 'Y') THEN
13497: asn_debug.put_line(' fetch pl/sql table');
13498: END IF;
13499:
13500: temp_index := temp_cascaded_table(current_n).derive_index;

Line 13497: asn_debug.put_line(' fetch pl/sql table');

13493: * with the correct value. Also we have cascaded_table_index
13494: * with the correct pl/sql table index number;
13495: */
13496: IF (g_asn_debug = 'Y') THEN
13497: asn_debug.put_line(' fetch pl/sql table');
13498: END IF;
13499:
13500: temp_index := temp_cascaded_table(current_n).derive_index;
13501: x_po_correctrec.po_line_location_id := x_cascaded_table(temp_index).po_line_location_id;

Line 13525: IF (g_asn_debug = 'Y') THEN

13521: rows_fetched := 1;
13522: lastrecord := TRUE;
13523: END IF; --}
13524:
13525: IF (g_asn_debug = 'Y') THEN
13526: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
13527: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
13528: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
13529: asn_debug.put_line('correct remainaing amount ' || x_remaining_amount);

Line 13526: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));

13522: lastrecord := TRUE;
13523: END IF; --}
13524:
13525: IF (g_asn_debug = 'Y') THEN
13526: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
13527: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
13528: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
13529: asn_debug.put_line('correct remainaing amount ' || x_remaining_amount);
13530: END IF;

Line 13527: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));

13523: END IF; --}
13524:
13525: IF (g_asn_debug = 'Y') THEN
13526: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
13527: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
13528: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
13529: asn_debug.put_line('correct remainaing amount ' || x_remaining_amount);
13530: END IF;
13531:

Line 13528: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));

13524:
13525: IF (g_asn_debug = 'Y') THEN
13526: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
13527: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
13528: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
13529: asn_debug.put_line('correct remainaing amount ' || x_remaining_amount);
13530: END IF;
13531:
13532: /* Support for RATE based from OTL */

Line 13529: asn_debug.put_line('correct remainaing amount ' || x_remaining_amount);

13525: IF (g_asn_debug = 'Y') THEN
13526: asn_debug.put_line('Correct Rows fetched ' || TO_CHAR(rows_fetched));
13527: asn_debug.put_line('po_line_id ' || TO_CHAR(x_po_correctrec.po_line_id));
13528: asn_debug.put_line('po_dist ' || TO_CHAR(x_po_correctrec.po_distribution_id));
13529: asn_debug.put_line('correct remainaing amount ' || x_remaining_amount);
13530: END IF;
13531:
13532: /* Support for RATE based from OTL */
13533: IF ( x_cascaded_table(n).value_basis = 'RATE'

Line 13535: IF (g_asn_debug = 'Y') THEN

13531:
13532: /* Support for RATE based from OTL */
13533: IF ( x_cascaded_table(n).value_basis = 'RATE'
13534: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR') THEN --{
13535: IF (g_asn_debug = 'Y') THEN
13536: asn_debug.put_line('Rate/Temp Labor');
13537: END IF;
13538:
13539: /* Bug 3648861.

Line 13536: asn_debug.put_line('Rate/Temp Labor');

13532: /* Support for RATE based from OTL */
13533: IF ( x_cascaded_table(n).value_basis = 'RATE'
13534: AND x_cascaded_table(n).purchase_basis = 'TEMP LABOR') THEN --{
13535: IF (g_asn_debug = 'Y') THEN
13536: asn_debug.put_line('Rate/Temp Labor');
13537: END IF;
13538:
13539: /* Bug 3648861.
13540: * The where condition has

Line 13561: IF (g_asn_debug = 'Y') THEN

13557: AND pol.po_line_id = x_cascaded_table(n).po_line_id
13558: AND pol.order_type_lookup_code = 'RATE'
13559: AND pol.purchase_basis = 'TEMP LABOR';
13560:
13561: IF (g_asn_debug = 'Y') THEN
13562: asn_debug.put_line('count ' || l_time_count);
13563: END IF;
13564:
13565: IF (l_time_count = 0) THEN --{

Line 13562: asn_debug.put_line('count ' || l_time_count);

13558: AND pol.order_type_lookup_code = 'RATE'
13559: AND pol.purchase_basis = 'TEMP LABOR';
13560:
13561: IF (g_asn_debug = 'Y') THEN
13562: asn_debug.put_line('count ' || l_time_count);
13563: END IF;
13564:
13565: IF (l_time_count = 0) THEN --{
13566: IF (g_asn_debug = 'Y') THEN

Line 13566: IF (g_asn_debug = 'Y') THEN

13562: asn_debug.put_line('count ' || l_time_count);
13563: END IF;
13564:
13565: IF (l_time_count = 0) THEN --{
13566: IF (g_asn_debug = 'Y') THEN
13567: asn_debug.put_line('We do not support RATE/TEMP LABOR through ROI unless it comes through OTL');
13568: END IF;
13569:
13570: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 13567: asn_debug.put_line('We do not support RATE/TEMP LABOR through ROI unless it comes through OTL');

13563: END IF;
13564:
13565: IF (l_time_count = 0) THEN --{
13566: IF (g_asn_debug = 'Y') THEN
13567: asn_debug.put_line('We do not support RATE/TEMP LABOR through ROI unless it comes through OTL');
13568: END IF;
13569:
13570: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
13571: rcv_error_pkg.set_error_message('RCV_NO_RATE_UNLESS_OTL', x_cascaded_table(n).error_message);

Line 13577: IF (g_asn_debug = 'Y') THEN

13573: END IF; --}
13574: END IF; --}
13575:
13576: IF (lastrecord) THEN --{
13577: IF (g_asn_debug = 'Y') THEN
13578: asn_debug.put_line('Hit exit condition');
13579: END IF;
13580:
13581: IF NOT x_first_trans THEN

Line 13578: asn_debug.put_line('Hit exit condition');

13574: END IF; --}
13575:
13576: IF (lastrecord) THEN --{
13577: IF (g_asn_debug = 'Y') THEN
13578: asn_debug.put_line('Hit exit condition');
13579: END IF;
13580:
13581: IF NOT x_first_trans THEN
13582: -- x_first_trans has been reset which means some cascade has

Line 13584: IF (g_asn_debug = 'Y') THEN

13580:
13581: IF NOT x_first_trans THEN
13582: -- x_first_trans has been reset which means some cascade has
13583: -- happened. Otherwise current_n = 1
13584: IF (g_asn_debug = 'Y') THEN
13585: asn_debug.put_line('current_n before is ' || current_n);
13586: END IF;
13587:
13588: current_n := current_n - 1;

Line 13585: asn_debug.put_line('current_n before is ' || current_n);

13581: IF NOT x_first_trans THEN
13582: -- x_first_trans has been reset which means some cascade has
13583: -- happened. Otherwise current_n = 1
13584: IF (g_asn_debug = 'Y') THEN
13585: asn_debug.put_line('current_n before is ' || current_n);
13586: END IF;
13587:
13588: current_n := current_n - 1;
13589: END IF;

Line 13592: IF (g_asn_debug = 'Y') THEN

13588: current_n := current_n - 1;
13589: END IF;
13590:
13591: -- do the tolerance act here
13592: IF (g_asn_debug = 'Y') THEN
13593: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
13594: asn_debug.put_line('Check which condition has occured');
13595: END IF;
13596:

Line 13593: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));

13589: END IF;
13590:
13591: -- do the tolerance act here
13592: IF (g_asn_debug = 'Y') THEN
13593: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
13594: asn_debug.put_line('Check which condition has occured');
13595: END IF;
13596:
13597: -- lastrecord...we have run out of rows and we still have quantity to allocate

Line 13594: asn_debug.put_line('Check which condition has occured');

13590:
13591: -- do the tolerance act here
13592: IF (g_asn_debug = 'Y') THEN
13593: asn_debug.put_line('Temp table pointer ' || TO_CHAR(current_n));
13594: asn_debug.put_line('Check which condition has occured');
13595: END IF;
13596:
13597: -- lastrecord...we have run out of rows and we still have quantity to allocate
13598: /* Do abs(x_remaining_quantity) since it can be a negative

Line 13602: IF (g_asn_debug = 'Y') THEN

13598: /* Do abs(x_remaining_quantity) since it can be a negative
13599: * or positive correction.
13600: */
13601: IF ABS(x_remaining_amount) > 0 THEN --{
13602: IF (g_asn_debug = 'Y') THEN
13603: asn_debug.put_line('There is amount remaining ');
13604: asn_debug.put_line('tolerable amount now in plsql table ' || temp_cascaded_table(current_n).amount);
13605: asn_debug.put_line('rows_fetched ' || rows_fetched);
13606: END IF;

Line 13603: asn_debug.put_line('There is amount remaining ');

13599: * or positive correction.
13600: */
13601: IF ABS(x_remaining_amount) > 0 THEN --{
13602: IF (g_asn_debug = 'Y') THEN
13603: asn_debug.put_line('There is amount remaining ');
13604: asn_debug.put_line('tolerable amount now in plsql table ' || temp_cascaded_table(current_n).amount);
13605: asn_debug.put_line('rows_fetched ' || rows_fetched);
13606: END IF;
13607:

Line 13604: asn_debug.put_line('tolerable amount now in plsql table ' || temp_cascaded_table(current_n).amount);

13600: */
13601: IF ABS(x_remaining_amount) > 0 THEN --{
13602: IF (g_asn_debug = 'Y') THEN
13603: asn_debug.put_line('There is amount remaining ');
13604: asn_debug.put_line('tolerable amount now in plsql table ' || temp_cascaded_table(current_n).amount);
13605: asn_debug.put_line('rows_fetched ' || rows_fetched);
13606: END IF;
13607:
13608: IF NOT x_first_trans THEN

Line 13605: asn_debug.put_line('rows_fetched ' || rows_fetched);

13601: IF ABS(x_remaining_amount) > 0 THEN --{
13602: IF (g_asn_debug = 'Y') THEN
13603: asn_debug.put_line('There is amount remaining ');
13604: asn_debug.put_line('tolerable amount now in plsql table ' || temp_cascaded_table(current_n).amount);
13605: asn_debug.put_line('rows_fetched ' || rows_fetched);
13606: END IF;
13607:
13608: IF NOT x_first_trans THEN
13609: IF (g_asn_debug = 'Y') THEN

Line 13609: IF (g_asn_debug = 'Y') THEN

13605: asn_debug.put_line('rows_fetched ' || rows_fetched);
13606: END IF;
13607:
13608: IF NOT x_first_trans THEN
13609: IF (g_asn_debug = 'Y') THEN
13610: asn_debug.put_line('not fisrt txn');
13611: END IF;
13612: END IF;
13613:

Line 13610: asn_debug.put_line('not fisrt txn');

13606: END IF;
13607:
13608: IF NOT x_first_trans THEN
13609: IF (g_asn_debug = 'Y') THEN
13610: asn_debug.put_line('not fisrt txn');
13611: END IF;
13612: END IF;
13613:
13614: IF rows_fetched > 0

Line 13616: IF (g_asn_debug = 'Y') THEN

13612: END IF;
13613:
13614: IF rows_fetched > 0
13615: AND NOT x_first_trans THEN --{
13616: IF (g_asn_debug = 'Y') THEN
13617: asn_debug.put_line(' inside transaction_type ' || x_po_correctrec.parent_transaction_type);
13618: END IF;
13619:
13620: IF (SIGN(x_cascaded_table(current_n).amount) = 1) THEN --{

Line 13617: asn_debug.put_line(' inside transaction_type ' || x_po_correctrec.parent_transaction_type);

13613:
13614: IF rows_fetched > 0
13615: AND NOT x_first_trans THEN --{
13616: IF (g_asn_debug = 'Y') THEN
13617: asn_debug.put_line(' inside transaction_type ' || x_po_correctrec.parent_transaction_type);
13618: END IF;
13619:
13620: IF (SIGN(x_cascaded_table(current_n).amount) = 1) THEN --{
13621: IF (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH')) THEN --{

Line 13622: IF (g_asn_debug = 'Y') THEN

13618: END IF;
13619:
13620: IF (SIGN(x_cascaded_table(current_n).amount) = 1) THEN --{
13621: IF (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH')) THEN --{
13622: IF (g_asn_debug = 'Y') THEN
13623: asn_debug.put_line('Need to check amount tolerances');
13624: END IF;
13625:
13626: SELECT NVL(po_line_locations.qty_rcv_exception_code, 'NONE')

Line 13623: asn_debug.put_line('Need to check amount tolerances');

13619:
13620: IF (SIGN(x_cascaded_table(current_n).amount) = 1) THEN --{
13621: IF (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH')) THEN --{
13622: IF (g_asn_debug = 'Y') THEN
13623: asn_debug.put_line('Need to check amount tolerances');
13624: END IF;
13625:
13626: SELECT NVL(po_line_locations.qty_rcv_exception_code, 'NONE')
13627: INTO x_qty_rcv_exception_code

Line 13631: IF (g_asn_debug = 'Y') THEN

13627: INTO x_qty_rcv_exception_code
13628: FROM po_line_locations
13629: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
13630:
13631: IF (g_asn_debug = 'Y') THEN
13632: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
13633: END IF;
13634:
13635: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{

Line 13632: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));

13628: FROM po_line_locations
13629: WHERE line_location_id = temp_cascaded_table(current_n).po_line_location_id;
13630:
13631: IF (g_asn_debug = 'Y') THEN
13632: asn_debug.put_line('Qty tolerance exception code ' || NVL(x_qty_rcv_exception_code, 'NONE1'));
13633: END IF;
13634:
13635: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
13636: /* Bug# 1807842 */

Line 13638: IF (g_asn_debug = 'Y') THEN

13634:
13635: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
13636: /* Bug# 1807842 */
13637: IF (temp_cascaded_table(current_n).amount <= x_converted_trx_amt) THEN --{
13638: IF (g_asn_debug = 'Y') THEN
13639: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_amt));
13640: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13641: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
13642: END IF;

Line 13639: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_amt));

13635: IF x_qty_rcv_exception_code IN('NONE', 'WARNING') THEN --{
13636: /* Bug# 1807842 */
13637: IF (temp_cascaded_table(current_n).amount <= x_converted_trx_amt) THEN --{
13638: IF (g_asn_debug = 'Y') THEN
13639: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_amt));
13640: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13641: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
13642: END IF;
13643:

Line 13640: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));

13636: /* Bug# 1807842 */
13637: IF (temp_cascaded_table(current_n).amount <= x_converted_trx_amt) THEN --{
13638: IF (g_asn_debug = 'Y') THEN
13639: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_amt));
13640: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13641: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
13642: END IF;
13643:
13644: temp_cascaded_table(current_n).amount := temp_cascaded_table(current_n).amount + x_remaining_amount;

Line 13641: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');

13637: IF (temp_cascaded_table(current_n).amount <= x_converted_trx_amt) THEN --{
13638: IF (g_asn_debug = 'Y') THEN
13639: asn_debug.put_line('Tolerable quantity ' || TO_CHAR(x_converted_trx_amt));
13640: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13641: asn_debug.put_line('Assign remaining amount ' || TO_CHAR(x_remaining_amount) || ' to last record');
13642: END IF;
13643:
13644: temp_cascaded_table(current_n).amount := temp_cascaded_table(current_n).amount + x_remaining_amount;
13645: END IF; /* Bug# 1807842 */ --}

Line 13649: IF (g_asn_debug = 'Y') THEN

13645: END IF; /* Bug# 1807842 */ --}
13646:
13647: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
13648:
13649: IF (g_asn_debug = 'Y') THEN
13650: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13651: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13652: END IF;
13653:

Line 13650: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));

13646:
13647: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
13648:
13649: IF (g_asn_debug = 'Y') THEN
13650: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13651: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13652: END IF;
13653:
13654: IF x_qty_rcv_exception_code = 'WARNING' THEN --{

Line 13651: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

13647: temp_cascaded_table(current_n).tax_amount := ROUND(temp_cascaded_table(current_n).amount * tax_amount_factor, 6);
13648:
13649: IF (g_asn_debug = 'Y') THEN
13650: asn_debug.put_line('Current amount ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13651: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13652: END IF;
13653:
13654: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
13655: IF (g_asn_debug = 'Y') THEN

Line 13655: IF (g_asn_debug = 'Y') THEN

13651: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13652: END IF;
13653:
13654: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
13655: IF (g_asn_debug = 'Y') THEN
13656: asn_debug.put_line('IN WARNING');
13657: END IF;
13658:
13659: temp_cascaded_table(current_n).error_status := 'W';

Line 13656: asn_debug.put_line('IN WARNING');

13652: END IF;
13653:
13654: IF x_qty_rcv_exception_code = 'WARNING' THEN --{
13655: IF (g_asn_debug = 'Y') THEN
13656: asn_debug.put_line('IN WARNING');
13657: END IF;
13658:
13659: temp_cascaded_table(current_n).error_status := 'W';
13660: temp_cascaded_table(current_n).error_message := 'RCV_ALL_AMT_OVER_TOLERANCE';

Line 13662: IF (g_asn_debug = 'Y') THEN

13658:
13659: temp_cascaded_table(current_n).error_status := 'W';
13660: temp_cascaded_table(current_n).error_message := 'RCV_ALL_AMT_OVER_TOLERANCE';
13661:
13662: IF (g_asn_debug = 'Y') THEN
13663: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
13664: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
13665: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
13666: END IF;

Line 13663: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));

13659: temp_cascaded_table(current_n).error_status := 'W';
13660: temp_cascaded_table(current_n).error_message := 'RCV_ALL_AMT_OVER_TOLERANCE';
13661:
13662: IF (g_asn_debug = 'Y') THEN
13663: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
13664: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
13665: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
13666: END IF;
13667:

Line 13664: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));

13660: temp_cascaded_table(current_n).error_message := 'RCV_ALL_AMT_OVER_TOLERANCE';
13661:
13662: IF (g_asn_debug = 'Y') THEN
13663: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
13664: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
13665: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
13666: END IF;
13667:
13668: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;

Line 13665: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));

13661:
13662: IF (g_asn_debug = 'Y') THEN
13663: asn_debug.put_line('Group Id ' || TO_CHAR(temp_cascaded_table(current_n).GROUP_ID));
13664: asn_debug.put_line('Header Interface Id ' || TO_CHAR(temp_cascaded_table(current_n).header_interface_id));
13665: asn_debug.put_line('IN Trans Id ' || TO_CHAR(temp_cascaded_table(current_n).interface_transaction_id));
13666: END IF;
13667:
13668: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_warning;
13669: rcv_error_pkg.set_error_message('RCV_ALL_AMT_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 13674: IF (g_asn_debug = 'Y') THEN

13670: rcv_error_pkg.set_token('AMT_A', temp_cascaded_table(current_n).amount);
13671: rcv_error_pkg.set_token('AMT_B', temp_cascaded_table(current_n).amount - x_remaining_amount);
13672: rcv_error_pkg.log_interface_warning('AMOUNT');
13673:
13674: IF (g_asn_debug = 'Y') THEN
13675: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
13676: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
13677: asn_debug.put_line('Need to insert into po_interface_errors');
13678: END IF;

Line 13675: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);

13671: rcv_error_pkg.set_token('AMT_B', temp_cascaded_table(current_n).amount - x_remaining_amount);
13672: rcv_error_pkg.log_interface_warning('AMOUNT');
13673:
13674: IF (g_asn_debug = 'Y') THEN
13675: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
13676: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
13677: asn_debug.put_line('Need to insert into po_interface_errors');
13678: END IF;
13679: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'

Line 13676: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);

13672: rcv_error_pkg.log_interface_warning('AMOUNT');
13673:
13674: IF (g_asn_debug = 'Y') THEN
13675: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
13676: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
13677: asn_debug.put_line('Need to insert into po_interface_errors');
13678: END IF;
13679: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
13680:

Line 13677: asn_debug.put_line('Need to insert into po_interface_errors');

13673:
13674: IF (g_asn_debug = 'Y') THEN
13675: asn_debug.put_line('Error Status ' || temp_cascaded_table(current_n).error_status);
13676: asn_debug.put_line('Error message ' || temp_cascaded_table(current_n).error_message);
13677: asn_debug.put_line('Need to insert into po_interface_errors');
13678: END IF;
13679: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
13680:
13681: IF (g_asn_debug = 'Y') THEN

Line 13681: IF (g_asn_debug = 'Y') THEN

13677: asn_debug.put_line('Need to insert into po_interface_errors');
13678: END IF;
13679: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
13680:
13681: IF (g_asn_debug = 'Y') THEN
13682: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13683: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13684: END IF;
13685: END IF; --}

Line 13682: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));

13678: END IF;
13679: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
13680:
13681: IF (g_asn_debug = 'Y') THEN
13682: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13683: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13684: END IF;
13685: END IF; --}
13686: END IF; --}

Line 13683: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));

13679: END IF; --} matches x_qty_rcv_exception_code = 'WARNING'
13680:
13681: IF (g_asn_debug = 'Y') THEN
13682: asn_debug.put_line('Current quantity ' || TO_CHAR(temp_cascaded_table(current_n).amount));
13683: asn_debug.put_line('Current Tax Amount ' || TO_CHAR(temp_cascaded_table(current_n).tax_amount));
13684: END IF;
13685: END IF; --}
13686: END IF; --}
13687:

Line 13691: IF (g_asn_debug = 'Y') THEN

13687:
13688: IF ( ( (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH'))
13689: AND x_qty_rcv_exception_code = 'REJECT')
13690: OR (x_po_correctrec.parent_transaction_type NOT IN('RECEIVE', 'MATCH'))) THEN --{
13691: IF (g_asn_debug = 'Y') THEN
13692: asn_debug.put_line('Extra amount ' || TO_CHAR(x_remaining_amount));
13693: END IF;
13694:
13695: IF (g_asn_debug = 'Y') THEN

Line 13692: asn_debug.put_line('Extra amount ' || TO_CHAR(x_remaining_amount));

13688: IF ( ( (x_po_correctrec.parent_transaction_type IN('RECEIVE', 'MATCH'))
13689: AND x_qty_rcv_exception_code = 'REJECT')
13690: OR (x_po_correctrec.parent_transaction_type NOT IN('RECEIVE', 'MATCH'))) THEN --{
13691: IF (g_asn_debug = 'Y') THEN
13692: asn_debug.put_line('Extra amount ' || TO_CHAR(x_remaining_amount));
13693: END IF;
13694:
13695: IF (g_asn_debug = 'Y') THEN
13696: asn_debug.put_line('delete the temp table ');

Line 13695: IF (g_asn_debug = 'Y') THEN

13691: IF (g_asn_debug = 'Y') THEN
13692: asn_debug.put_line('Extra amount ' || TO_CHAR(x_remaining_amount));
13693: END IF;
13694:
13695: IF (g_asn_debug = 'Y') THEN
13696: asn_debug.put_line('delete the temp table ');
13697: END IF;
13698:
13699: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 13696: asn_debug.put_line('delete the temp table ');

13692: asn_debug.put_line('Extra amount ' || TO_CHAR(x_remaining_amount));
13693: END IF;
13694:
13695: IF (g_asn_debug = 'Y') THEN
13696: asn_debug.put_line('delete the temp table ');
13697: END IF;
13698:
13699: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
13700: rcv_error_pkg.set_error_message('RCV_CORRECT_AMT_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 13706: IF (g_asn_debug = 'Y') THEN

13702: rcv_error_pkg.set_token('AMT_B', temp_cascaded_table(current_n).amount - x_remaining_amount);
13703: rcv_error_pkg.log_interface_error('AMOUNT', FALSE);
13704: temp_cascaded_table.DELETE;
13705:
13706: IF (g_asn_debug = 'Y') THEN
13707: asn_debug.put_line('mark the actual table with error status');
13708: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13710: END IF;

Line 13707: asn_debug.put_line('mark the actual table with error status');

13703: rcv_error_pkg.log_interface_error('AMOUNT', FALSE);
13704: temp_cascaded_table.DELETE;
13705:
13706: IF (g_asn_debug = 'Y') THEN
13707: asn_debug.put_line('mark the actual table with error status');
13708: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13710: END IF;
13711:

Line 13708: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

13704: temp_cascaded_table.DELETE;
13705:
13706: IF (g_asn_debug = 'Y') THEN
13707: asn_debug.put_line('mark the actual table with error status');
13708: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13710: END IF;
13711:
13712: IF (g_asn_debug = 'Y') THEN

Line 13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

13705:
13706: IF (g_asn_debug = 'Y') THEN
13707: asn_debug.put_line('mark the actual table with error status');
13708: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13710: END IF;
13711:
13712: IF (g_asn_debug = 'Y') THEN
13713: asn_debug.put_line('Need to insert a row into po_interface_errors');

Line 13712: IF (g_asn_debug = 'Y') THEN

13708: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13710: END IF;
13711:
13712: IF (g_asn_debug = 'Y') THEN
13713: asn_debug.put_line('Need to insert a row into po_interface_errors');
13714: END IF;
13715: END IF; --} matches if(none/warning) and elseif(reject)
13716: END IF; --}

Line 13713: asn_debug.put_line('Need to insert a row into po_interface_errors');

13709: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13710: END IF;
13711:
13712: IF (g_asn_debug = 'Y') THEN
13713: asn_debug.put_line('Need to insert a row into po_interface_errors');
13714: END IF;
13715: END IF; --} matches if(none/warning) and elseif(reject)
13716: END IF; --}
13717:

Line 13723: IF (g_asn_debug = 'Y') THEN

13719: /* for correct,accept an reject type we dont have the
13720: * tolerance check. Hence error out.
13721: * We cannot correct quantities more than that was received.
13722: */
13723: IF (g_asn_debug = 'Y') THEN
13724: asn_debug.put_line(' in correct extra amount ' || TO_CHAR(x_remaining_amount));
13725: asn_debug.put_line('delete the temp table ');
13726: END IF;
13727:

Line 13724: asn_debug.put_line(' in correct extra amount ' || TO_CHAR(x_remaining_amount));

13720: * tolerance check. Hence error out.
13721: * We cannot correct quantities more than that was received.
13722: */
13723: IF (g_asn_debug = 'Y') THEN
13724: asn_debug.put_line(' in correct extra amount ' || TO_CHAR(x_remaining_amount));
13725: asn_debug.put_line('delete the temp table ');
13726: END IF;
13727:
13728: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 13725: asn_debug.put_line('delete the temp table ');

13721: * We cannot correct quantities more than that was received.
13722: */
13723: IF (g_asn_debug = 'Y') THEN
13724: asn_debug.put_line(' in correct extra amount ' || TO_CHAR(x_remaining_amount));
13725: asn_debug.put_line('delete the temp table ');
13726: END IF;
13727:
13728: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;
13729: rcv_error_pkg.set_error_message('RCV_CORRECT_AMT_OVER_TOLERANCE', x_cascaded_table(n).error_message);

Line 13735: IF (g_asn_debug = 'Y') THEN

13731: rcv_error_pkg.set_token('AMT_B', temp_cascaded_table(current_n).amount - x_remaining_amount);
13732: rcv_error_pkg.log_interface_error('AMOUNT', FALSE);
13733: temp_cascaded_table.DELETE;
13734:
13735: IF (g_asn_debug = 'Y') THEN
13736: asn_debug.put_line('mark the actual table with error status');
13737: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13738: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13739: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');

Line 13736: asn_debug.put_line('mark the actual table with error status');

13732: rcv_error_pkg.log_interface_error('AMOUNT', FALSE);
13733: temp_cascaded_table.DELETE;
13734:
13735: IF (g_asn_debug = 'Y') THEN
13736: asn_debug.put_line('mark the actual table with error status');
13737: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13738: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13739: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');
13740: END IF;

Line 13737: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);

13733: temp_cascaded_table.DELETE;
13734:
13735: IF (g_asn_debug = 'Y') THEN
13736: asn_debug.put_line('mark the actual table with error status');
13737: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13738: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13739: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');
13740: END IF;
13741: END IF; --}

Line 13738: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);

13734:
13735: IF (g_asn_debug = 'Y') THEN
13736: asn_debug.put_line('mark the actual table with error status');
13737: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13738: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13739: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');
13740: END IF;
13741: END IF; --}
13742: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true

Line 13739: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');

13735: IF (g_asn_debug = 'Y') THEN
13736: asn_debug.put_line('mark the actual table with error status');
13737: asn_debug.put_line('Error Status ' || x_cascaded_table(n).error_status);
13738: asn_debug.put_line('Error message ' || x_cascaded_table(n).error_message);
13739: asn_debug.put_line('Need to insert a row into po_interface_errors for correct');
13740: END IF;
13741: END IF; --}
13742: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
13743: IF rows_fetched = 0 THEN

Line 13744: IF (g_asn_debug = 'Y') THEN

13740: END IF;
13741: END IF; --}
13742: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
13743: IF rows_fetched = 0 THEN
13744: IF (g_asn_debug = 'Y') THEN
13745: asn_debug.put_line('No rows were retrieved from cursor.');
13746: END IF;
13747: ELSIF x_first_trans THEN
13748: IF (g_asn_debug = 'Y') THEN

Line 13745: asn_debug.put_line('No rows were retrieved from cursor.');

13741: END IF; --}
13742: ELSE --}{ else for rows fetched = 0 OR x_first_trans = true
13743: IF rows_fetched = 0 THEN
13744: IF (g_asn_debug = 'Y') THEN
13745: asn_debug.put_line('No rows were retrieved from cursor.');
13746: END IF;
13747: ELSIF x_first_trans THEN
13748: IF (g_asn_debug = 'Y') THEN
13749: asn_debug.put_line('No rows were cascaded');

Line 13748: IF (g_asn_debug = 'Y') THEN

13744: IF (g_asn_debug = 'Y') THEN
13745: asn_debug.put_line('No rows were retrieved from cursor.');
13746: END IF;
13747: ELSIF x_first_trans THEN
13748: IF (g_asn_debug = 'Y') THEN
13749: asn_debug.put_line('No rows were cascaded');
13750: END IF;
13751: END IF;
13752:

Line 13749: asn_debug.put_line('No rows were cascaded');

13745: asn_debug.put_line('No rows were retrieved from cursor.');
13746: END IF;
13747: ELSIF x_first_trans THEN
13748: IF (g_asn_debug = 'Y') THEN
13749: asn_debug.put_line('No rows were cascaded');
13750: END IF;
13751: END IF;
13752:
13753: x_temp_count := 1;

Line 13859: IF (g_asn_debug = 'Y') THEN

13855:
13856: temp_cascaded_table.DELETE;
13857: END IF; --}
13858: ELSE -- }{
13859: IF (g_asn_debug = 'Y') THEN
13860: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));
13861: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
13862: END IF;
13863: END IF; --} ends the check for whether last record has been reached

Line 13860: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));

13856: temp_cascaded_table.DELETE;
13857: END IF; --}
13858: ELSE -- }{
13859: IF (g_asn_debug = 'Y') THEN
13860: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));
13861: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
13862: END IF;
13863: END IF; --} ends the check for whether last record has been reached
13864:

Line 13861: asn_debug.put_line('Return the cascaded rows back to the calling procedure');

13857: END IF; --}
13858: ELSE -- }{
13859: IF (g_asn_debug = 'Y') THEN
13860: asn_debug.put_line('Remaining amount is zero ' || TO_CHAR(x_remaining_amount));
13861: asn_debug.put_line('Return the cascaded rows back to the calling procedure');
13862: END IF;
13863: END IF; --} ends the check for whether last record has been reached
13864:
13865: -- close cursors

Line 13867: IF (g_asn_debug = 'Y') THEN

13863: END IF; --} ends the check for whether last record has been reached
13864:
13865: -- close cursors
13866:
13867: IF (g_asn_debug = 'Y') THEN
13868: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);
13869: END IF;
13870:
13871: IF po_correct%ISOPEN THEN

Line 13868: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);

13864:
13865: -- close cursors
13866:
13867: IF (g_asn_debug = 'Y') THEN
13868: asn_debug.put_line('Close cursors shipments, count_shipments, distributions, count_disributions ' || current_n);
13869: END IF;
13870:
13871: IF po_correct%ISOPEN THEN
13872: CLOSE po_correct;

Line 13879: IF (g_asn_debug = 'Y') THEN

13875: IF po_correct_rti%ISOPEN THEN
13876: CLOSE po_correct_rti;
13877: END IF;
13878:
13879: IF (g_asn_debug = 'Y') THEN
13880: asn_debug.put_line('before exit current_n is ' || current_n);
13881: END IF;
13882:
13883: EXIT;

Line 13880: asn_debug.put_line('before exit current_n is ' || current_n);

13876: CLOSE po_correct_rti;
13877: END IF;
13878:
13879: IF (g_asn_debug = 'Y') THEN
13880: asn_debug.put_line('before exit current_n is ' || current_n);
13881: END IF;
13882:
13883: EXIT;
13884: END IF; --} matches lastrecord or x_remaining_quantity <= 0

Line 13886: IF (g_asn_debug = 'Y') THEN

13882:
13883: EXIT;
13884: END IF; --} matches lastrecord or x_remaining_quantity <= 0
13885:
13886: IF (g_asn_debug = 'Y') THEN
13887: asn_debug.put_line(' Entering amount calculation for correct');
13888: END IF;
13889:
13890: /* If destination_type_code is inventory then we need to make

Line 13887: asn_debug.put_line(' Entering amount calculation for correct');

13883: EXIT;
13884: END IF; --} matches lastrecord or x_remaining_quantity <= 0
13885:
13886: IF (g_asn_debug = 'Y') THEN
13887: asn_debug.put_line(' Entering amount calculation for correct');
13888: END IF;
13889:
13890: /* If destination_type_code is inventory then we need to make
13891: * sure that we can correct this qty since it might have been

Line 13906: IF (g_asn_debug = 'Y') THEN

13902:
13903: insert_into_table := FALSE;
13904: already_allocated_amt := 0;
13905:
13906: IF (g_asn_debug = 'Y') THEN
13907: asn_debug.put_line('calling Correct get_available_amount ' || x_po_correctrec.parent_transaction_type);
13908: END IF;
13909:
13910: get_interface_available_amt(temp_cascaded_table,

Line 13907: asn_debug.put_line('calling Correct get_available_amount ' || x_po_correctrec.parent_transaction_type);

13903: insert_into_table := FALSE;
13904: already_allocated_amt := 0;
13905:
13906: IF (g_asn_debug = 'Y') THEN
13907: asn_debug.put_line('calling Correct get_available_amount ' || x_po_correctrec.parent_transaction_type);
13908: END IF;
13909:
13910: get_interface_available_amt(temp_cascaded_table,
13911: current_n,

Line 13915: IF (g_asn_debug = 'Y') THEN

13911: current_n,
13912: x_converted_parent_trx_amt
13913: );
13914:
13915: IF (g_asn_debug = 'Y') THEN
13916: asn_debug.put_line('correct interface_available_amt ' || x_converted_parent_trx_amt);
13917: END IF;
13918:
13919: /* x_converted_parent_trx_qty will be 0 when this is not a child

Line 13916: asn_debug.put_line('correct interface_available_amt ' || x_converted_parent_trx_amt);

13912: x_converted_parent_trx_amt
13913: );
13914:
13915: IF (g_asn_debug = 'Y') THEN
13916: asn_debug.put_line('correct interface_available_amt ' || x_converted_parent_trx_amt);
13917: END IF;
13918:
13919: /* x_converted_parent_trx_qty will be 0 when this is not a child
13920: * transaction to any rti row. Also for correct, grand parent

Line 13925: IF (g_asn_debug = 'Y') THEN

13921: * may already be processed and for positive correction we
13922: * might need to get the quantity from the grand parent.
13923: */
13924: IF (x_converted_parent_trx_amt = 0) THEN --{
13925: IF (g_asn_debug = 'Y') THEN
13926: asn_debug.put_line('interface amount is 0');
13927: END IF;
13928:
13929: IF (SIGN(temp_cascaded_table(current_n).amount) = -1) THEN --{

Line 13926: asn_debug.put_line('interface amount is 0');

13922: * might need to get the quantity from the grand parent.
13923: */
13924: IF (x_converted_parent_trx_amt = 0) THEN --{
13925: IF (g_asn_debug = 'Y') THEN
13926: asn_debug.put_line('interface amount is 0');
13927: END IF;
13928:
13929: IF (SIGN(temp_cascaded_table(current_n).amount) = -1) THEN --{
13930: asn_debug.put_line('Before call to get_available_amt for negative correction');

Line 13930: asn_debug.put_line('Before call to get_available_amt for negative correction');

13926: asn_debug.put_line('interface amount is 0');
13927: END IF;
13928:
13929: IF (SIGN(temp_cascaded_table(current_n).amount) = -1) THEN --{
13930: asn_debug.put_line('Before call to get_available_amt for negative correction');
13931: rcv_quantities_s.get_available_amount('CORRECT',
13932: x_po_correctrec.rcv_transaction_id,
13933: 'VENDOR',
13934: x_po_correctrec.parent_transaction_type,

Line 13943: asn_debug.put_line('Parent_trx not in receive and gp is ' || l_grand_parent_trx_id);

13939: );
13940: ELSE --}{
13941: IF (x_po_correctrec.parent_transaction_type NOT IN('RECEIVE', 'MATCH', 'UNORDERED')) THEN
13942: l_grand_parent_trx_id := x_po_correctrec.grand_parent_txn_id;
13943: asn_debug.put_line('Parent_trx not in receive and gp is ' || l_grand_parent_trx_id);
13944: ELSIF(x_po_correctrec.parent_transaction_type IN('MATCH', 'RECEIVE')) THEN
13945: IF (temp_cascaded_table(current_n).parent_transaction_id IS NOT NULL) THEN
13946: l_grand_parent_trx_id := x_po_correctrec.po_line_location_id;
13947: asn_debug.put_line('Parent_trx in receive and parent_trx_id not null gp is ' || l_grand_parent_trx_id);

Line 13947: asn_debug.put_line('Parent_trx in receive and parent_trx_id not null gp is ' || l_grand_parent_trx_id);

13943: asn_debug.put_line('Parent_trx not in receive and gp is ' || l_grand_parent_trx_id);
13944: ELSIF(x_po_correctrec.parent_transaction_type IN('MATCH', 'RECEIVE')) THEN
13945: IF (temp_cascaded_table(current_n).parent_transaction_id IS NOT NULL) THEN
13946: l_grand_parent_trx_id := x_po_correctrec.po_line_location_id;
13947: asn_debug.put_line('Parent_trx in receive and parent_trx_id not null gp is ' || l_grand_parent_trx_id);
13948: ELSIF(temp_cascaded_table(current_n).parent_interface_txn_id IS NOT NULL) THEN
13949: /* We would have the value derived in the x_cascaded_table
13950: * but not have inserted it back into rti.
13951: */

Line 13953: asn_debug.put_line('Parent_trx in receive and parent_inter_trx_id not null gp is ' || l_grand_parent_trx_id);

13949: /* We would have the value derived in the x_cascaded_table
13950: * but not have inserted it back into rti.
13951: */
13952: l_grand_parent_trx_id := temp_cascaded_table(current_n).po_line_location_id;
13953: asn_debug.put_line('Parent_trx in receive and parent_inter_trx_id not null gp is ' || l_grand_parent_trx_id);
13954: END IF;
13955: ELSIF(x_po_correctrec.parent_transaction_type = 'UNORDERED') THEN
13956: l_grand_parent_trx_id := x_po_correctrec.rcv_transaction_id;
13957: END IF;

Line 13960: asn_debug.put_line('gp before get_avail_amt for +ve corr' || l_grand_parent_trx_id);

13956: l_grand_parent_trx_id := x_po_correctrec.rcv_transaction_id;
13957: END IF;
13958:
13959: IF (l_grand_parent_trx_id IS NOT NULL) THEN
13960: asn_debug.put_line('gp before get_avail_amt for +ve corr' || l_grand_parent_trx_id);
13961: rcv_quantities_s.get_available_amount('CORRECT',
13962: x_po_correctrec.rcv_transaction_id,
13963: 'VENDOR',
13964: x_po_correctrec.parent_transaction_type,

Line 13974: IF (g_asn_debug = 'Y') THEN

13970: END IF;
13971: END IF; --}
13972: END IF; --} -- interface_available_qty is 0.
13973:
13974: IF (g_asn_debug = 'Y') THEN
13975: asn_debug.put_line('amount from GET_AVAILABLE_AMOUNT for correct is ' || x_converted_parent_trx_amt);
13976: END IF;
13977:
13978: IF (x_remaining_amount = 0) THEN

Line 13975: asn_debug.put_line('amount from GET_AVAILABLE_AMOUNT for correct is ' || x_converted_parent_trx_amt);

13971: END IF; --}
13972: END IF; --} -- interface_available_qty is 0.
13973:
13974: IF (g_asn_debug = 'Y') THEN
13975: asn_debug.put_line('amount from GET_AVAILABLE_AMOUNT for correct is ' || x_converted_parent_trx_amt);
13976: END IF;
13977:
13978: IF (x_remaining_amount = 0) THEN
13979: IF (g_asn_debug = 'Y') THEN

Line 13979: IF (g_asn_debug = 'Y') THEN

13975: asn_debug.put_line('amount from GET_AVAILABLE_AMOUNT for correct is ' || x_converted_parent_trx_amt);
13976: END IF;
13977:
13978: IF (x_remaining_amount = 0) THEN
13979: IF (g_asn_debug = 'Y') THEN
13980: asn_debug.put_line(' correct Need an error message in the interface tables');
13981: END IF;
13982: ELSE
13983: /* Converted successfully and have some quantity on which we can act */

Line 13980: asn_debug.put_line(' correct Need an error message in the interface tables');

13976: END IF;
13977:
13978: IF (x_remaining_amount = 0) THEN
13979: IF (g_asn_debug = 'Y') THEN
13980: asn_debug.put_line(' correct Need an error message in the interface tables');
13981: END IF;
13982: ELSE
13983: /* Converted successfully and have some quantity on which we can act */
13984: IF (g_asn_debug = 'Y') THEN

Line 13984: IF (g_asn_debug = 'Y') THEN

13980: asn_debug.put_line(' correct Need an error message in the interface tables');
13981: END IF;
13982: ELSE
13983: /* Converted successfully and have some quantity on which we can act */
13984: IF (g_asn_debug = 'Y') THEN
13985: asn_debug.put_line('Converted trx amt that is available ' || x_converted_parent_trx_amt);
13986: asn_debug.put_line('Remaining amt that is available ' || x_remaining_amount);
13987: END IF;
13988:

Line 13985: asn_debug.put_line('Converted trx amt that is available ' || x_converted_parent_trx_amt);

13981: END IF;
13982: ELSE
13983: /* Converted successfully and have some quantity on which we can act */
13984: IF (g_asn_debug = 'Y') THEN
13985: asn_debug.put_line('Converted trx amt that is available ' || x_converted_parent_trx_amt);
13986: asn_debug.put_line('Remaining amt that is available ' || x_remaining_amount);
13987: END IF;
13988:
13989: IF ( (rows_fetched = x_record_count)

Line 13986: asn_debug.put_line('Remaining amt that is available ' || x_remaining_amount);

13982: ELSE
13983: /* Converted successfully and have some quantity on which we can act */
13984: IF (g_asn_debug = 'Y') THEN
13985: asn_debug.put_line('Converted trx amt that is available ' || x_converted_parent_trx_amt);
13986: asn_debug.put_line('Remaining amt that is available ' || x_remaining_amount);
13987: END IF;
13988:
13989: IF ( (rows_fetched = x_record_count)
13990: AND (SIGN(temp_cascaded_table(current_n).amount) = 1)) THEN --{

Line 13993: IF (g_asn_debug = 'Y') THEN

13989: IF ( (rows_fetched = x_record_count)
13990: AND (SIGN(temp_cascaded_table(current_n).amount) = 1)) THEN --{
13991: x_converted_trx_amt := x_tolerable_amt;
13992:
13993: IF (g_asn_debug = 'Y') THEN
13994: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));
13995: END IF;
13996: END IF; --}
13997:

Line 13994: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));

13990: AND (SIGN(temp_cascaded_table(current_n).amount) = 1)) THEN --{
13991: x_converted_trx_amt := x_tolerable_amt;
13992:
13993: IF (g_asn_debug = 'Y') THEN
13994: asn_debug.put_line('Last Row : ' || TO_CHAR(x_converted_trx_amt));
13995: END IF;
13996: END IF; --}
13997:
13998: IF (x_converted_parent_trx_amt > 0) THEN --{

Line 14013: IF (g_asn_debug = 'Y') THEN

14009: */
14010: x_remaining_amount := x_remaining_amount - SIGN(temp_cascaded_table(current_n).amount) * x_converted_parent_trx_amt;
14011: x_converted_parent_trx_amt := SIGN(temp_cascaded_table(current_n).amount) * x_converted_parent_trx_amt;
14012:
14013: IF (g_asn_debug = 'Y') THEN
14014: asn_debug.put_line('remaning amt after allocation is : ' || TO_CHAR(x_remaining_amount));
14015: END IF;
14016:
14017: insert_into_table := TRUE;

Line 14014: asn_debug.put_line('remaning amt after allocation is : ' || TO_CHAR(x_remaining_amount));

14010: x_remaining_amount := x_remaining_amount - SIGN(temp_cascaded_table(current_n).amount) * x_converted_parent_trx_amt;
14011: x_converted_parent_trx_amt := SIGN(temp_cascaded_table(current_n).amount) * x_converted_parent_trx_amt;
14012:
14013: IF (g_asn_debug = 'Y') THEN
14014: asn_debug.put_line('remaning amt after allocation is : ' || TO_CHAR(x_remaining_amount));
14015: END IF;
14016:
14017: insert_into_table := TRUE;
14018: ELSE --}{

Line 14019: IF (g_asn_debug = 'Y') THEN

14015: END IF;
14016:
14017: insert_into_table := TRUE;
14018: ELSE --}{
14019: IF (g_asn_debug = 'Y') THEN
14020: asn_debug.put_line('We are in >= amount branch ');
14021: END IF;
14022:
14023: x_converted_parent_trx_amt := x_remaining_amount;

Line 14020: asn_debug.put_line('We are in >= amount branch ');

14016:
14017: insert_into_table := TRUE;
14018: ELSE --}{
14019: IF (g_asn_debug = 'Y') THEN
14020: asn_debug.put_line('We are in >= amount branch ');
14021: END IF;
14022:
14023: x_converted_parent_trx_amt := x_remaining_amount;
14024: insert_into_table := TRUE;

Line 14031: IF (g_asn_debug = 'Y') THEN

14027: ELSE /* x_converted_parent_trx_qty >0 */ --}{
14028:
14029: -- so that the row can be used based on qty tolerance
14030: -- checks
14031: IF (g_asn_debug = 'Y') THEN
14032: asn_debug.put_line('amount is less then 0 but last record');
14033: END IF;
14034:
14035: insert_into_table := TRUE;

Line 14032: asn_debug.put_line('amount is less then 0 but last record');

14028:
14029: -- so that the row can be used based on qty tolerance
14030: -- checks
14031: IF (g_asn_debug = 'Y') THEN
14032: asn_debug.put_line('amount is less then 0 but last record');
14033: END IF;
14034:
14035: insert_into_table := TRUE;
14036: x_converted_trx_amt := 0;

Line 14041: IF (g_asn_debug = 'Y') THEN

14037: END IF; /*x_converted_parent_trx_qty >0 */ --}
14038: END IF; --} just added this
14039:
14040: /* Converted amt successfully and we have some amount on which we can act */
14041: IF (g_asn_debug = 'Y') THEN
14042: asn_debug.put_line('Transaction amt is ' || x_converted_parent_trx_amt);
14043: END IF;
14044:
14045: IF insert_into_table THEN --{

Line 14042: asn_debug.put_line('Transaction amt is ' || x_converted_parent_trx_amt);

14038: END IF; --} just added this
14039:
14040: /* Converted amt successfully and we have some amount on which we can act */
14041: IF (g_asn_debug = 'Y') THEN
14042: asn_debug.put_line('Transaction amt is ' || x_converted_parent_trx_amt);
14043: END IF;
14044:
14045: IF insert_into_table THEN --{
14046: IF (x_first_trans) THEN --{

Line 14047: IF (g_asn_debug = 'Y') THEN

14043: END IF;
14044:
14045: IF insert_into_table THEN --{
14046: IF (x_first_trans) THEN --{
14047: IF (g_asn_debug = 'Y') THEN
14048: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
14049: END IF;
14050:
14051: x_first_trans := FALSE;

Line 14048: asn_debug.put_line('First Time ' || TO_CHAR(current_n));

14044:
14045: IF insert_into_table THEN --{
14046: IF (x_first_trans) THEN --{
14047: IF (g_asn_debug = 'Y') THEN
14048: asn_debug.put_line('First Time ' || TO_CHAR(current_n));
14049: END IF;
14050:
14051: x_first_trans := FALSE;
14052: ELSE --}{

Line 14053: IF (g_asn_debug = 'Y') THEN

14049: END IF;
14050:
14051: x_first_trans := FALSE;
14052: ELSE --}{
14053: IF (g_asn_debug = 'Y') THEN
14054: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
14055: END IF;
14056:
14057: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);

Line 14054: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));

14050:
14051: x_first_trans := FALSE;
14052: ELSE --}{
14053: IF (g_asn_debug = 'Y') THEN
14054: asn_debug.put_line('Next Time ' || TO_CHAR(current_n));
14055: END IF;
14056:
14057: temp_cascaded_table(current_n) := temp_cascaded_table(current_n - 1);
14058: END IF; --}

Line 14066: IF (g_asn_debug = 'Y') THEN

14062: temp_cascaded_table(current_n).po_line_location_id := x_po_correctrec.po_line_location_id;
14063: temp_cascaded_table(current_n).po_distribution_id := x_po_correctrec.po_distribution_id;
14064: temp_cascaded_table(current_n).amount := x_converted_parent_trx_amt;
14065:
14066: IF (g_asn_debug = 'Y') THEN
14067: asn_debug.put_line('Transaction amt ' || temp_cascaded_table(current_n).amount);
14068: END IF;
14069:
14070: current_n := current_n + 1;

Line 14067: asn_debug.put_line('Transaction amt ' || temp_cascaded_table(current_n).amount);

14063: temp_cascaded_table(current_n).po_distribution_id := x_po_correctrec.po_distribution_id;
14064: temp_cascaded_table(current_n).amount := x_converted_parent_trx_amt;
14065:
14066: IF (g_asn_debug = 'Y') THEN
14067: asn_debug.put_line('Transaction amt ' || temp_cascaded_table(current_n).amount);
14068: END IF;
14069:
14070: current_n := current_n + 1;
14071:

Line 14072: IF (g_asn_debug = 'Y') THEN

14068: END IF;
14069:
14070: current_n := current_n + 1;
14071:
14072: IF (g_asn_debug = 'Y') THEN
14073: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
14074: END IF;
14075: END IF; --}
14076: END LOOP; --}

Line 14073: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));

14069:
14070: current_n := current_n + 1;
14071:
14072: IF (g_asn_debug = 'Y') THEN
14073: asn_debug.put_line('Increment pointer by 1 ' || TO_CHAR(current_n));
14074: END IF;
14075: END IF; --}
14076: END LOOP; --}
14077: ELSE --} {

Line 14079: IF (g_asn_debug = 'Y') THEN

14075: END IF; --}
14076: END LOOP; --}
14077: ELSE --} {
14078: -- error_status and error_message are set after validate_quantity_shipped
14079: IF (g_asn_debug = 'Y') THEN
14080: asn_debug.put_line('No po_header_id/item_id ');
14081: END IF;
14082:
14083: IF (g_asn_debug = 'Y') THEN

Line 14080: asn_debug.put_line('No po_header_id/item_id ');

14076: END LOOP; --}
14077: ELSE --} {
14078: -- error_status and error_message are set after validate_quantity_shipped
14079: IF (g_asn_debug = 'Y') THEN
14080: asn_debug.put_line('No po_header_id/item_id ');
14081: END IF;
14082:
14083: IF (g_asn_debug = 'Y') THEN
14084: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

Line 14083: IF (g_asn_debug = 'Y') THEN

14079: IF (g_asn_debug = 'Y') THEN
14080: asn_debug.put_line('No po_header_id/item_id ');
14081: END IF;
14082:
14083: IF (g_asn_debug = 'Y') THEN
14084: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
14085: END IF;
14086:
14087: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{

Line 14084: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);

14080: asn_debug.put_line('No po_header_id/item_id ');
14081: END IF;
14082:
14083: IF (g_asn_debug = 'Y') THEN
14084: asn_debug.put_line('Status = ' || x_cascaded_table(n).error_status);
14085: END IF;
14086:
14087: IF x_cascaded_table(n).error_status IN('S', 'W', 'F') THEN --{
14088: x_cascaded_table(n).error_status := rcv_error_pkg.g_ret_sts_error;

Line 14100: IF (g_asn_debug = 'Y') THEN

14096:
14097: RETURN;
14098: END IF; -- } of (asn quantity_shipped was valid)
14099:
14100: IF (g_asn_debug = 'Y') THEN
14101: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);
14102: END IF;
14103:
14104: IF po_correct%ISOPEN THEN

Line 14101: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);

14097: RETURN;
14098: END IF; -- } of (asn quantity_shipped was valid)
14099:
14100: IF (g_asn_debug = 'Y') THEN
14101: asn_debug.put_line('before closing cursors current_n is ' || temp_cascaded_table.COUNT);
14102: END IF;
14103:
14104: IF po_correct%ISOPEN THEN
14105: CLOSE po_correct;

Line 14112: IF (g_asn_debug = 'Y') THEN

14108: IF po_correct_rti%ISOPEN THEN
14109: CLOSE po_correct_rti;
14110: END IF;
14111:
14112: IF (g_asn_debug = 'Y') THEN
14113: asn_debug.put_line('Exit derive_correction_line_amt');
14114: END IF;
14115: EXCEPTION
14116: WHEN OTHERS THEN

Line 14113: asn_debug.put_line('Exit derive_correction_line_amt');

14109: CLOSE po_correct_rti;
14110: END IF;
14111:
14112: IF (g_asn_debug = 'Y') THEN
14113: asn_debug.put_line('Exit derive_correction_line_amt');
14114: END IF;
14115: EXCEPTION
14116: WHEN OTHERS THEN
14117: IF (g_asn_debug = 'Y') THEN

Line 14117: IF (g_asn_debug = 'Y') THEN

14113: asn_debug.put_line('Exit derive_correction_line_amt');
14114: END IF;
14115: EXCEPTION
14116: WHEN OTHERS THEN
14117: IF (g_asn_debug = 'Y') THEN
14118: asn_debug.put_line('Exception in derive_correction_line_amt ');
14119: END IF;
14120:
14121: IF po_correct%ISOPEN THEN

Line 14118: asn_debug.put_line('Exception in derive_correction_line_amt ');

14114: END IF;
14115: EXCEPTION
14116: WHEN OTHERS THEN
14117: IF (g_asn_debug = 'Y') THEN
14118: asn_debug.put_line('Exception in derive_correction_line_amt ');
14119: END IF;
14120:
14121: IF po_correct%ISOPEN THEN
14122: CLOSE po_correct;

Line 14134: IF (g_asn_debug = 'Y') THEN

14130: rcv_error_pkg.set_sql_error_message('derive_correction_line_amt', x_progress);
14131: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
14132: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
14133:
14134: IF (g_asn_debug = 'Y') THEN
14135: asn_debug.put_line(TO_CHAR(n));
14136: asn_debug.put_line(SQLERRM);
14137: asn_debug.put_line('error ' || x_progress);
14138: END IF;

Line 14135: asn_debug.put_line(TO_CHAR(n));

14131: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
14132: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
14133:
14134: IF (g_asn_debug = 'Y') THEN
14135: asn_debug.put_line(TO_CHAR(n));
14136: asn_debug.put_line(SQLERRM);
14137: asn_debug.put_line('error ' || x_progress);
14138: END IF;
14139: END derive_correction_line_amt;

Line 14136: asn_debug.put_line(SQLERRM);

14132: rcv_error_pkg.log_interface_error('TRANSACTIONS_INTERFACE_ID', FALSE);
14133:
14134: IF (g_asn_debug = 'Y') THEN
14135: asn_debug.put_line(TO_CHAR(n));
14136: asn_debug.put_line(SQLERRM);
14137: asn_debug.put_line('error ' || x_progress);
14138: END IF;
14139: END derive_correction_line_amt;
14140:

Line 14137: asn_debug.put_line('error ' || x_progress);

14133:
14134: IF (g_asn_debug = 'Y') THEN
14135: asn_debug.put_line(TO_CHAR(n));
14136: asn_debug.put_line(SQLERRM);
14137: asn_debug.put_line('error ' || x_progress);
14138: END IF;
14139: END derive_correction_line_amt;
14140:
14141: PROCEDURE default_vendor_correct(

Line 14291: IF (g_asn_debug = 'Y') THEN

14287: x_cascaded_table(n).processing_status_code := p_trx_record.processing_status_code;
14288: x_cascaded_table(n).transaction_status_code := p_trx_record.transaction_status_code;
14289: x_cascaded_table(n).auto_transact_code := p_trx_record.auto_transact_code;
14290:
14291: IF (g_asn_debug = 'Y') THEN
14292: asn_debug.put_line('Enter Default for Correct transaction');
14293: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
14294: END IF;
14295:

Line 14292: asn_debug.put_line('Enter Default for Correct transaction');

14288: x_cascaded_table(n).transaction_status_code := p_trx_record.transaction_status_code;
14289: x_cascaded_table(n).auto_transact_code := p_trx_record.auto_transact_code;
14290:
14291: IF (g_asn_debug = 'Y') THEN
14292: asn_debug.put_line('Enter Default for Correct transaction');
14293: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
14294: END IF;
14295:
14296: IF x_cascaded_table(n).source_document_code IS NULL THEN

Line 14293: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);

14289: x_cascaded_table(n).auto_transact_code := p_trx_record.auto_transact_code;
14290:
14291: IF (g_asn_debug = 'Y') THEN
14292: asn_debug.put_line('Enter Default for Correct transaction');
14293: asn_debug.put_line('quantity ' || x_cascaded_table(n).quantity);
14294: END IF;
14295:
14296: IF x_cascaded_table(n).source_document_code IS NULL THEN
14297: IF x_cascaded_table(n).receipt_source_code = 'CUSTOMER' THEN

Line 14303: IF (g_asn_debug = 'Y') THEN

14299: ELSE
14300: x_cascaded_table(n).source_document_code := 'PO';
14301: END IF;
14302:
14303: IF (g_asn_debug = 'Y') THEN
14304: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);
14305: END IF;
14306: END IF;
14307:

Line 14304: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);

14300: x_cascaded_table(n).source_document_code := 'PO';
14301: END IF;
14302:
14303: IF (g_asn_debug = 'Y') THEN
14304: asn_debug.put_line('Defaulting SOURCE_DOCUMENT_CODE ' || x_cascaded_table(n).source_document_code);
14305: END IF;
14306: END IF;
14307:
14308: IF (x_cascaded_table(n).derive = 'Y') THEN --{

Line 14344: IF (g_asn_debug = 'Y') THEN

14340: * populating these columns. So this case of giving a warning
14341: * will not arise as it will be defaulted by them
14342: */
14343: ELSE --} {
14344: IF (g_asn_debug = 'Y') THEN
14345: asn_debug.put_line('open cursor Default RTI');
14346: END IF;
14347:
14348: OPEN po_correct_rti(x_cascaded_table(n).parent_interface_txn_id);

Line 14345: asn_debug.put_line('open cursor Default RTI');

14341: * will not arise as it will be defaulted by them
14342: */
14343: ELSE --} {
14344: IF (g_asn_debug = 'Y') THEN
14345: asn_debug.put_line('open cursor Default RTI');
14346: END IF;
14347:
14348: OPEN po_correct_rti(x_cascaded_table(n).parent_interface_txn_id);
14349: END IF; --}

Line 14355: IF (g_asn_debug = 'Y') THEN

14351: OPEN po_correct(x_cascaded_table(n).parent_transaction_id);
14352: END IF; --}
14353:
14354: IF (po_correct%ISOPEN) THEN
14355: IF (g_asn_debug = 'Y') THEN
14356: asn_debug.put_line('fetch cursor Default ' || x_cascaded_table(n).parent_transaction_id);
14357: END IF;
14358:
14359: FETCH po_correct INTO default_po_correct_info;

Line 14356: asn_debug.put_line('fetch cursor Default ' || x_cascaded_table(n).parent_transaction_id);

14352: END IF; --}
14353:
14354: IF (po_correct%ISOPEN) THEN
14355: IF (g_asn_debug = 'Y') THEN
14356: asn_debug.put_line('fetch cursor Default ' || x_cascaded_table(n).parent_transaction_id);
14357: END IF;
14358:
14359: FETCH po_correct INTO default_po_correct_info;
14360: ELSIF(po_correct_rti%ISOPEN) THEN

Line 14368: IF (g_asn_debug = 'Y') THEN --{

14364: IF ( ( po_correct%ISOPEN
14365: AND po_correct%FOUND)
14366: OR ( po_correct_rti%ISOPEN
14367: AND po_correct_rti%FOUND)) THEN --{
14368: IF (g_asn_debug = 'Y') THEN --{
14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);
14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);

Line 14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);

14365: AND po_correct%FOUND)
14366: OR ( po_correct_rti%ISOPEN
14367: AND po_correct_rti%FOUND)) THEN --{
14368: IF (g_asn_debug = 'Y') THEN --{
14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);
14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);

Line 14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);

14366: OR ( po_correct_rti%ISOPEN
14367: AND po_correct_rti%FOUND)) THEN --{
14368: IF (g_asn_debug = 'Y') THEN --{
14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);
14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);

Line 14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);

14367: AND po_correct_rti%FOUND)) THEN --{
14368: IF (g_asn_debug = 'Y') THEN --{
14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);
14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);

Line 14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);

14368: IF (g_asn_debug = 'Y') THEN --{
14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);
14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);

Line 14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);

14369: asn_debug.put_line('Defaulting Correct po_revision_num' || default_po_correct_info.po_revision_num);
14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);

Line 14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);

14370: asn_debug.put_line('Defaulting Correct item_description' || default_po_correct_info.item_description);
14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);

Line 14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);

14371: asn_debug.put_line('Defaulting Correct po_release_id' || default_po_correct_info.po_release_id);
14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);

Line 14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);

14372: asn_debug.put_line('Defaulting Correct location_id' || default_po_correct_info.loc_id);
14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);

Line 14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);

14373: asn_debug.put_line('Defaulting Correct organization_id' || default_po_correct_info.organization_id);
14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);

Line 14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);

14374: asn_debug.put_line('Defaulting Correct routing_header_id' || default_po_correct_info.routing_header_id);
14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);

Line 14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);

14375: asn_debug.put_line('Defaulting Correct currency_code' || default_po_correct_info.currency_code);
14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);

Line 14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);

14376: asn_debug.put_line('Defaulting Correct currency_conversion_rate' || default_po_correct_info.currency_conversion_rate);
14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);

Line 14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);

14377: asn_debug.put_line('Defaulting Correct currency_conversion_type' || default_po_correct_info.currency_conversion_type);
14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);

Line 14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);

14378: asn_debug.put_line('Defaulting Correct currency_conversion_date' || default_po_correct_info.currency_conversion_date);
14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);

Line 14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);

14379: asn_debug.put_line('Defaulting Correct shipment_header_id' || default_po_correct_info.shipment_header_id);
14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);

Line 14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);

14380: asn_debug.put_line('Defaulting Correct shipment_line_id' || default_po_correct_info.shipment_line_id);
14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);

Line 14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);

14381: asn_debug.put_line('Defaulting Correct category_id' || default_po_correct_info.category_id);
14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);
14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);

Line 14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);

14382: asn_debug.put_line('Defaulting Correct vendor_id' || default_po_correct_info.vendor_id);
14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);
14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);
14390: asn_debug.put_line('Defaulting Correct job_id' || default_po_correct_info.job_id);

Line 14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);

14383: asn_debug.put_line('Defaulting Correct vendor_site_id' || default_po_correct_info.vendor_site_id);
14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);
14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);
14390: asn_debug.put_line('Defaulting Correct job_id' || default_po_correct_info.job_id);
14391: END IF; --}

Line 14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);

14384: asn_debug.put_line('Defaulting Correct po_unit_price' || default_po_correct_info.po_unit_price);
14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);
14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);
14390: asn_debug.put_line('Defaulting Correct job_id' || default_po_correct_info.job_id);
14391: END IF; --}
14392:

Line 14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);

14385: asn_debug.put_line('Defaulting Correct DELIVER_TO_PERSON_ID' || default_po_correct_info.deliver_to_person_id);
14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);
14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);
14390: asn_debug.put_line('Defaulting Correct job_id' || default_po_correct_info.job_id);
14391: END IF; --}
14392:
14393: IF x_cascaded_table(n).oe_order_header_id IS NULL

Line 14390: asn_debug.put_line('Defaulting Correct job_id' || default_po_correct_info.job_id);

14386: asn_debug.put_line('Defaulting Correct DELIVER_TO_LOCATION_ID' || default_po_correct_info.deliver_to_location_id);
14387: asn_debug.put_line('Defaulting Correct SUBINVENTORY' || default_po_correct_info.subinventory);
14388: asn_debug.put_line('Defaulting Correct CUSTOMER_ID' || default_po_correct_info.customer_id);
14389: asn_debug.put_line('Defaulting Correct CUSTOMER_SITE_ID' || default_po_correct_info.customer_site_id);
14390: asn_debug.put_line('Defaulting Correct job_id' || default_po_correct_info.job_id);
14391: END IF; --}
14392:
14393: IF x_cascaded_table(n).oe_order_header_id IS NULL
14394: AND x_cascaded_table(n).source_document_code = 'RMA' THEN

Line 14397: IF (g_asn_debug = 'Y') THEN

14393: IF x_cascaded_table(n).oe_order_header_id IS NULL
14394: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
14395: x_cascaded_table(n).oe_order_header_id := default_po_correct_info.oe_order_header_id;
14396:
14397: IF (g_asn_debug = 'Y') THEN
14398: asn_debug.put_line('Defaulting Transfer oe_order_header_id ' || x_cascaded_table(n).oe_order_header_id);
14399: END IF;
14400: END IF;
14401:

Line 14398: asn_debug.put_line('Defaulting Transfer oe_order_header_id ' || x_cascaded_table(n).oe_order_header_id);

14394: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
14395: x_cascaded_table(n).oe_order_header_id := default_po_correct_info.oe_order_header_id;
14396:
14397: IF (g_asn_debug = 'Y') THEN
14398: asn_debug.put_line('Defaulting Transfer oe_order_header_id ' || x_cascaded_table(n).oe_order_header_id);
14399: END IF;
14400: END IF;
14401:
14402: IF x_cascaded_table(n).oe_order_line_id IS NULL

Line 14406: IF (g_asn_debug = 'Y') THEN

14402: IF x_cascaded_table(n).oe_order_line_id IS NULL
14403: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
14404: x_cascaded_table(n).oe_order_line_id := default_po_correct_info.oe_order_line_id;
14405:
14406: IF (g_asn_debug = 'Y') THEN
14407: asn_debug.put_line('Defaulting Transfer oe_order_line_id ' || x_cascaded_table(n).oe_order_line_id);
14408: END IF;
14409: END IF;
14410:

Line 14407: asn_debug.put_line('Defaulting Transfer oe_order_line_id ' || x_cascaded_table(n).oe_order_line_id);

14403: AND x_cascaded_table(n).source_document_code = 'RMA' THEN
14404: x_cascaded_table(n).oe_order_line_id := default_po_correct_info.oe_order_line_id;
14405:
14406: IF (g_asn_debug = 'Y') THEN
14407: asn_debug.put_line('Defaulting Transfer oe_order_line_id ' || x_cascaded_table(n).oe_order_line_id);
14408: END IF;
14409: END IF;
14410:
14411: x_cascaded_table(n).po_revision_num := default_po_correct_info.po_revision_num;

Line 14450: IF (g_asn_debug = 'Y') THEN

14446: WHERE pll.line_location_id = x_cascaded_table(n).po_line_location_id
14447: AND pl.po_line_id = x_cascaded_table(n).po_line_id
14448: AND pl.po_line_id = pll.po_line_id;
14449:
14450: IF (g_asn_debug = 'Y') THEN
14451: asn_debug.put_line('Defaulting Correct po_unit_price' || x_cascaded_table(n).po_unit_price);
14452: END IF;
14453: END IF; --}
14454:

Line 14451: asn_debug.put_line('Defaulting Correct po_unit_price' || x_cascaded_table(n).po_unit_price);

14447: AND pl.po_line_id = x_cascaded_table(n).po_line_id
14448: AND pl.po_line_id = pll.po_line_id;
14449:
14450: IF (g_asn_debug = 'Y') THEN
14451: asn_debug.put_line('Defaulting Correct po_unit_price' || x_cascaded_table(n).po_unit_price);
14452: END IF;
14453: END IF; --}
14454:
14455: x_cascaded_table(n).location_id := default_po_correct_info.loc_id;

Line 14460: asn_debug.put_line(' defaulting lpn_id and transfer_lpn_id for int org cor');

14456: x_cascaded_table(n).deliver_to_person_id := default_po_correct_info.deliver_to_person_id;
14457: x_cascaded_table(n).deliver_to_location_id := default_po_correct_info.deliver_to_location_id;
14458: x_cascaded_table(n).subinventory := default_po_correct_info.subinventory;
14459: -- LPN defaulting
14460: asn_debug.put_line(' defaulting lpn_id and transfer_lpn_id for int org cor');
14461: /* Bug 3444284.
14462: * We dont need to default lpn_ids. WMS will take care of
14463: * populating these columns. So this case of giving a warning
14464: * will not arise as it will be defaulted by them

Line 14495: IF (g_asn_debug = 'Y') THEN

14491: END Comment: Bug: 4735484
14492: */
14493: END IF;
14494:
14495: IF (g_asn_debug = 'Y') THEN
14496: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
14497: asn_debug.put_line(' quantity ' || x_cascaded_table(n).quantity);
14498: END IF;
14499:

Line 14496: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));

14492: */
14493: END IF;
14494:
14495: IF (g_asn_debug = 'Y') THEN
14496: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
14497: asn_debug.put_line(' quantity ' || x_cascaded_table(n).quantity);
14498: END IF;
14499:
14500: IF (g_asn_debug = 'Y') THEN

Line 14497: asn_debug.put_line(' quantity ' || x_cascaded_table(n).quantity);

14493: END IF;
14494:
14495: IF (g_asn_debug = 'Y') THEN
14496: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
14497: asn_debug.put_line(' quantity ' || x_cascaded_table(n).quantity);
14498: END IF;
14499:
14500: IF (g_asn_debug = 'Y') THEN
14501: asn_debug.put_line('Exit default_vendor_correct');

Line 14500: IF (g_asn_debug = 'Y') THEN

14496: asn_debug.put_line('Set Location_id = ' || TO_CHAR(x_cascaded_table(n).location_id));
14497: asn_debug.put_line(' quantity ' || x_cascaded_table(n).quantity);
14498: END IF;
14499:
14500: IF (g_asn_debug = 'Y') THEN
14501: asn_debug.put_line('Exit default_vendor_correct');
14502: END IF;
14503:
14504: IF po_correct%ISOPEN THEN

Line 14501: asn_debug.put_line('Exit default_vendor_correct');

14497: asn_debug.put_line(' quantity ' || x_cascaded_table(n).quantity);
14498: END IF;
14499:
14500: IF (g_asn_debug = 'Y') THEN
14501: asn_debug.put_line('Exit default_vendor_correct');
14502: END IF;
14503:
14504: IF po_correct%ISOPEN THEN
14505: CLOSE po_correct;

Line 14542: IF (g_asn_debug = 'Y') THEN

14538:
14539: RETURN(correct_qty);
14540: EXCEPTION
14541: WHEN OTHERS THEN
14542: IF (g_asn_debug = 'Y') THEN
14543: asn_debug.put_line('Could not convert between UOMs');
14544: asn_debug.put_line('Will return 0');
14545: END IF;
14546:

Line 14543: asn_debug.put_line('Could not convert between UOMs');

14539: RETURN(correct_qty);
14540: EXCEPTION
14541: WHEN OTHERS THEN
14542: IF (g_asn_debug = 'Y') THEN
14543: asn_debug.put_line('Could not convert between UOMs');
14544: asn_debug.put_line('Will return 0');
14545: END IF;
14546:
14547: correct_qty := 0;

Line 14544: asn_debug.put_line('Will return 0');

14540: EXCEPTION
14541: WHEN OTHERS THEN
14542: IF (g_asn_debug = 'Y') THEN
14543: asn_debug.put_line('Could not convert between UOMs');
14544: asn_debug.put_line('Will return 0');
14545: END IF;
14546:
14547: correct_qty := 0;
14548: RETURN(correct_qty);

Line 14580: IF (g_asn_debug = 'Y') THEN

14576:
14577: po_lookup_code_record.error_record.error_status := 'S';
14578: po_lookup_code_record.error_record.error_message := NULL;
14579:
14580: IF (g_asn_debug = 'Y') THEN
14581: asn_debug.put_line('Validating Source Type Code');
14582: END IF;
14583:
14584: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);

Line 14581: asn_debug.put_line('Validating Source Type Code');

14577: po_lookup_code_record.error_record.error_status := 'S';
14578: po_lookup_code_record.error_record.error_message := NULL;
14579:
14580: IF (g_asn_debug = 'Y') THEN
14581: asn_debug.put_line('Validating Source Type Code');
14582: END IF;
14583:
14584: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);
14585: x_cascaded_table(n).error_status := po_lookup_code_record.error_record.error_status;

Line 14616: IF (g_asn_debug = 'Y') THEN

14612: po_lookup_code_record.lookup_type := 'RCV TRANSACTION TYPE';
14613: po_lookup_code_record.error_record.error_status := 'S';
14614: po_lookup_code_record.error_record.error_message := NULL;
14615:
14616: IF (g_asn_debug = 'Y') THEN
14617: asn_debug.put_line('Validating Destination Type Code');
14618: END IF;
14619:
14620: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);

Line 14617: asn_debug.put_line('Validating Destination Type Code');

14613: po_lookup_code_record.error_record.error_status := 'S';
14614: po_lookup_code_record.error_record.error_message := NULL;
14615:
14616: IF (g_asn_debug = 'Y') THEN
14617: asn_debug.put_line('Validating Destination Type Code');
14618: END IF;
14619:
14620: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);
14621: x_cascaded_table(n).error_status := po_lookup_code_record.error_record.error_status;

Line 14652: IF (g_asn_debug = 'Y') THEN

14648: po_lookup_code_record.lookup_type := 'INSPECTION STATUS';
14649: po_lookup_code_record.error_record.error_status := 'S';
14650: po_lookup_code_record.error_record.error_message := NULL;
14651:
14652: IF (g_asn_debug = 'Y') THEN
14653: asn_debug.put_line('Validating INSPECTION STATUS ');
14654: END IF;
14655:
14656: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);

Line 14653: asn_debug.put_line('Validating INSPECTION STATUS ');

14649: po_lookup_code_record.error_record.error_status := 'S';
14650: po_lookup_code_record.error_record.error_message := NULL;
14651:
14652: IF (g_asn_debug = 'Y') THEN
14653: asn_debug.put_line('Validating INSPECTION STATUS ');
14654: END IF;
14655:
14656: rcv_transactions_interface_sv1.validate_po_lookup_code(po_lookup_code_record);
14657: x_cascaded_table(n).error_status := po_lookup_code_record.error_record.error_status;

Line 14707: IF (g_asn_debug = 'Y') THEN

14703: /*
14704: IF ( gml_process_flags.opm_installed = 1
14705: AND x_cascaded_table(n).item_id IS NOT NULL
14706: AND gml_process_flags.check_process_orgn(p_organization_id => x_cascaded_table(n).to_organization_id) = 1 ) THEN
14707: IF (g_asn_debug = 'Y') THEN
14708: asn_debug.put_line('In validate opm attributes');
14709: END IF;
14710: */
14711:

Line 14708: asn_debug.put_line('In validate opm attributes');

14704: IF ( gml_process_flags.opm_installed = 1
14705: AND x_cascaded_table(n).item_id IS NOT NULL
14706: AND gml_process_flags.check_process_orgn(p_organization_id => x_cascaded_table(n).to_organization_id) = 1 ) THEN
14707: IF (g_asn_debug = 'Y') THEN
14708: asn_debug.put_line('In validate opm attributes');
14709: END IF;
14710: */
14711:
14712: IF (g_asn_debug = 'Y') THEN

Line 14712: IF (g_asn_debug = 'Y') THEN

14708: asn_debug.put_line('In validate opm attributes');
14709: END IF;
14710: */
14711:
14712: IF (g_asn_debug = 'Y') THEN
14713: asn_debug.put_line('In validate opm attributes');
14714: END IF;
14715:
14716:

Line 14713: asn_debug.put_line('In validate opm attributes');

14709: END IF;
14710: */
14711:
14712: IF (g_asn_debug = 'Y') THEN
14713: asn_debug.put_line('In validate opm attributes');
14714: END IF;
14715:
14716:
14717: -- if receiving full qty against an ASN/Internal Order , default the secondary qty from shipment line

Line 14738: IF (g_asn_debug = 'Y') THEN

14734: WHEN OTHERS THEN
14735: NULL;
14736: END;
14737:
14738: IF (g_asn_debug = 'Y') THEN
14739: asn_debug.put_line('quantity shipped = ' || l_quantity_shipped);
14740: asn_debug.put_line('secondary qty shipped = ' || l_secondary_quantity_shipped);
14741: END IF;
14742:

Line 14739: asn_debug.put_line('quantity shipped = ' || l_quantity_shipped);

14735: NULL;
14736: END;
14737:
14738: IF (g_asn_debug = 'Y') THEN
14739: asn_debug.put_line('quantity shipped = ' || l_quantity_shipped);
14740: asn_debug.put_line('secondary qty shipped = ' || l_secondary_quantity_shipped);
14741: END IF;
14742:
14743: IF l_quantity_shipped = x_cascaded_table(n).quantity THEN

Line 14740: asn_debug.put_line('secondary qty shipped = ' || l_secondary_quantity_shipped);

14736: END;
14737:
14738: IF (g_asn_debug = 'Y') THEN
14739: asn_debug.put_line('quantity shipped = ' || l_quantity_shipped);
14740: asn_debug.put_line('secondary qty shipped = ' || l_secondary_quantity_shipped);
14741: END IF;
14742:
14743: IF l_quantity_shipped = x_cascaded_table(n).quantity THEN
14744: x_cascaded_table(n).secondary_quantity := l_secondary_quantity_shipped;

Line 14764: IF (g_asn_debug = 'Y') THEN

14760: WHEN OTHERS THEN
14761: NULL;
14762: END;
14763:
14764: IF (g_asn_debug = 'Y') THEN
14765: asn_debug.put_line('po shipment qty = ' || l_quantity_shipped);
14766: asn_debug.put_line('po shipment secondary qty = ' || l_secondary_quantity_shipped);
14767: END IF;
14768:

Line 14765: asn_debug.put_line('po shipment qty = ' || l_quantity_shipped);

14761: NULL;
14762: END;
14763:
14764: IF (g_asn_debug = 'Y') THEN
14765: asn_debug.put_line('po shipment qty = ' || l_quantity_shipped);
14766: asn_debug.put_line('po shipment secondary qty = ' || l_secondary_quantity_shipped);
14767: END IF;
14768:
14769: IF l_quantity_shipped = x_cascaded_table(n).quantity THEN

Line 14766: asn_debug.put_line('po shipment secondary qty = ' || l_secondary_quantity_shipped);

14762: END;
14763:
14764: IF (g_asn_debug = 'Y') THEN
14765: asn_debug.put_line('po shipment qty = ' || l_quantity_shipped);
14766: asn_debug.put_line('po shipment secondary qty = ' || l_secondary_quantity_shipped);
14767: END IF;
14768:
14769: IF l_quantity_shipped = x_cascaded_table(n).quantity THEN
14770: x_cascaded_table(n).secondary_quantity := l_secondary_quantity_shipped;

Line 14801: IF (g_asn_debug = 'Y') THEN

14797: l_opm_record_type.GROUP_ID := x_cascaded_table(n).GROUP_ID;
14798: l_opm_record_type.primary_quantity := x_cascaded_table(n).primary_quantity;
14799: l_opm_record_type.from_locator_id := x_cascaded_table(n).from_locator_id;
14800:
14801: IF (g_asn_debug = 'Y') THEN
14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);
14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);
14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);
14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);

Line 14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);

14798: l_opm_record_type.primary_quantity := x_cascaded_table(n).primary_quantity;
14799: l_opm_record_type.from_locator_id := x_cascaded_table(n).from_locator_id;
14800:
14801: IF (g_asn_debug = 'Y') THEN
14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);
14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);
14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);
14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);
14806: asn_debug.put_line('Item Id = ' || l_opm_record_type.item_id);

Line 14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);

14799: l_opm_record_type.from_locator_id := x_cascaded_table(n).from_locator_id;
14800:
14801: IF (g_asn_debug = 'Y') THEN
14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);
14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);
14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);
14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);
14806: asn_debug.put_line('Item Id = ' || l_opm_record_type.item_id);
14807: END IF;

Line 14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);

14800:
14801: IF (g_asn_debug = 'Y') THEN
14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);
14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);
14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);
14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);
14806: asn_debug.put_line('Item Id = ' || l_opm_record_type.item_id);
14807: END IF;
14808:

Line 14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);

14801: IF (g_asn_debug = 'Y') THEN
14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);
14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);
14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);
14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);
14806: asn_debug.put_line('Item Id = ' || l_opm_record_type.item_id);
14807: END IF;
14808:
14809: l_opm_record_type.error_record.error_status := 'S';

Line 14806: asn_debug.put_line('Item Id = ' || l_opm_record_type.item_id);

14802: asn_debug.put_line('unit_of_measure = ' || l_opm_record_type.unit_of_measure);
14803: asn_debug.put_line('secondary unit_of_measure = ' || l_opm_record_type.secondary_unit_of_measure);
14804: asn_debug.put_line('Quantity = ' || l_opm_record_type.quantity);
14805: asn_debug.put_line('Secondary Quantity = ' || l_opm_record_type.secondary_quantity);
14806: asn_debug.put_line('Item Id = ' || l_opm_record_type.item_id);
14807: END IF;
14808:
14809: l_opm_record_type.error_record.error_status := 'S';
14810: l_opm_record_type.error_record.error_message := NULL;

Line 14826: IF (g_asn_debug = 'Y') THEN

14822: l_att_rec.error_record.error_status := 'S';
14823: l_att_rec.error_record.error_message := NULL;
14824:
14825:
14826: IF (g_asn_debug = 'Y') THEN
14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);

Line 14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');

14823: l_att_rec.error_record.error_message := NULL;
14824:
14825:
14826: IF (g_asn_debug = 'Y') THEN
14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);

Line 14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);

14824:
14825:
14826: IF (g_asn_debug = 'Y') THEN
14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);

Line 14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);

14825:
14826: IF (g_asn_debug = 'Y') THEN
14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);
14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);

Line 14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);

14826: IF (g_asn_debug = 'Y') THEN
14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);
14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);
14834: asn_debug.put_line('to organization id = ' || l_att_rec.to_organization_id);

Line 14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);

14827: asn_debug.put_line('printing the values before calling RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);
14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);
14834: asn_debug.put_line('to organization id = ' || l_att_rec.to_organization_id);
14835: END IF;

Line 14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);

14828: asn_debug.put_line('unit_of_measure = ' || l_att_rec.transaction_unit_of_measure);
14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);
14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);
14834: asn_debug.put_line('to organization id = ' || l_att_rec.to_organization_id);
14835: END IF;
14836:

Line 14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);

14829: asn_debug.put_line('secondary unit_of_measure = ' || l_att_rec.secondary_unit_of_measure);
14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);
14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);
14834: asn_debug.put_line('to organization id = ' || l_att_rec.to_organization_id);
14835: END IF;
14836:
14837: /*INVCONV ,validate_opm_parameters procedure is being called to validate the OPM

Line 14834: asn_debug.put_line('to organization id = ' || l_att_rec.to_organization_id);

14830: asn_debug.put_line('Quantity = ' || l_att_rec.transaction_quantity);
14831: asn_debug.put_line('Secondary Quantity = ' || l_att_rec.secondary_quantity);
14832: asn_debug.put_line('Item Id = ' || l_att_rec.inventory_item_id);
14833: asn_debug.put_line('Secondary_uom_code = ' || l_att_rec.secondary_uom_code);
14834: asn_debug.put_line('to organization id = ' || l_att_rec.to_organization_id);
14835: END IF;
14836:
14837: /*INVCONV ,validate_opm_parameters procedure is being called to validate the OPM
14838: specific parameters.Now it shall be replaced with a new routine which shall

Line 14847: IF (g_asn_debug = 'Y') THEN

14843: gml_opm_roi_grp.validate_opm_parameters(l_opm_record_type);
14844: x_cascaded_table(n).error_status := l_opm_record_type.error_record.error_status;
14845: x_cascaded_table(n).error_message := l_opm_record_type.error_record.error_message;
14846:
14847: IF (g_asn_debug = 'Y') THEN
14848: asn_debug.put_line('OPM Error Status = ' || l_opm_record_type.error_record.error_status);
14849: asn_debug.put_line('OPM Error Msg = ' || l_opm_record_type.error_record.error_message);
14850: END IF;
14851: */

Line 14848: asn_debug.put_line('OPM Error Status = ' || l_opm_record_type.error_record.error_status);

14844: x_cascaded_table(n).error_status := l_opm_record_type.error_record.error_status;
14845: x_cascaded_table(n).error_message := l_opm_record_type.error_record.error_message;
14846:
14847: IF (g_asn_debug = 'Y') THEN
14848: asn_debug.put_line('OPM Error Status = ' || l_opm_record_type.error_record.error_status);
14849: asn_debug.put_line('OPM Error Msg = ' || l_opm_record_type.error_record.error_message);
14850: END IF;
14851: */
14852:

Line 14849: asn_debug.put_line('OPM Error Msg = ' || l_opm_record_type.error_record.error_message);

14845: x_cascaded_table(n).error_message := l_opm_record_type.error_record.error_message;
14846:
14847: IF (g_asn_debug = 'Y') THEN
14848: asn_debug.put_line('OPM Error Status = ' || l_opm_record_type.error_record.error_status);
14849: asn_debug.put_line('OPM Error Msg = ' || l_opm_record_type.error_record.error_message);
14850: END IF;
14851: */
14852:
14853: IF x_cascaded_table(n).item_id IS NOT NULL THEN

Line 14855: IF (g_asn_debug = 'Y') THEN

14851: */
14852:
14853: IF x_cascaded_table(n).item_id IS NOT NULL THEN
14854:
14855: IF (g_asn_debug = 'Y') THEN
14856: asn_debug.put_line('Before calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14857: END IF;
14858:
14859:

Line 14856: asn_debug.put_line('Before calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');

14852:
14853: IF x_cascaded_table(n).item_id IS NOT NULL THEN
14854:
14855: IF (g_asn_debug = 'Y') THEN
14856: asn_debug.put_line('Before calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14857: END IF;
14858:
14859:
14860: RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS (

Line 14887: IF (g_asn_debug = 'Y') THEN

14883: /* error handling , INVCONV*/
14884: x_cascaded_table(n).error_status := l_att_rec.error_record.error_status;
14885: x_cascaded_table(n).error_message := l_att_rec.error_record.error_message;
14886:
14887: IF (g_asn_debug = 'Y') THEN
14888: asn_debug.put_line('After calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14889: asn_debug.put_line('return status of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_status);
14890: asn_debug.put_line('return message of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_message);
14891: END IF;

Line 14888: asn_debug.put_line('After calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');

14884: x_cascaded_table(n).error_status := l_att_rec.error_record.error_status;
14885: x_cascaded_table(n).error_message := l_att_rec.error_record.error_message;
14886:
14887: IF (g_asn_debug = 'Y') THEN
14888: asn_debug.put_line('After calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14889: asn_debug.put_line('return status of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_status);
14890: asn_debug.put_line('return message of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_message);
14891: END IF;
14892:

Line 14889: asn_debug.put_line('return status of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_status);

14885: x_cascaded_table(n).error_message := l_att_rec.error_record.error_message;
14886:
14887: IF (g_asn_debug = 'Y') THEN
14888: asn_debug.put_line('After calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14889: asn_debug.put_line('return status of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_status);
14890: asn_debug.put_line('return message of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_message);
14891: END IF;
14892:
14893:

Line 14890: asn_debug.put_line('return message of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_message);

14886:
14887: IF (g_asn_debug = 'Y') THEN
14888: asn_debug.put_line('After calling new API RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14889: asn_debug.put_line('return status of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_status);
14890: asn_debug.put_line('return message of RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS = ' || x_cascaded_table(n).error_message);
14891: END IF;
14892:
14893:
14894: /*If call fails*/

Line 14896: IF (g_asn_debug = 'Y') THEN

14892:
14893:
14894: /*If call fails*/
14895: IF x_cascaded_table(n).error_status IN ('U' ,'E') THEN
14896: IF (g_asn_debug = 'Y') THEN
14897: asn_debug.put_line('RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS call failed');
14898: END IF;
14899:
14900: /*log error in po_interface_errors*/

Line 14897: asn_debug.put_line('RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS call failed');

14893:
14894: /*If call fails*/
14895: IF x_cascaded_table(n).error_status IN ('U' ,'E') THEN
14896: IF (g_asn_debug = 'Y') THEN
14897: asn_debug.put_line('RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS call failed');
14898: END IF;
14899:
14900: /*log error in po_interface_errors*/
14901: rcv_error_pkg.log_interface_message(

Line 14914: IF (g_asn_debug = 'Y') THEN

14910: x_cascaded_table(n).secondary_unit_of_measure := l_att_rec.secondary_unit_of_measure;
14911: x_cascaded_table(n).secondary_uom_code := l_att_rec.secondary_uom_code;
14912: x_cascaded_table(n).secondary_quantity := l_att_rec.secondary_quantity;
14913:
14914: IF (g_asn_debug = 'Y') THEN
14915: asn_debug.put_line('populating the return values from RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14916: asn_debug.put_line('secondary unit_of_measure = ' || x_cascaded_table(n).secondary_unit_of_measure);
14917: asn_debug.put_line('Secondary Quantity = ' ||x_cascaded_table(n).secondary_quantity );
14918: asn_debug.put_line('Secondary_uom_code = ' ||x_cascaded_table(n).secondary_uom_code);

Line 14915: asn_debug.put_line('populating the return values from RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');

14911: x_cascaded_table(n).secondary_uom_code := l_att_rec.secondary_uom_code;
14912: x_cascaded_table(n).secondary_quantity := l_att_rec.secondary_quantity;
14913:
14914: IF (g_asn_debug = 'Y') THEN
14915: asn_debug.put_line('populating the return values from RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14916: asn_debug.put_line('secondary unit_of_measure = ' || x_cascaded_table(n).secondary_unit_of_measure);
14917: asn_debug.put_line('Secondary Quantity = ' ||x_cascaded_table(n).secondary_quantity );
14918: asn_debug.put_line('Secondary_uom_code = ' ||x_cascaded_table(n).secondary_uom_code);
14919: END IF;

Line 14916: asn_debug.put_line('secondary unit_of_measure = ' || x_cascaded_table(n).secondary_unit_of_measure);

14912: x_cascaded_table(n).secondary_quantity := l_att_rec.secondary_quantity;
14913:
14914: IF (g_asn_debug = 'Y') THEN
14915: asn_debug.put_line('populating the return values from RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14916: asn_debug.put_line('secondary unit_of_measure = ' || x_cascaded_table(n).secondary_unit_of_measure);
14917: asn_debug.put_line('Secondary Quantity = ' ||x_cascaded_table(n).secondary_quantity );
14918: asn_debug.put_line('Secondary_uom_code = ' ||x_cascaded_table(n).secondary_uom_code);
14919: END IF;
14920:

Line 14917: asn_debug.put_line('Secondary Quantity = ' ||x_cascaded_table(n).secondary_quantity );

14913:
14914: IF (g_asn_debug = 'Y') THEN
14915: asn_debug.put_line('populating the return values from RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14916: asn_debug.put_line('secondary unit_of_measure = ' || x_cascaded_table(n).secondary_unit_of_measure);
14917: asn_debug.put_line('Secondary Quantity = ' ||x_cascaded_table(n).secondary_quantity );
14918: asn_debug.put_line('Secondary_uom_code = ' ||x_cascaded_table(n).secondary_uom_code);
14919: END IF;
14920:
14921:

Line 14918: asn_debug.put_line('Secondary_uom_code = ' ||x_cascaded_table(n).secondary_uom_code);

14914: IF (g_asn_debug = 'Y') THEN
14915: asn_debug.put_line('populating the return values from RCV_TRANSACTIONS_INTERFACE_SV1.VALIDATE_SECONDARY_PARAMETERS');
14916: asn_debug.put_line('secondary unit_of_measure = ' || x_cascaded_table(n).secondary_unit_of_measure);
14917: asn_debug.put_line('Secondary Quantity = ' ||x_cascaded_table(n).secondary_quantity );
14918: asn_debug.put_line('Secondary_uom_code = ' ||x_cascaded_table(n).secondary_uom_code);
14919: END IF;
14920:
14921:
14922: /* INVCONV ,qc_grade not handled here */

Line 14986: IF (g_asn_debug = 'Y') THEN

14982: WHEN NO_DATA_FOUND THEN
14983: l_interface_qty := 0;
14984: END;
14985:
14986: IF (g_asn_debug = 'Y') THEN
14987: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
14988: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
14989: asn_debug.put_line('get_interface_qty l_parent_uom ' || l_parent_uom);
14990: asn_debug.put_line('get_interface_qty l_interface_qty ' || l_interface_qty);

Line 14987: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);

14983: l_interface_qty := 0;
14984: END;
14985:
14986: IF (g_asn_debug = 'Y') THEN
14987: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
14988: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
14989: asn_debug.put_line('get_interface_qty l_parent_uom ' || l_parent_uom);
14990: asn_debug.put_line('get_interface_qty l_interface_qty ' || l_interface_qty);
14991: END IF;

Line 14988: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);

14984: END;
14985:
14986: IF (g_asn_debug = 'Y') THEN
14987: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
14988: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
14989: asn_debug.put_line('get_interface_qty l_parent_uom ' || l_parent_uom);
14990: asn_debug.put_line('get_interface_qty l_interface_qty ' || l_interface_qty);
14991: END IF;
14992:

Line 14989: asn_debug.put_line('get_interface_qty l_parent_uom ' || l_parent_uom);

14985:
14986: IF (g_asn_debug = 'Y') THEN
14987: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
14988: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
14989: asn_debug.put_line('get_interface_qty l_parent_uom ' || l_parent_uom);
14990: asn_debug.put_line('get_interface_qty l_interface_qty ' || l_interface_qty);
14991: END IF;
14992:
14993: IF ( x_cascaded_table(n).transaction_type = 'CORRECT'

Line 14990: asn_debug.put_line('get_interface_qty l_interface_qty ' || l_interface_qty);

14986: IF (g_asn_debug = 'Y') THEN
14987: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
14988: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
14989: asn_debug.put_line('get_interface_qty l_parent_uom ' || l_parent_uom);
14990: asn_debug.put_line('get_interface_qty l_interface_qty ' || l_interface_qty);
14991: END IF;
14992:
14993: IF ( x_cascaded_table(n).transaction_type = 'CORRECT'
14994: AND SIGN(x_cascaded_table(n).quantity) = 1) THEN --{

Line 15019: IF (g_asn_debug = 'Y') THEN

15015: ELSE --}{
15016: x_interface_qty := l_interface_qty;
15017: END IF; --}
15018:
15019: IF (g_asn_debug = 'Y') THEN
15020: asn_debug.put_line('get_interface_qty x_interface_qty ' || x_interface_qty);
15021: END IF;
15022:
15023: x_interface_qty := NVL(x_interface_qty, 0);

Line 15020: asn_debug.put_line('get_interface_qty x_interface_qty ' || x_interface_qty);

15016: x_interface_qty := l_interface_qty;
15017: END IF; --}
15018:
15019: IF (g_asn_debug = 'Y') THEN
15020: asn_debug.put_line('get_interface_qty x_interface_qty ' || x_interface_qty);
15021: END IF;
15022:
15023: x_interface_qty := NVL(x_interface_qty, 0);
15024: EXCEPTION

Line 15066: IF (g_asn_debug = 'Y') THEN

15062: WHEN NO_DATA_FOUND THEN
15063: l_interface_amt := 0;
15064: END;
15065:
15066: IF (g_asn_debug = 'Y') THEN
15067: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15068: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
15069: asn_debug.put_line('get_interface_amt l_interface_amt ' || l_interface_amt);
15070: END IF;

Line 15067: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);

15063: l_interface_amt := 0;
15064: END;
15065:
15066: IF (g_asn_debug = 'Y') THEN
15067: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15068: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
15069: asn_debug.put_line('get_interface_amt l_interface_amt ' || l_interface_amt);
15070: END IF;
15071:

Line 15068: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);

15064: END;
15065:
15066: IF (g_asn_debug = 'Y') THEN
15067: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15068: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
15069: asn_debug.put_line('get_interface_amt l_interface_amt ' || l_interface_amt);
15070: END IF;
15071:
15072: IF ( x_cascaded_table(n).transaction_type = 'CORRECT'

Line 15069: asn_debug.put_line('get_interface_amt l_interface_amt ' || l_interface_amt);

15065:
15066: IF (g_asn_debug = 'Y') THEN
15067: asn_debug.put_line('get_interface_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15068: asn_debug.put_line('get_interface_qty l_parent_trx_type ' || l_parent_trx_type);
15069: asn_debug.put_line('get_interface_amt l_interface_amt ' || l_interface_amt);
15070: END IF;
15071:
15072: IF ( x_cascaded_table(n).transaction_type = 'CORRECT'
15073: AND SIGN(x_cascaded_table(n).amount) = 1) THEN --{

Line 15089: IF (g_asn_debug = 'Y') THEN

15085: ELSE --}{
15086: x_interface_amt := l_interface_amt;
15087: END IF; --}
15088:
15089: IF (g_asn_debug = 'Y') THEN
15090: asn_debug.put_line('get_interface_amt x_interface_amt ' || x_interface_amt);
15091: END IF;
15092:
15093: x_interface_amt := NVL(x_interface_amt, 0);

Line 15090: asn_debug.put_line('get_interface_amt x_interface_amt ' || x_interface_amt);

15086: x_interface_amt := l_interface_amt;
15087: END IF; --}
15088:
15089: IF (g_asn_debug = 'Y') THEN
15090: asn_debug.put_line('get_interface_amt x_interface_amt ' || x_interface_amt);
15091: END IF;
15092:
15093: x_interface_amt := NVL(x_interface_amt, 0);
15094: EXCEPTION

Line 15114: IF (g_asn_debug = 'Y') THEN

15110: BEGIN
15111: /* Update interface_available_qty for the current rti row. */
15112: x_cascaded_table(n).interface_available_qty := x_cascaded_table(n).quantity;
15113:
15114: IF (g_asn_debug = 'Y') THEN
15115: asn_debug.put_line('update_interace_qty x_interface_qty ' || x_cascaded_table(n).interface_available_qty);
15116: END IF;
15117:
15118: /* Update interface_available_qty in the parent rti row */

Line 15115: asn_debug.put_line('update_interace_qty x_interface_qty ' || x_cascaded_table(n).interface_available_qty);

15111: /* Update interface_available_qty for the current rti row. */
15112: x_cascaded_table(n).interface_available_qty := x_cascaded_table(n).quantity;
15113:
15114: IF (g_asn_debug = 'Y') THEN
15115: asn_debug.put_line('update_interace_qty x_interface_qty ' || x_cascaded_table(n).interface_available_qty);
15116: END IF;
15117:
15118: /* Update interface_available_qty in the parent rti row */
15119: BEGIN

Line 15134: IF (g_asn_debug = 'Y') THEN

15130: */
15131: NULL;
15132: END;
15133:
15134: IF (g_asn_debug = 'Y') THEN
15135: asn_debug.put_line('update_interace_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15136: asn_debug.put_line('update_interace_qty l_parent_trx_type ' || l_parent_trx_type);
15137: END IF;
15138:

Line 15135: asn_debug.put_line('update_interace_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);

15131: NULL;
15132: END;
15133:
15134: IF (g_asn_debug = 'Y') THEN
15135: asn_debug.put_line('update_interace_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15136: asn_debug.put_line('update_interace_qty l_parent_trx_type ' || l_parent_trx_type);
15137: END IF;
15138:
15139: IF (x_cascaded_table(n).transaction_type = 'CORRECT') THEN --{

Line 15136: asn_debug.put_line('update_interace_qty l_parent_trx_type ' || l_parent_trx_type);

15132: END;
15133:
15134: IF (g_asn_debug = 'Y') THEN
15135: asn_debug.put_line('update_interace_qty l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15136: asn_debug.put_line('update_interace_qty l_parent_trx_type ' || l_parent_trx_type);
15137: END IF;
15138:
15139: IF (x_cascaded_table(n).transaction_type = 'CORRECT') THEN --{
15140: UPDATE rcv_transactions_interface rti

Line 15162: IF (g_asn_debug = 'Y') THEN

15158: WHERE rti.interface_transaction_id = l_grandparent_interface_trx_id;
15159: END IF;
15160: END IF; --}
15161:
15162: IF (g_asn_debug = 'Y') THEN
15163: asn_debug.put_line('update_interace_qty calling update_total_transaction_qty ');
15164: END IF;
15165:
15166: /* Update temp table with the correct quantity*/

Line 15163: asn_debug.put_line('update_interace_qty calling update_total_transaction_qty ');

15159: END IF;
15160: END IF; --}
15161:
15162: IF (g_asn_debug = 'Y') THEN
15163: asn_debug.put_line('update_interace_qty calling update_total_transaction_qty ');
15164: END IF;
15165:
15166: /* Update temp table with the correct quantity*/
15167: update_total_transaction_qty(x_cascaded_table(n).interface_transaction_id,

Line 15197: IF (g_asn_debug = 'Y') THEN

15193: BEGIN
15194: /* Update interface_available_qty for the current rti row. */
15195: x_cascaded_table(n).interface_available_amt := x_cascaded_table(n).amount;
15196:
15197: IF (g_asn_debug = 'Y') THEN
15198: asn_debug.put_line('update_interace_qty x_interface_amt ' || x_cascaded_table(n).interface_available_amt);
15199: END IF;
15200:
15201: /* Update interface_available_qty in the parent rti row */

Line 15198: asn_debug.put_line('update_interace_qty x_interface_amt ' || x_cascaded_table(n).interface_available_amt);

15194: /* Update interface_available_qty for the current rti row. */
15195: x_cascaded_table(n).interface_available_amt := x_cascaded_table(n).amount;
15196:
15197: IF (g_asn_debug = 'Y') THEN
15198: asn_debug.put_line('update_interace_qty x_interface_amt ' || x_cascaded_table(n).interface_available_amt);
15199: END IF;
15200:
15201: /* Update interface_available_qty in the parent rti row */
15202: BEGIN

Line 15217: IF (g_asn_debug = 'Y') THEN

15213: */
15214: NULL;
15215: END;
15216:
15217: IF (g_asn_debug = 'Y') THEN
15218: asn_debug.put_line('update_interface_amt l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15219: asn_debug.put_line('update_interface_amt l_parent_trx_type ' || l_parent_trx_type);
15220: END IF;
15221:

Line 15218: asn_debug.put_line('update_interface_amt l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);

15214: NULL;
15215: END;
15216:
15217: IF (g_asn_debug = 'Y') THEN
15218: asn_debug.put_line('update_interface_amt l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15219: asn_debug.put_line('update_interface_amt l_parent_trx_type ' || l_parent_trx_type);
15220: END IF;
15221:
15222: IF (x_cascaded_table(n).transaction_type = 'CORRECT') THEN --{

Line 15219: asn_debug.put_line('update_interface_amt l_parent_trx_type ' || l_parent_trx_type);

15215: END;
15216:
15217: IF (g_asn_debug = 'Y') THEN
15218: asn_debug.put_line('update_interface_amt l_grandparent_interface_trx_id ' || l_grandparent_interface_trx_id);
15219: asn_debug.put_line('update_interface_amt l_parent_trx_type ' || l_parent_trx_type);
15220: END IF;
15221:
15222: IF (x_cascaded_table(n).transaction_type = 'CORRECT') THEN --{
15223: UPDATE rcv_transactions_interface rti

Line 15245: IF (g_asn_debug = 'Y') THEN

15241: WHERE rti.interface_transaction_id = l_grandparent_interface_trx_id;
15242: END IF;
15243: END IF; --}
15244:
15245: IF (g_asn_debug = 'Y') THEN
15246: asn_debug.put_line('update_interface_amt calling update_total_transaction_amt ');
15247: END IF;
15248:
15249: /* Update temp table with the correct quantity */

Line 15246: asn_debug.put_line('update_interface_amt calling update_total_transaction_amt ');

15242: END IF;
15243: END IF; --}
15244:
15245: IF (g_asn_debug = 'Y') THEN
15246: asn_debug.put_line('update_interface_amt calling update_total_transaction_amt ');
15247: END IF;
15248:
15249: /* Update temp table with the correct quantity */
15250: update_total_transaction_amt(x_cascaded_table(n).interface_transaction_id,

Line 15285: IF (g_asn_debug = 'Y') THEN

15281:
15282: /* Insert into temp table since we need to update this value
15283: * when we process children.
15284: */
15285: IF (g_asn_debug = 'Y') THEN
15286: asn_debug.put_line('update_total_transaction_qty p_parent_transaction_id ' || p_parent_transaction_id);
15287: asn_debug.put_line('update_total_transaction_qty child count ' || l_child_count);
15288: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15289: END IF;

Line 15286: asn_debug.put_line('update_total_transaction_qty p_parent_transaction_id ' || p_parent_transaction_id);

15282: /* Insert into temp table since we need to update this value
15283: * when we process children.
15284: */
15285: IF (g_asn_debug = 'Y') THEN
15286: asn_debug.put_line('update_total_transaction_qty p_parent_transaction_id ' || p_parent_transaction_id);
15287: asn_debug.put_line('update_total_transaction_qty child count ' || l_child_count);
15288: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15289: END IF;
15290:

Line 15287: asn_debug.put_line('update_total_transaction_qty child count ' || l_child_count);

15283: * when we process children.
15284: */
15285: IF (g_asn_debug = 'Y') THEN
15286: asn_debug.put_line('update_total_transaction_qty p_parent_transaction_id ' || p_parent_transaction_id);
15287: asn_debug.put_line('update_total_transaction_qty child count ' || l_child_count);
15288: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15289: END IF;
15290:
15291: /* Bug 3459152.

Line 15288: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);

15284: */
15285: IF (g_asn_debug = 'Y') THEN
15286: asn_debug.put_line('update_total_transaction_qty p_parent_transaction_id ' || p_parent_transaction_id);
15287: asn_debug.put_line('update_total_transaction_qty child count ' || l_child_count);
15288: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15289: END IF;
15290:
15291: /* Bug 3459152.
15292: * We need to update interface_transaction_qty for SHIP transaction

Line 15299: IF (g_asn_debug = 'Y') THEN

15295: */
15296: IF ( ( p_parent_transaction_id IS NULL
15297: AND p_transaction_type IN('RECEIVE', 'SHIP'))
15298: OR (p_parent_transaction_id IS NOT NULL)) THEN --{
15299: IF (g_asn_debug = 'Y') THEN
15300: asn_debug.put_line('update_total_transaction_qty updating rti row with parent' || p_interface_transaction_id || ',quantity ' || p_primary_quantity);
15301: END IF;
15302:
15303: x_interface_transaction_qty := p_primary_quantity;

Line 15300: asn_debug.put_line('update_total_transaction_qty updating rti row with parent' || p_interface_transaction_id || ',quantity ' || p_primary_quantity);

15296: IF ( ( p_parent_transaction_id IS NULL
15297: AND p_transaction_type IN('RECEIVE', 'SHIP'))
15298: OR (p_parent_transaction_id IS NOT NULL)) THEN --{
15299: IF (g_asn_debug = 'Y') THEN
15300: asn_debug.put_line('update_total_transaction_qty updating rti row with parent' || p_interface_transaction_id || ',quantity ' || p_primary_quantity);
15301: END IF;
15302:
15303: x_interface_transaction_qty := p_primary_quantity;
15304: RETURN;

Line 15308: IF (g_asn_debug = 'Y') THEN

15304: RETURN;
15305: END IF; --}
15306:
15307: IF (p_parent_interface_txn_id IS NOT NULL) THEN --{
15308: IF (g_asn_debug = 'Y') THEN
15309: asn_debug.put_line('update_total_transaction_qty parent_interface_txn_id is not null ');
15310: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15311: END IF;
15312:

Line 15309: asn_debug.put_line('update_total_transaction_qty parent_interface_txn_id is not null ');

15305: END IF; --}
15306:
15307: IF (p_parent_interface_txn_id IS NOT NULL) THEN --{
15308: IF (g_asn_debug = 'Y') THEN
15309: asn_debug.put_line('update_total_transaction_qty parent_interface_txn_id is not null ');
15310: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15311: END IF;
15312:
15313: SELECT parent_transaction_id

Line 15310: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);

15306:
15307: IF (p_parent_interface_txn_id IS NOT NULL) THEN --{
15308: IF (g_asn_debug = 'Y') THEN
15309: asn_debug.put_line('update_total_transaction_qty parent_interface_txn_id is not null ');
15310: asn_debug.put_line('update_total_transaction_qty p_primary_quantity ' || p_primary_quantity);
15311: END IF;
15312:
15313: SELECT parent_transaction_id
15314: INTO l_grand_parent_id

Line 15318: IF (g_asn_debug = 'Y') THEN

15314: INTO l_grand_parent_id
15315: FROM rcv_transactions_interface
15316: WHERE interface_transaction_id = p_parent_interface_txn_id;
15317:
15318: IF (g_asn_debug = 'Y') THEN
15319: asn_debug.put_line('update_total_transaction_qty l_grand_parent_id ' || l_grand_parent_id);
15320: END IF;
15321:
15322: IF ( (l_grand_parent_id IS NOT NULL)

Line 15319: asn_debug.put_line('update_total_transaction_qty l_grand_parent_id ' || l_grand_parent_id);

15315: FROM rcv_transactions_interface
15316: WHERE interface_transaction_id = p_parent_interface_txn_id;
15317:
15318: IF (g_asn_debug = 'Y') THEN
15319: asn_debug.put_line('update_total_transaction_qty l_grand_parent_id ' || l_grand_parent_id);
15320: END IF;
15321:
15322: IF ( (l_grand_parent_id IS NOT NULL)
15323: AND (p_transaction_type = 'CORRECT')) THEN

Line 15359: IF (g_asn_debug = 'Y') THEN

15355:
15356: /* Insert into temp table since we need to update this value
15357: * when we process children.
15358: */
15359: IF (g_asn_debug = 'Y') THEN
15360: asn_debug.put_line('update_total_transaction_amt p_parent_transaction_id ' || p_parent_transaction_id);
15361: asn_debug.put_line('update_total_transaction_amt child count ' || l_child_count);
15362: asn_debug.put_line('update_total_transaction_amt p_primary_quantity ' || p_amount);
15363: END IF;

Line 15360: asn_debug.put_line('update_total_transaction_amt p_parent_transaction_id ' || p_parent_transaction_id);

15356: /* Insert into temp table since we need to update this value
15357: * when we process children.
15358: */
15359: IF (g_asn_debug = 'Y') THEN
15360: asn_debug.put_line('update_total_transaction_amt p_parent_transaction_id ' || p_parent_transaction_id);
15361: asn_debug.put_line('update_total_transaction_amt child count ' || l_child_count);
15362: asn_debug.put_line('update_total_transaction_amt p_primary_quantity ' || p_amount);
15363: END IF;
15364:

Line 15361: asn_debug.put_line('update_total_transaction_amt child count ' || l_child_count);

15357: * when we process children.
15358: */
15359: IF (g_asn_debug = 'Y') THEN
15360: asn_debug.put_line('update_total_transaction_amt p_parent_transaction_id ' || p_parent_transaction_id);
15361: asn_debug.put_line('update_total_transaction_amt child count ' || l_child_count);
15362: asn_debug.put_line('update_total_transaction_amt p_primary_quantity ' || p_amount);
15363: END IF;
15364:
15365: IF ( ( p_parent_transaction_id IS NULL

Line 15362: asn_debug.put_line('update_total_transaction_amt p_primary_quantity ' || p_amount);

15358: */
15359: IF (g_asn_debug = 'Y') THEN
15360: asn_debug.put_line('update_total_transaction_amt p_parent_transaction_id ' || p_parent_transaction_id);
15361: asn_debug.put_line('update_total_transaction_amt child count ' || l_child_count);
15362: asn_debug.put_line('update_total_transaction_amt p_primary_quantity ' || p_amount);
15363: END IF;
15364:
15365: IF ( ( p_parent_transaction_id IS NULL
15366: AND p_transaction_type IN('RECEIVE', 'SHIP'))

Line 15368: IF (g_asn_debug = 'Y') THEN

15364:
15365: IF ( ( p_parent_transaction_id IS NULL
15366: AND p_transaction_type IN('RECEIVE', 'SHIP'))
15367: OR (p_parent_transaction_id IS NOT NULL)) THEN --{
15368: IF (g_asn_debug = 'Y') THEN
15369: asn_debug.put_line('update_total_transaction_amt updating rti row with parent' || p_interface_transaction_id || ',amount ' || p_amount);
15370: END IF;
15371:
15372: x_interface_transaction_amt := p_amount;

Line 15369: asn_debug.put_line('update_total_transaction_amt updating rti row with parent' || p_interface_transaction_id || ',amount ' || p_amount);

15365: IF ( ( p_parent_transaction_id IS NULL
15366: AND p_transaction_type IN('RECEIVE', 'SHIP'))
15367: OR (p_parent_transaction_id IS NOT NULL)) THEN --{
15368: IF (g_asn_debug = 'Y') THEN
15369: asn_debug.put_line('update_total_transaction_amt updating rti row with parent' || p_interface_transaction_id || ',amount ' || p_amount);
15370: END IF;
15371:
15372: x_interface_transaction_amt := p_amount;
15373: RETURN;

Line 15377: IF (g_asn_debug = 'Y') THEN

15373: RETURN;
15374: END IF; --}
15375:
15376: IF (p_parent_interface_txn_id IS NOT NULL) THEN --{
15377: IF (g_asn_debug = 'Y') THEN
15378: asn_debug.put_line('update_total_transaction_amt parent_interface_txn_id is not null ');
15379: asn_debug.put_line('update_total_transaction_amt p_amount ' || p_amount);
15380: END IF;
15381:

Line 15378: asn_debug.put_line('update_total_transaction_amt parent_interface_txn_id is not null ');

15374: END IF; --}
15375:
15376: IF (p_parent_interface_txn_id IS NOT NULL) THEN --{
15377: IF (g_asn_debug = 'Y') THEN
15378: asn_debug.put_line('update_total_transaction_amt parent_interface_txn_id is not null ');
15379: asn_debug.put_line('update_total_transaction_amt p_amount ' || p_amount);
15380: END IF;
15381:
15382: SELECT parent_transaction_id

Line 15379: asn_debug.put_line('update_total_transaction_amt p_amount ' || p_amount);

15375:
15376: IF (p_parent_interface_txn_id IS NOT NULL) THEN --{
15377: IF (g_asn_debug = 'Y') THEN
15378: asn_debug.put_line('update_total_transaction_amt parent_interface_txn_id is not null ');
15379: asn_debug.put_line('update_total_transaction_amt p_amount ' || p_amount);
15380: END IF;
15381:
15382: SELECT parent_transaction_id
15383: INTO l_grand_parent_id

Line 15387: IF (g_asn_debug = 'Y') THEN

15383: INTO l_grand_parent_id
15384: FROM rcv_transactions_interface
15385: WHERE interface_transaction_id = p_parent_interface_txn_id;
15386:
15387: IF (g_asn_debug = 'Y') THEN
15388: asn_debug.put_line('update_total_transaction_amt l_grand_parent_id ' || l_grand_parent_id);
15389: END IF;
15390:
15391: IF ( (l_grand_parent_id IS NOT NULL)

Line 15388: asn_debug.put_line('update_total_transaction_amt l_grand_parent_id ' || l_grand_parent_id);

15384: FROM rcv_transactions_interface
15385: WHERE interface_transaction_id = p_parent_interface_txn_id;
15386:
15387: IF (g_asn_debug = 'Y') THEN
15388: asn_debug.put_line('update_total_transaction_amt l_grand_parent_id ' || l_grand_parent_id);
15389: END IF;
15390:
15391: IF ( (l_grand_parent_id IS NOT NULL)
15392: AND (p_transaction_type = 'CORRECT')) THEN

Line 15434: IF (g_asn_debug = 'Y') THEN

15430: * quantity based POs. We will have po_line_id at
15431: * this point since we would have derived it in
15432: * derive_po_line_info.
15433: */
15434: IF (g_asn_debug = 'Y') THEN
15435: asn_debug.put_line('po_line_id '
15436: ||x_cascaded_table(n).po_line_id);
15437: asn_debug.put_line('po_line_location_id '
15438: ||x_cascaded_table(n).po_line_location_id);

Line 15435: asn_debug.put_line('po_line_id '

15431: * this point since we would have derived it in
15432: * derive_po_line_info.
15433: */
15434: IF (g_asn_debug = 'Y') THEN
15435: asn_debug.put_line('po_line_id '
15436: ||x_cascaded_table(n).po_line_id);
15437: asn_debug.put_line('po_line_location_id '
15438: ||x_cascaded_table(n).po_line_location_id);
15439: asn_debug.put_line('shipment_num '

Line 15437: asn_debug.put_line('po_line_location_id '

15433: */
15434: IF (g_asn_debug = 'Y') THEN
15435: asn_debug.put_line('po_line_id '
15436: ||x_cascaded_table(n).po_line_id);
15437: asn_debug.put_line('po_line_location_id '
15438: ||x_cascaded_table(n).po_line_location_id);
15439: asn_debug.put_line('shipment_num '
15440: ||x_cascaded_table(n).document_shipment_line_num);
15441: END IF;

Line 15439: asn_debug.put_line('shipment_num '

15435: asn_debug.put_line('po_line_id '
15436: ||x_cascaded_table(n).po_line_id);
15437: asn_debug.put_line('po_line_location_id '
15438: ||x_cascaded_table(n).po_line_location_id);
15439: asn_debug.put_line('shipment_num '
15440: ||x_cascaded_table(n).document_shipment_line_num);
15441: END IF;
15442:
15443: IF(x_cascaded_table(n).po_line_id IS NOT NULL)

Line 15461: IF (g_asn_debug = 'Y') THEN

15457: and pl.po_line_id = pll.po_line_id
15458: and pll.line_location_id =x_cascaded_table(n).po_line_location_id;
15459: exception
15460: when no_data_found then
15461: IF (g_asn_debug = 'Y') THEN
15462: asn_debug.put_line('NO data found in derive_match_basis '
15463: ||'for PO shipments with line and line_loc_id info');
15464: END IF;
15465: x_cascaded_table(n).error_status :=

Line 15462: asn_debug.put_line('NO data found in derive_match_basis '

15458: and pll.line_location_id =x_cascaded_table(n).po_line_location_id;
15459: exception
15460: when no_data_found then
15461: IF (g_asn_debug = 'Y') THEN
15462: asn_debug.put_line('NO data found in derive_match_basis '
15463: ||'for PO shipments with line and line_loc_id info');
15464: END IF;
15465: x_cascaded_table(n).error_status :=
15466: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15474: IF (g_asn_debug = 'Y') THEN

15470: x_progress);
15471: x_cascaded_table(n).error_message :=
15472: rcv_error_pkg.get_last_message;
15473: when others then
15474: IF (g_asn_debug = 'Y') THEN
15475: asn_debug.put_line('when others in derive_match_basis '
15476: ||'for PO shipments with line and line_loc_id info');
15477: END IF;
15478: x_cascaded_table(n).error_status :=

Line 15475: asn_debug.put_line('when others in derive_match_basis '

15471: x_cascaded_table(n).error_message :=
15472: rcv_error_pkg.get_last_message;
15473: when others then
15474: IF (g_asn_debug = 'Y') THEN
15475: asn_debug.put_line('when others in derive_match_basis '
15476: ||'for PO shipments with line and line_loc_id info');
15477: END IF;
15478: x_cascaded_table(n).error_status :=
15479: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15505: IF (g_asn_debug = 'Y') THEN

15501: and pll.shipment_num =
15502: x_cascaded_table(n).document_shipment_line_num;
15503: exception
15504: when too_many_rows then
15505: IF (g_asn_debug = 'Y') THEN
15506: asn_debug.put_line('too many rows in derive_match_basis ' ||'for PO shipments with line and ship info');
15507: END IF;
15508: x_cascaded_table(n).error_status :=
15509: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15506: asn_debug.put_line('too many rows in derive_match_basis ' ||'for PO shipments with line and ship info');

15502: x_cascaded_table(n).document_shipment_line_num;
15503: exception
15504: when too_many_rows then
15505: IF (g_asn_debug = 'Y') THEN
15506: asn_debug.put_line('too many rows in derive_match_basis ' ||'for PO shipments with line and ship info');
15507: END IF;
15508: x_cascaded_table(n).error_status :=
15509: rcv_error_pkg.g_ret_sts_unexp_error;
15510: rcv_error_pkg.set_sql_error_message(

Line 15517: IF (g_asn_debug = 'Y') THEN

15513: x_progress);
15514: x_cascaded_table(n).error_message :=
15515: rcv_error_pkg.get_last_message;
15516: when no_data_found then
15517: IF (g_asn_debug = 'Y') THEN
15518: asn_debug.put_line('NO data found in derive_match_basis ' ||'for PO shipments with line and ship info');
15519: END IF;
15520: x_cascaded_table(n).error_status :=
15521: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15518: asn_debug.put_line('NO data found in derive_match_basis ' ||'for PO shipments with line and ship info');

15514: x_cascaded_table(n).error_message :=
15515: rcv_error_pkg.get_last_message;
15516: when no_data_found then
15517: IF (g_asn_debug = 'Y') THEN
15518: asn_debug.put_line('NO data found in derive_match_basis ' ||'for PO shipments with line and ship info');
15519: END IF;
15520: x_cascaded_table(n).error_status :=
15521: rcv_error_pkg.g_ret_sts_unexp_error;
15522: rcv_error_pkg.set_sql_error_message(

Line 15529: IF (g_asn_debug = 'Y') THEN

15525: x_progress);
15526: x_cascaded_table(n).error_message :=
15527: rcv_error_pkg.get_last_message;
15528: when others then
15529: IF (g_asn_debug = 'Y') THEN
15530: asn_debug.put_line('when others in derive_match_basis '
15531: ||'for PO shipments with line and ship info');
15532: END IF;
15533: x_cascaded_table(n).error_status :=

Line 15530: asn_debug.put_line('when others in derive_match_basis '

15526: x_cascaded_table(n).error_message :=
15527: rcv_error_pkg.get_last_message;
15528: when others then
15529: IF (g_asn_debug = 'Y') THEN
15530: asn_debug.put_line('when others in derive_match_basis '
15531: ||'for PO shipments with line and ship info');
15532: END IF;
15533: x_cascaded_table(n).error_status :=
15534: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15554: IF (g_asn_debug = 'Y') THEN

15550: FROM po_lines_all
15551: WHERE po_line_id = x_cascaded_table(n).po_line_id;
15552: exception
15553: when no_data_found then
15554: IF (g_asn_debug = 'Y') THEN
15555: asn_debug.put_line('NO data found in derive_match_basis '
15556: ||'for PO shipments with line info');
15557: END IF;
15558: x_cascaded_table(n).error_status :=

Line 15555: asn_debug.put_line('NO data found in derive_match_basis '

15551: WHERE po_line_id = x_cascaded_table(n).po_line_id;
15552: exception
15553: when no_data_found then
15554: IF (g_asn_debug = 'Y') THEN
15555: asn_debug.put_line('NO data found in derive_match_basis '
15556: ||'for PO shipments with line info');
15557: END IF;
15558: x_cascaded_table(n).error_status :=
15559: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15567: IF (g_asn_debug = 'Y') THEN

15563: x_progress);
15564: x_cascaded_table(n).error_message :=
15565: rcv_error_pkg.get_last_message;
15566: when others then
15567: IF (g_asn_debug = 'Y') THEN
15568: asn_debug.put_line('when others in derive_match_basis '
15569: ||'for PO shipments with line info');
15570: END IF;
15571: x_cascaded_table(n).error_status :=

Line 15568: asn_debug.put_line('when others in derive_match_basis '

15564: x_cascaded_table(n).error_message :=
15565: rcv_error_pkg.get_last_message;
15566: when others then
15567: IF (g_asn_debug = 'Y') THEN
15568: asn_debug.put_line('when others in derive_match_basis '
15569: ||'for PO shipments with line info');
15570: END IF;
15571: x_cascaded_table(n).error_status :=
15572: rcv_error_pkg.g_ret_sts_unexp_error;

Line 15586: IF (g_asn_debug = 'Y') THEN

15582: x_cascaded_table(n).matching_basis := 'QUANTITY';
15583: x_cascaded_table(n).purchase_basis := 'GOODS';
15584: END IF;
15585:
15586: IF (g_asn_debug = 'Y') THEN
15587: asn_debug.put_line('matching_basis ' ||
15588: x_cascaded_table(n).matching_basis);
15589: END IF;
15590: EXCEPTION

Line 15587: asn_debug.put_line('matching_basis ' ||

15583: x_cascaded_table(n).purchase_basis := 'GOODS';
15584: END IF;
15585:
15586: IF (g_asn_debug = 'Y') THEN
15587: asn_debug.put_line('matching_basis ' ||
15588: x_cascaded_table(n).matching_basis);
15589: END IF;
15590: EXCEPTION
15591: WHEN OTHERS THEN

Line 15617: IF (g_asn_debug = 'Y') THEN

15613: l_deliver_to_person_id NUMBER;
15614: l_distribution_count NUMBER;
15615: BEGIN
15616: --At this point po_distribution_id or po_line_location_id would have been derived or defaulted.
15617: IF (g_asn_debug = 'Y') THEN
15618: asn_debug.put_line('Inside get_deliver_to_person_from_po...');
15619: END IF;
15620: IF (x_cascaded_table(n).po_distribution_id is not null) THEN
15621: IF (g_asn_debug = 'Y') THEN

Line 15618: asn_debug.put_line('Inside get_deliver_to_person_from_po...');

15614: l_distribution_count NUMBER;
15615: BEGIN
15616: --At this point po_distribution_id or po_line_location_id would have been derived or defaulted.
15617: IF (g_asn_debug = 'Y') THEN
15618: asn_debug.put_line('Inside get_deliver_to_person_from_po...');
15619: END IF;
15620: IF (x_cascaded_table(n).po_distribution_id is not null) THEN
15621: IF (g_asn_debug = 'Y') THEN
15622: asn_debug.put_line('Inside pod is not null..pod value :'||x_cascaded_table(n).po_distribution_id);

Line 15621: IF (g_asn_debug = 'Y') THEN

15617: IF (g_asn_debug = 'Y') THEN
15618: asn_debug.put_line('Inside get_deliver_to_person_from_po...');
15619: END IF;
15620: IF (x_cascaded_table(n).po_distribution_id is not null) THEN
15621: IF (g_asn_debug = 'Y') THEN
15622: asn_debug.put_line('Inside pod is not null..pod value :'||x_cascaded_table(n).po_distribution_id);
15623: END IF;
15624:
15625: BEGIN

Line 15622: asn_debug.put_line('Inside pod is not null..pod value :'||x_cascaded_table(n).po_distribution_id);

15618: asn_debug.put_line('Inside get_deliver_to_person_from_po...');
15619: END IF;
15620: IF (x_cascaded_table(n).po_distribution_id is not null) THEN
15621: IF (g_asn_debug = 'Y') THEN
15622: asn_debug.put_line('Inside pod is not null..pod value :'||x_cascaded_table(n).po_distribution_id);
15623: END IF;
15624:
15625: BEGIN
15626: select deliver_to_person_id

Line 15632: IF (g_asn_debug = 'Y') THEN

15628: from po_distributions_all
15629: where po_distribution_id = x_cascaded_table(n).po_distribution_id;
15630:
15631: x_cascaded_table(n).deliver_to_person_id := l_deliver_to_person_id;
15632: IF (g_asn_debug = 'Y') THEN
15633: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15634: END IF;
15635: EXCEPTION
15636: WHEN OTHERS then

Line 15633: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);

15629: where po_distribution_id = x_cascaded_table(n).po_distribution_id;
15630:
15631: x_cascaded_table(n).deliver_to_person_id := l_deliver_to_person_id;
15632: IF (g_asn_debug = 'Y') THEN
15633: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15634: END IF;
15635: EXCEPTION
15636: WHEN OTHERS then
15637: IF (g_asn_debug = 'Y') THEN

Line 15637: IF (g_asn_debug = 'Y') THEN

15633: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15634: END IF;
15635: EXCEPTION
15636: WHEN OTHERS then
15637: IF (g_asn_debug = 'Y') THEN
15638: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru pod');
15639: END IF;
15640: END;
15641: ELSIF (x_cascaded_table(n).po_line_location_id is not null) THEN

Line 15638: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru pod');

15634: END IF;
15635: EXCEPTION
15636: WHEN OTHERS then
15637: IF (g_asn_debug = 'Y') THEN
15638: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru pod');
15639: END IF;
15640: END;
15641: ELSIF (x_cascaded_table(n).po_line_location_id is not null) THEN
15642: IF (g_asn_debug = 'Y') THEN

Line 15642: IF (g_asn_debug = 'Y') THEN

15638: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru pod');
15639: END IF;
15640: END;
15641: ELSIF (x_cascaded_table(n).po_line_location_id is not null) THEN
15642: IF (g_asn_debug = 'Y') THEN
15643: asn_debug.put_line('Inside poll not null..poll value :'||x_cascaded_table(n).po_line_location_id);
15644: END IF;
15645:
15646: BEGIN

Line 15643: asn_debug.put_line('Inside poll not null..poll value :'||x_cascaded_table(n).po_line_location_id);

15639: END IF;
15640: END;
15641: ELSIF (x_cascaded_table(n).po_line_location_id is not null) THEN
15642: IF (g_asn_debug = 'Y') THEN
15643: asn_debug.put_line('Inside poll not null..poll value :'||x_cascaded_table(n).po_line_location_id);
15644: END IF;
15645:
15646: BEGIN
15647: select count(po_distribution_id)

Line 15652: IF (g_asn_debug = 'Y') THEN

15648: into l_distribution_count
15649: from po_distributions_all
15650: where line_location_id = x_cascaded_table(n).po_line_location_id;
15651:
15652: IF (g_asn_debug = 'Y') THEN
15653: asn_debug.put_line('Inside poll not null..l_distribution_count:'||l_distribution_count);
15654: END IF;
15655:
15656: IF l_distribution_count = 1 THEN

Line 15653: asn_debug.put_line('Inside poll not null..l_distribution_count:'||l_distribution_count);

15649: from po_distributions_all
15650: where line_location_id = x_cascaded_table(n).po_line_location_id;
15651:
15652: IF (g_asn_debug = 'Y') THEN
15653: asn_debug.put_line('Inside poll not null..l_distribution_count:'||l_distribution_count);
15654: END IF;
15655:
15656: IF l_distribution_count = 1 THEN
15657: select deliver_to_person_id

Line 15663: IF (g_asn_debug = 'Y') THEN

15659: from po_distributions_all
15660: where line_location_id = x_cascaded_table(n).po_line_location_id;
15661:
15662: x_cascaded_table(n).deliver_to_person_id := l_deliver_to_person_id;
15663: IF (g_asn_debug = 'Y') THEN
15664: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15665: END IF;
15666: ELSE--l_distribution_count = 1
15667: IF (g_asn_debug = 'Y') THEN

Line 15664: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);

15660: where line_location_id = x_cascaded_table(n).po_line_location_id;
15661:
15662: x_cascaded_table(n).deliver_to_person_id := l_deliver_to_person_id;
15663: IF (g_asn_debug = 'Y') THEN
15664: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15665: END IF;
15666: ELSE--l_distribution_count = 1
15667: IF (g_asn_debug = 'Y') THEN
15668: asn_debug.put_line('deliver_to_person_id not defalued as poll has multiple distributions');

Line 15667: IF (g_asn_debug = 'Y') THEN

15663: IF (g_asn_debug = 'Y') THEN
15664: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15665: END IF;
15666: ELSE--l_distribution_count = 1
15667: IF (g_asn_debug = 'Y') THEN
15668: asn_debug.put_line('deliver_to_person_id not defalued as poll has multiple distributions');
15669: END IF;
15670: END IF;--l_distribution_count = 1
15671: EXCEPTION

Line 15668: asn_debug.put_line('deliver_to_person_id not defalued as poll has multiple distributions');

15664: asn_debug.put_line('defaulted deliver_to_person_id as:'||l_deliver_to_person_id);
15665: END IF;
15666: ELSE--l_distribution_count = 1
15667: IF (g_asn_debug = 'Y') THEN
15668: asn_debug.put_line('deliver_to_person_id not defalued as poll has multiple distributions');
15669: END IF;
15670: END IF;--l_distribution_count = 1
15671: EXCEPTION
15672: WHEN OTHERS then

Line 15673: IF (g_asn_debug = 'Y') THEN

15669: END IF;
15670: END IF;--l_distribution_count = 1
15671: EXCEPTION
15672: WHEN OTHERS then
15673: IF (g_asn_debug = 'Y') THEN
15674: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru poll');
15675: END IF;
15676: END;
15677: END IF;--(x_cascaded_table(n).po_distribution_id is not null)

Line 15674: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru poll');

15670: END IF;--l_distribution_count = 1
15671: EXCEPTION
15672: WHEN OTHERS then
15673: IF (g_asn_debug = 'Y') THEN
15674: asn_debug.put_line('Exception occured while getting deliver_to_person_id thru poll');
15675: END IF;
15676: END;
15677: END IF;--(x_cascaded_table(n).po_distribution_id is not null)
15678: END get_deliver_to_person_from_po;

Line 15695: IF (g_asn_debug = 'Y') THEN

15691: into l_parent_deliver_to_person_id
15692: from rcv_transactions
15693: where transaction_id = x_cascaded_table(n).parent_transaction_id;
15694:
15695: IF (g_asn_debug = 'Y') THEN
15696: asn_debug.put_line('Got deliver_to_person_id of parent txn as:'||l_parent_deliver_to_person_id);
15697: END IF;
15698: return l_parent_deliver_to_person_id;
15699: EXCEPTION

Line 15696: asn_debug.put_line('Got deliver_to_person_id of parent txn as:'||l_parent_deliver_to_person_id);

15692: from rcv_transactions
15693: where transaction_id = x_cascaded_table(n).parent_transaction_id;
15694:
15695: IF (g_asn_debug = 'Y') THEN
15696: asn_debug.put_line('Got deliver_to_person_id of parent txn as:'||l_parent_deliver_to_person_id);
15697: END IF;
15698: return l_parent_deliver_to_person_id;
15699: EXCEPTION
15700: WHEN OTHERS then

Line 15701: IF (g_asn_debug = 'Y') THEN

15697: END IF;
15698: return l_parent_deliver_to_person_id;
15699: EXCEPTION
15700: WHEN OTHERS then
15701: IF (g_asn_debug = 'Y') THEN
15702: asn_debug.put_line('Exception occured in get_deliver_to_person_from_rt');
15703: END IF;
15704: return null;
15705: END get_deliver_to_person_from_rt;

Line 15702: asn_debug.put_line('Exception occured in get_deliver_to_person_from_rt');

15698: return l_parent_deliver_to_person_id;
15699: EXCEPTION
15700: WHEN OTHERS then
15701: IF (g_asn_debug = 'Y') THEN
15702: asn_debug.put_line('Exception occured in get_deliver_to_person_from_rt');
15703: END IF;
15704: return null;
15705: END get_deliver_to_person_from_rt;
15706:

Line 15723: IF (g_asn_debug = 'Y') THEN

15719: into l_parent_deliver_to_person_id
15720: from rcv_transactions_interface
15721: where interface_transaction_id = x_cascaded_table(n).parent_transaction_id;
15722:
15723: IF (g_asn_debug = 'Y') THEN
15724: asn_debug.put_line('Got deliver_to_person_id of parent txn as:'||l_parent_deliver_to_person_id);
15725: END IF;
15726: return l_parent_deliver_to_person_id;
15727: EXCEPTION

Line 15724: asn_debug.put_line('Got deliver_to_person_id of parent txn as:'||l_parent_deliver_to_person_id);

15720: from rcv_transactions_interface
15721: where interface_transaction_id = x_cascaded_table(n).parent_transaction_id;
15722:
15723: IF (g_asn_debug = 'Y') THEN
15724: asn_debug.put_line('Got deliver_to_person_id of parent txn as:'||l_parent_deliver_to_person_id);
15725: END IF;
15726: return l_parent_deliver_to_person_id;
15727: EXCEPTION
15728: WHEN OTHERS then

Line 15729: IF (g_asn_debug = 'Y') THEN

15725: END IF;
15726: return l_parent_deliver_to_person_id;
15727: EXCEPTION
15728: WHEN OTHERS then
15729: IF (g_asn_debug = 'Y') THEN
15730: asn_debug.put_line('Exception occured in get_deliver_to_person_from_rti');
15731: END IF;
15732: return null;
15733: END get_deliver_to_person_from_rti;

Line 15730: asn_debug.put_line('Exception occured in get_deliver_to_person_from_rti');

15726: return l_parent_deliver_to_person_id;
15727: EXCEPTION
15728: WHEN OTHERS then
15729: IF (g_asn_debug = 'Y') THEN
15730: asn_debug.put_line('Exception occured in get_deliver_to_person_from_rti');
15731: END IF;
15732: return null;
15733: END get_deliver_to_person_from_rti;
15734:

Line 15770: IF (g_asn_debug = 'Y') THEN

15766: x_currency_conversion_type rcv_transactions.currency_conversion_type%type;
15767: x_currency_conversion_rate NUMBER;
15768:
15769: BEGIN
15770: IF (g_asn_debug = 'Y') THEN
15771: asn_debug.put_line('In validate_lcm_line');
15772: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
15773: asn_debug.put_line('x_cascaded_table(n).transaction_type ' || x_cascaded_table(n).transaction_type);
15774: END IF;

Line 15771: asn_debug.put_line('In validate_lcm_line');

15767: x_currency_conversion_rate NUMBER;
15768:
15769: BEGIN
15770: IF (g_asn_debug = 'Y') THEN
15771: asn_debug.put_line('In validate_lcm_line');
15772: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
15773: asn_debug.put_line('x_cascaded_table(n).transaction_type ' || x_cascaded_table(n).transaction_type);
15774: END IF;
15775:

Line 15772: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);

15768:
15769: BEGIN
15770: IF (g_asn_debug = 'Y') THEN
15771: asn_debug.put_line('In validate_lcm_line');
15772: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
15773: asn_debug.put_line('x_cascaded_table(n).transaction_type ' || x_cascaded_table(n).transaction_type);
15774: END IF;
15775:
15776: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN

Line 15773: asn_debug.put_line('x_cascaded_table(n).transaction_type ' || x_cascaded_table(n).transaction_type);

15769: BEGIN
15770: IF (g_asn_debug = 'Y') THEN
15771: asn_debug.put_line('In validate_lcm_line');
15772: asn_debug.put_line('x_cascaded_table(n).error_status ' || x_cascaded_table(n).error_status);
15773: asn_debug.put_line('x_cascaded_table(n).transaction_type ' || x_cascaded_table(n).transaction_type);
15774: END IF;
15775:
15776: IF (x_cascaded_table(n).error_status NOT IN('S', 'W')) THEN
15777: RETURN;

Line 15783: IF (g_asn_debug = 'Y') THEN

15779:
15780: l_pre_rcv_flag := rcv_table_functions.is_pre_rcv_org(x_cascaded_table(n).to_organization_id);
15781: l_lcm_shipment_flag := rcv_table_functions.is_lcm_shipment (x_cascaded_table(n).po_line_location_id);
15782:
15783: IF (g_asn_debug = 'Y') THEN
15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);
15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);
15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);
15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);

Line 15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);

15780: l_pre_rcv_flag := rcv_table_functions.is_pre_rcv_org(x_cascaded_table(n).to_organization_id);
15781: l_lcm_shipment_flag := rcv_table_functions.is_lcm_shipment (x_cascaded_table(n).po_line_location_id);
15782:
15783: IF (g_asn_debug = 'Y') THEN
15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);
15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);
15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);
15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);
15788: asn_debug.put_line('x_asn_type => ' || x_asn_type);

Line 15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);

15781: l_lcm_shipment_flag := rcv_table_functions.is_lcm_shipment (x_cascaded_table(n).po_line_location_id);
15782:
15783: IF (g_asn_debug = 'Y') THEN
15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);
15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);
15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);
15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);
15788: asn_debug.put_line('x_asn_type => ' || x_asn_type);
15789: END IF;

Line 15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);

15782:
15783: IF (g_asn_debug = 'Y') THEN
15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);
15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);
15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);
15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);
15788: asn_debug.put_line('x_asn_type => ' || x_asn_type);
15789: END IF;
15790:

Line 15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);

15783: IF (g_asn_debug = 'Y') THEN
15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);
15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);
15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);
15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);
15788: asn_debug.put_line('x_asn_type => ' || x_asn_type);
15789: END IF;
15790:
15791: IF (l_lcm_shipment_flag = 'Y') THEN

Line 15788: asn_debug.put_line('x_asn_type => ' || x_asn_type);

15784: asn_debug.put_line('x_cascaded_table(n).to_organization_id ' || x_cascaded_table(n).to_organization_id);
15785: asn_debug.put_line('l_pre_rcv_flag => ' || l_pre_rcv_flag);
15786: asn_debug.put_line('x_cascaded_table(n).po_line_location_id ' || x_cascaded_table(n).po_line_location_id);
15787: asn_debug.put_line('l_lcm_shipment_flag => ' || l_lcm_shipment_flag);
15788: asn_debug.put_line('x_asn_type => ' || x_asn_type);
15789: END IF;
15790:
15791: IF (l_lcm_shipment_flag = 'Y') THEN
15792:

Line 15796: asn_debug.put_line('Error: lcm_shipment_line_id should not be null ');

15792:
15793: IF (x_cascaded_table(n).transaction_type not in ('SHIP','RECEIVE')) THEN
15794: IF (x_cascaded_table(n).lcm_shipment_line_id IS NULL) THEN
15795: --
15796: asn_debug.put_line('Error: lcm_shipment_line_id should not be null ');
15797: x_cascaded_table(n).error_status := 'E';
15798: rcv_error_pkg.set_error_message('PO_PDOI_COLUMN_NOT_NULL', x_cascaded_table(n).error_message);
15799: rcv_error_pkg.set_token('COLUMN_NAME', 'LCM_SHIPMENT_LINE_ID');
15800: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'LCM_SHIPMENT_LINE_ID',FALSE);

Line 15808: asn_debug.put_line('Error: ' || x_asn_type || ' is not supported as the org is pre-receive enabled ');

15804: END IF;
15805: IF (l_pre_rcv_flag = 'Y') THEN
15806: IF (x_asn_type = 'ASN') THEN
15807: --
15808: asn_debug.put_line('Error: ' || x_asn_type || ' is not supported as the org is pre-receive enabled ');
15809: x_cascaded_table(n).error_status := 'E';
15810: rcv_error_pkg.set_error_message('RCV_ASN_IMPORT_NOT_ALLOWED', x_cascaded_table(n).error_message);
15811: rcv_error_pkg.set_token('ASN_TYPE',x_asn_type);
15812: rcv_error_pkg.set_token('ORG_ID',x_cascaded_table(n).to_organization_id);

Line 15819: asn_debug.put_line('Error: lcm_shipment_line_id should not be null ');

15815: --
15816: END IF;
15817: IF (x_cascaded_table(n).lcm_shipment_line_id IS NULL) THEN
15818: --
15819: asn_debug.put_line('Error: lcm_shipment_line_id should not be null ');
15820: x_cascaded_table(n).error_status := 'E';
15821: rcv_error_pkg.set_error_message('PO_PDOI_COLUMN_NOT_NULL', x_cascaded_table(n).error_message);
15822: rcv_error_pkg.set_token('COLUMN_NAME', 'LCM_SHIPMENT_LINE_ID');
15823: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'LCM_SHIPMENT_LINE_ID',FALSE);

Line 15827: IF (g_asn_debug = 'Y') THEN

15823: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'LCM_SHIPMENT_LINE_ID',FALSE);
15824: RETURN;
15825: --
15826: END IF;
15827: IF (g_asn_debug = 'Y') THEN
15828: asn_debug.put_line('x_cascaded_table(n).lcm_shipment_line_id => ' || x_cascaded_table(n).lcm_shipment_line_id);
15829: END IF;
15830: IF (x_cascaded_table(n).unit_landed_cost IS NULL) THEN
15831: --

Line 15828: asn_debug.put_line('x_cascaded_table(n).lcm_shipment_line_id => ' || x_cascaded_table(n).lcm_shipment_line_id);

15824: RETURN;
15825: --
15826: END IF;
15827: IF (g_asn_debug = 'Y') THEN
15828: asn_debug.put_line('x_cascaded_table(n).lcm_shipment_line_id => ' || x_cascaded_table(n).lcm_shipment_line_id);
15829: END IF;
15830: IF (x_cascaded_table(n).unit_landed_cost IS NULL) THEN
15831: --
15832: asn_debug.put_line('Error: unit_landed_cost should not be null ');

Line 15832: asn_debug.put_line('Error: unit_landed_cost should not be null ');

15828: asn_debug.put_line('x_cascaded_table(n).lcm_shipment_line_id => ' || x_cascaded_table(n).lcm_shipment_line_id);
15829: END IF;
15830: IF (x_cascaded_table(n).unit_landed_cost IS NULL) THEN
15831: --
15832: asn_debug.put_line('Error: unit_landed_cost should not be null ');
15833: x_cascaded_table(n).error_status := 'E';
15834: rcv_error_pkg.set_error_message('PO_PDOI_COLUMN_NOT_NULL', x_cascaded_table(n).error_message);
15835: rcv_error_pkg.set_token('COLUMN_NAME', 'UNIT_LANDED_COST');
15836: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'UNIT_LANDED_COST',FALSE);

Line 15840: IF (g_asn_debug = 'Y') THEN

15836: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'UNIT_LANDED_COST',FALSE);
15837: RETURN;
15838: --
15839: END IF;
15840: IF (g_asn_debug = 'Y') THEN
15841: asn_debug.put_line('x_cascaded_table(n).unit_landed_cost => ' || x_cascaded_table(n).unit_landed_cost);
15842: END IF;
15843: IF (x_asn_type = 'LCM') THEN /* LCM import */
15844: --

Line 15841: asn_debug.put_line('x_cascaded_table(n).unit_landed_cost => ' || x_cascaded_table(n).unit_landed_cost);

15837: RETURN;
15838: --
15839: END IF;
15840: IF (g_asn_debug = 'Y') THEN
15841: asn_debug.put_line('x_cascaded_table(n).unit_landed_cost => ' || x_cascaded_table(n).unit_landed_cost);
15842: END IF;
15843: IF (x_asn_type = 'LCM') THEN /* LCM import */
15844: --
15845: SELECT count(1)

Line 15851: asn_debug.put_line('Checking RSL: l_lsl_exists => ' || l_lsl_exists, null, 14);

15847: FROM rcv_shipment_lines
15848: WHERE lcm_shipment_line_id is not null
15849: AND lcm_shipment_line_id = x_cascaded_table(n).lcm_shipment_line_id;
15850:
15851: asn_debug.put_line('Checking RSL: l_lsl_exists => ' || l_lsl_exists, null, 14);
15852:
15853: IF (l_lsl_exists = 0) THEN
15854: SELECT count(1)
15855: INTO l_lsl_exists

Line 15862: asn_debug.put_line('Checking RTI: l_lsl_exists => ' || l_lsl_exists, null, 14);

15858: AND lcm_shipment_line_id = x_cascaded_table(n).lcm_shipment_line_id
15859: AND processing_status_code = 'RUNNING'
15860: AND interface_transaction_id <> x_cascaded_table(n).interface_transaction_id;
15861:
15862: asn_debug.put_line('Checking RTI: l_lsl_exists => ' || l_lsl_exists, null, 14);
15863: END IF;
15864:
15865: IF (l_lsl_exists > 0) THEN
15866: --

Line 15867: asn_debug.put_line('Error: Duplicate lcm_shipment_line_id');

15863: END IF;
15864:
15865: IF (l_lsl_exists > 0) THEN
15866: --
15867: asn_debug.put_line('Error: Duplicate lcm_shipment_line_id');
15868: x_cascaded_table(n).error_status := 'E';
15869: rcv_error_pkg.set_error_message('RCV_DUP_LCM_SHIPMENT_LINE', x_cascaded_table(n).error_message);
15870: rcv_error_pkg.set_token('VALUE', x_cascaded_table(n).lcm_shipment_line_id);
15871: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'LCM_SHIPMENT_LINE_ID',FALSE);

Line 15891: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);

15887: WHERE rsl.shipment_line_id = x_cascaded_table(n).shipment_line_id;
15888: --
15889: IF (l_rsl_qty <> x_cascaded_table(n).quantity) THEN
15890: --
15891: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15892: asn_debug.put_line('l_rsl_qty => ' || l_rsl_qty, null, 14);
15893: asn_debug.put_line('x_cascaded_table(n).quantity => ' || x_cascaded_table(n).quantity, null, 14);
15894: asn_debug.put_line('Error: Partial receipt not allowed');
15895: x_cascaded_table(n).error_status := 'E';

Line 15892: asn_debug.put_line('l_rsl_qty => ' || l_rsl_qty, null, 14);

15888: --
15889: IF (l_rsl_qty <> x_cascaded_table(n).quantity) THEN
15890: --
15891: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15892: asn_debug.put_line('l_rsl_qty => ' || l_rsl_qty, null, 14);
15893: asn_debug.put_line('x_cascaded_table(n).quantity => ' || x_cascaded_table(n).quantity, null, 14);
15894: asn_debug.put_line('Error: Partial receipt not allowed');
15895: x_cascaded_table(n).error_status := 'E';
15896: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);

Line 15893: asn_debug.put_line('x_cascaded_table(n).quantity => ' || x_cascaded_table(n).quantity, null, 14);

15889: IF (l_rsl_qty <> x_cascaded_table(n).quantity) THEN
15890: --
15891: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15892: asn_debug.put_line('l_rsl_qty => ' || l_rsl_qty, null, 14);
15893: asn_debug.put_line('x_cascaded_table(n).quantity => ' || x_cascaded_table(n).quantity, null, 14);
15894: asn_debug.put_line('Error: Partial receipt not allowed');
15895: x_cascaded_table(n).error_status := 'E';
15896: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15897: rcv_error_pkg.set_token('COLUMN', 'QUANTITY');

Line 15894: asn_debug.put_line('Error: Partial receipt not allowed');

15890: --
15891: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15892: asn_debug.put_line('l_rsl_qty => ' || l_rsl_qty, null, 14);
15893: asn_debug.put_line('x_cascaded_table(n).quantity => ' || x_cascaded_table(n).quantity, null, 14);
15894: asn_debug.put_line('Error: Partial receipt not allowed');
15895: x_cascaded_table(n).error_status := 'E';
15896: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15897: rcv_error_pkg.set_token('COLUMN', 'QUANTITY');
15898: rcv_error_pkg.set_token('ROI_VALUE', x_cascaded_table(n).quantity);

Line 15906: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);

15902: --
15903: END IF;
15904: IF (l_rsl_uom <> x_cascaded_table(n).unit_of_measure) THEN
15905: --
15906: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15907: asn_debug.put_line('l_rsl_uom => ' || l_rsl_uom, null, 14);
15908: asn_debug.put_line('x_cascaded_table(n).unit_of_measure => ' || x_cascaded_table(n).unit_of_measure, null, 14);
15909: asn_debug.put_line('Error: Partial receipt not allowed');
15910: x_cascaded_table(n).error_status := 'E';

Line 15907: asn_debug.put_line('l_rsl_uom => ' || l_rsl_uom, null, 14);

15903: END IF;
15904: IF (l_rsl_uom <> x_cascaded_table(n).unit_of_measure) THEN
15905: --
15906: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15907: asn_debug.put_line('l_rsl_uom => ' || l_rsl_uom, null, 14);
15908: asn_debug.put_line('x_cascaded_table(n).unit_of_measure => ' || x_cascaded_table(n).unit_of_measure, null, 14);
15909: asn_debug.put_line('Error: Partial receipt not allowed');
15910: x_cascaded_table(n).error_status := 'E';
15911: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);

Line 15908: asn_debug.put_line('x_cascaded_table(n).unit_of_measure => ' || x_cascaded_table(n).unit_of_measure, null, 14);

15904: IF (l_rsl_uom <> x_cascaded_table(n).unit_of_measure) THEN
15905: --
15906: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15907: asn_debug.put_line('l_rsl_uom => ' || l_rsl_uom, null, 14);
15908: asn_debug.put_line('x_cascaded_table(n).unit_of_measure => ' || x_cascaded_table(n).unit_of_measure, null, 14);
15909: asn_debug.put_line('Error: Partial receipt not allowed');
15910: x_cascaded_table(n).error_status := 'E';
15911: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15912: rcv_error_pkg.set_token('COLUMN', 'UNIT_OF_MEASURE');

Line 15909: asn_debug.put_line('Error: Partial receipt not allowed');

15905: --
15906: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15907: asn_debug.put_line('l_rsl_uom => ' || l_rsl_uom, null, 14);
15908: asn_debug.put_line('x_cascaded_table(n).unit_of_measure => ' || x_cascaded_table(n).unit_of_measure, null, 14);
15909: asn_debug.put_line('Error: Partial receipt not allowed');
15910: x_cascaded_table(n).error_status := 'E';
15911: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15912: rcv_error_pkg.set_token('COLUMN', 'UNIT_OF_MEASURE');
15913: rcv_error_pkg.set_token('ROI_VALUE', x_cascaded_table(n).unit_of_measure);

Line 15922: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);

15918: END IF;
15919: -- Bug 7607281
15920: IF (nvl (l_sec_rsl_qty, -99) <> nvl(x_cascaded_table(n).secondary_quantity,-99)) THEN
15921: --
15922: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15923: asn_debug.put_line('l_sec_rsl_qty => ' || l_sec_rsl_qty, null, 14);
15924: asn_debug.put_line('x_cascaded_table(n).secondary_quantity => ' || x_cascaded_table(n).secondary_quantity, null, 14);
15925: asn_debug.put_line('Error: Partial receipt not allowed');
15926: x_cascaded_table(n).error_status := 'E';

Line 15923: asn_debug.put_line('l_sec_rsl_qty => ' || l_sec_rsl_qty, null, 14);

15919: -- Bug 7607281
15920: IF (nvl (l_sec_rsl_qty, -99) <> nvl(x_cascaded_table(n).secondary_quantity,-99)) THEN
15921: --
15922: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15923: asn_debug.put_line('l_sec_rsl_qty => ' || l_sec_rsl_qty, null, 14);
15924: asn_debug.put_line('x_cascaded_table(n).secondary_quantity => ' || x_cascaded_table(n).secondary_quantity, null, 14);
15925: asn_debug.put_line('Error: Partial receipt not allowed');
15926: x_cascaded_table(n).error_status := 'E';
15927: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);

Line 15924: asn_debug.put_line('x_cascaded_table(n).secondary_quantity => ' || x_cascaded_table(n).secondary_quantity, null, 14);

15920: IF (nvl (l_sec_rsl_qty, -99) <> nvl(x_cascaded_table(n).secondary_quantity,-99)) THEN
15921: --
15922: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15923: asn_debug.put_line('l_sec_rsl_qty => ' || l_sec_rsl_qty, null, 14);
15924: asn_debug.put_line('x_cascaded_table(n).secondary_quantity => ' || x_cascaded_table(n).secondary_quantity, null, 14);
15925: asn_debug.put_line('Error: Partial receipt not allowed');
15926: x_cascaded_table(n).error_status := 'E';
15927: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15928: rcv_error_pkg.set_token('COLUMN', 'SECONDARY_QUANTITY');

Line 15925: asn_debug.put_line('Error: Partial receipt not allowed');

15921: --
15922: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15923: asn_debug.put_line('l_sec_rsl_qty => ' || l_sec_rsl_qty, null, 14);
15924: asn_debug.put_line('x_cascaded_table(n).secondary_quantity => ' || x_cascaded_table(n).secondary_quantity, null, 14);
15925: asn_debug.put_line('Error: Partial receipt not allowed');
15926: x_cascaded_table(n).error_status := 'E';
15927: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15928: rcv_error_pkg.set_token('COLUMN', 'SECONDARY_QUANTITY');
15929: rcv_error_pkg.set_token('ROI_VALUE', x_cascaded_table(n).secondary_quantity);

Line 15938: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);

15934: END IF;
15935: --
15936: IF (nvl(l_sec_rsl_uom,'-99') <> nvl(x_cascaded_table(n).secondary_unit_of_measure,'-99')) THEN
15937: --
15938: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15939: asn_debug.put_line('l_sec_rsl_uom => ' || l_sec_rsl_uom, null, 14);
15940: asn_debug.put_line('x_cascaded_table(n).secondary_unit_of_measure => ' || x_cascaded_table(n).secondary_unit_of_measure, null, 14);
15941: asn_debug.put_line('Error: Partial receipt not allowed');
15942: x_cascaded_table(n).error_status := 'E';

Line 15939: asn_debug.put_line('l_sec_rsl_uom => ' || l_sec_rsl_uom, null, 14);

15935: --
15936: IF (nvl(l_sec_rsl_uom,'-99') <> nvl(x_cascaded_table(n).secondary_unit_of_measure,'-99')) THEN
15937: --
15938: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15939: asn_debug.put_line('l_sec_rsl_uom => ' || l_sec_rsl_uom, null, 14);
15940: asn_debug.put_line('x_cascaded_table(n).secondary_unit_of_measure => ' || x_cascaded_table(n).secondary_unit_of_measure, null, 14);
15941: asn_debug.put_line('Error: Partial receipt not allowed');
15942: x_cascaded_table(n).error_status := 'E';
15943: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);

Line 15940: asn_debug.put_line('x_cascaded_table(n).secondary_unit_of_measure => ' || x_cascaded_table(n).secondary_unit_of_measure, null, 14);

15936: IF (nvl(l_sec_rsl_uom,'-99') <> nvl(x_cascaded_table(n).secondary_unit_of_measure,'-99')) THEN
15937: --
15938: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15939: asn_debug.put_line('l_sec_rsl_uom => ' || l_sec_rsl_uom, null, 14);
15940: asn_debug.put_line('x_cascaded_table(n).secondary_unit_of_measure => ' || x_cascaded_table(n).secondary_unit_of_measure, null, 14);
15941: asn_debug.put_line('Error: Partial receipt not allowed');
15942: x_cascaded_table(n).error_status := 'E';
15943: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15944: rcv_error_pkg.set_token('COLUMN', 'SECONDARY_UNIT_OF_MEASURE');

Line 15941: asn_debug.put_line('Error: Partial receipt not allowed');

15937: --
15938: asn_debug.put_line('x_cascaded_table(n).shipment_line_id => ' || x_cascaded_table(n).shipment_line_id, null, 14);
15939: asn_debug.put_line('l_sec_rsl_uom => ' || l_sec_rsl_uom, null, 14);
15940: asn_debug.put_line('x_cascaded_table(n).secondary_unit_of_measure => ' || x_cascaded_table(n).secondary_unit_of_measure, null, 14);
15941: asn_debug.put_line('Error: Partial receipt not allowed');
15942: x_cascaded_table(n).error_status := 'E';
15943: rcv_error_pkg.set_error_message('RCV_INVALID_ROI_VALUE', x_cascaded_table(n).error_message);
15944: rcv_error_pkg.set_token('COLUMN', 'SECONDARY_UNIT_OF_MEASURE');
15945: rcv_error_pkg.set_token('ROI_VALUE', x_cascaded_table(n).secondary_unit_of_measure);

Line 15957: IF (g_asn_debug = 'Y') THEN

15953: INTO l_po_currency, l_po_rate_type, l_po_rate_date, l_po_rate
15954: FROM po_headers_all
15955: WHERE po_header_id = x_cascaded_table(n).po_header_id;
15956:
15957: IF (g_asn_debug = 'Y') THEN
15958: asn_debug.put_line('l_po_currency : ' || l_po_currency);
15959: asn_debug.put_line('l_po_rate_type: ' || l_po_rate_type);
15960: asn_debug.put_line('l_po_rate_date: ' || l_po_rate_date);
15961: asn_debug.put_line('l_po_rate : ' || l_po_rate);

Line 15958: asn_debug.put_line('l_po_currency : ' || l_po_currency);

15954: FROM po_headers_all
15955: WHERE po_header_id = x_cascaded_table(n).po_header_id;
15956:
15957: IF (g_asn_debug = 'Y') THEN
15958: asn_debug.put_line('l_po_currency : ' || l_po_currency);
15959: asn_debug.put_line('l_po_rate_type: ' || l_po_rate_type);
15960: asn_debug.put_line('l_po_rate_date: ' || l_po_rate_date);
15961: asn_debug.put_line('l_po_rate : ' || l_po_rate);
15962: END IF;

Line 15959: asn_debug.put_line('l_po_rate_type: ' || l_po_rate_type);

15955: WHERE po_header_id = x_cascaded_table(n).po_header_id;
15956:
15957: IF (g_asn_debug = 'Y') THEN
15958: asn_debug.put_line('l_po_currency : ' || l_po_currency);
15959: asn_debug.put_line('l_po_rate_type: ' || l_po_rate_type);
15960: asn_debug.put_line('l_po_rate_date: ' || l_po_rate_date);
15961: asn_debug.put_line('l_po_rate : ' || l_po_rate);
15962: END IF;
15963:

Line 15960: asn_debug.put_line('l_po_rate_date: ' || l_po_rate_date);

15956:
15957: IF (g_asn_debug = 'Y') THEN
15958: asn_debug.put_line('l_po_currency : ' || l_po_currency);
15959: asn_debug.put_line('l_po_rate_type: ' || l_po_rate_type);
15960: asn_debug.put_line('l_po_rate_date: ' || l_po_rate_date);
15961: asn_debug.put_line('l_po_rate : ' || l_po_rate);
15962: END IF;
15963:
15964: x_cascaded_table(n).currency_code := l_po_currency;

Line 15961: asn_debug.put_line('l_po_rate : ' || l_po_rate);

15957: IF (g_asn_debug = 'Y') THEN
15958: asn_debug.put_line('l_po_currency : ' || l_po_currency);
15959: asn_debug.put_line('l_po_rate_type: ' || l_po_rate_type);
15960: asn_debug.put_line('l_po_rate_date: ' || l_po_rate_date);
15961: asn_debug.put_line('l_po_rate : ' || l_po_rate);
15962: END IF;
15963:
15964: x_cascaded_table(n).currency_code := l_po_currency;
15965: x_cascaded_table(n).currency_conversion_type := l_po_rate_type;

Line 15989: asn_debug.put_line('x_cascaded_table(n).currency_conversion_date : ' || x_cascaded_table(n).currency_conversion_date);

15985: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'SECONDARY_UNIT_OF_MEASURE',FALSE);
15986: RETURN;
15987: END IF;
15988:
15989: asn_debug.put_line('x_cascaded_table(n).currency_conversion_date : ' || x_cascaded_table(n).currency_conversion_date);
15990: asn_debug.put_line('l_lcm_date returned by INL API : ' || l_lcm_date);
15991: x_cascaded_table(n).currency_conversion_date := l_lcm_date;
15992:
15993: IF (l_po_rate_type IS NOT NULL) THEN

Line 15990: asn_debug.put_line('l_lcm_date returned by INL API : ' || l_lcm_date);

15986: RETURN;
15987: END IF;
15988:
15989: asn_debug.put_line('x_cascaded_table(n).currency_conversion_date : ' || x_cascaded_table(n).currency_conversion_date);
15990: asn_debug.put_line('l_lcm_date returned by INL API : ' || l_lcm_date);
15991: x_cascaded_table(n).currency_conversion_date := l_lcm_date;
15992:
15993: IF (l_po_rate_type IS NOT NULL) THEN
15994:

Line 16003: asn_debug.put_line('x_cascaded_table(n).currency_conversion_rate : ' || x_cascaded_table(n).currency_conversion_rate);

15999: WHERE line_location_id = x_cascaded_table(n).po_line_location_id);
16000:
16001: l_rate := gl_currency_api.get_rate(v_sobid, l_po_currency, l_lcm_date, l_po_rate_type);
16002:
16003: asn_debug.put_line('x_cascaded_table(n).currency_conversion_rate : ' || x_cascaded_table(n).currency_conversion_rate);
16004: asn_debug.put_line('l_rate calculated : ' || l_rate);
16005:
16006: x_cascaded_table(n).currency_conversion_rate := l_rate;
16007: END IF;

Line 16004: asn_debug.put_line('l_rate calculated : ' || l_rate);

16000:
16001: l_rate := gl_currency_api.get_rate(v_sobid, l_po_currency, l_lcm_date, l_po_rate_type);
16002:
16003: asn_debug.put_line('x_cascaded_table(n).currency_conversion_rate : ' || x_cascaded_table(n).currency_conversion_rate);
16004: asn_debug.put_line('l_rate calculated : ' || l_rate);
16005:
16006: x_cascaded_table(n).currency_conversion_rate := l_rate;
16007: END IF;
16008: ELSE

Line 16012: asn_debug.put_line('l_rate_override => ' || l_rate_override, null, 14);

16008: ELSE
16009: x_cascaded_table(n).currency_conversion_date := l_po_rate_date;
16010:
16011: l_rate_override := NVL(fnd_profile.value('ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE'), 'N');
16012: asn_debug.put_line('l_rate_override => ' || l_rate_override, null, 14);
16013:
16014: IF (l_rate_override = 'N' OR x_cascaded_table(n).currency_conversion_rate IS NULL) THEN
16015: x_cascaded_table(n).currency_conversion_rate := l_po_rate;
16016: END IF;

Line 16025: asn_debug.put_line('Error: Non-lcm shipment line cannot be attached to an LCM shipment');

16021: END IF;
16022: ELSE
16023: IF (x_asn_type = 'LCM') THEN
16024: --
16025: asn_debug.put_line('Error: Non-lcm shipment line cannot be attached to an LCM shipment');
16026: x_cascaded_table(n).error_status := 'E';
16027: rcv_error_pkg.set_error_message('RCV_INVALID_LCM_SHIPMENT', x_cascaded_table(n).error_message);
16028: rcv_error_pkg.set_token('SHIPMENT', x_header_record.header_record.shipment_num);
16029: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'PO_LINE_LOCATION_ID',FALSE);

Line 16035: asn_debug.put_line('Error: lcm_shipment_line_id should be null for a non-lcm shipment');

16031: --
16032: END IF;
16033: IF (x_cascaded_table(n).lcm_shipment_line_id IS NOT NULL) THEN
16034: --
16035: asn_debug.put_line('Error: lcm_shipment_line_id should be null for a non-lcm shipment');
16036: x_cascaded_table(n).error_status := 'E';
16037: rcv_error_pkg.set_error_message('PO_PDOI_COLUMN_NULL', x_cascaded_table(n).error_message);
16038: rcv_error_pkg.set_token('COLUMN_NAME', 'LCM_SHIPMENT_LINE_ID');
16039: rcv_error_pkg.set_token('VALUE', x_cascaded_table(n).lcm_shipment_line_id);

Line 16047: IF (g_asn_debug = 'Y') THEN

16043: END IF;
16044:
16045: END IF;
16046:
16047: IF (g_asn_debug = 'Y') THEN
16048: asn_debug.put_line('Exitting validate_lcm_line');
16049: END IF;
16050:
16051: EXCEPTION

Line 16048: asn_debug.put_line('Exitting validate_lcm_line');

16044:
16045: END IF;
16046:
16047: IF (g_asn_debug = 'Y') THEN
16048: asn_debug.put_line('Exitting validate_lcm_line');
16049: END IF;
16050:
16051: EXCEPTION
16052: WHEN OTHERS THEN

Line 16058: IF (g_asn_debug = 'Y') THEN

16054: rcv_error_pkg.set_sql_error_message('validate_lcm_line' , '000');
16055: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
16056: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'LCM_SHIPMENT_LINE_ID',FALSE);
16057:
16058: IF (g_asn_debug = 'Y') THEN
16059: asn_debug.put_line('Unexpected exception in validate_lcm_line: ' || SQLERRM);
16060: END IF;
16061:
16062: END validate_lcm_line;

Line 16059: asn_debug.put_line('Unexpected exception in validate_lcm_line: ' || SQLERRM);

16055: x_cascaded_table(n).error_message := rcv_error_pkg.get_last_message;
16056: rcv_error_pkg.log_interface_message(x_cascaded_table(n).error_status,'LCM_SHIPMENT_LINE_ID',FALSE);
16057:
16058: IF (g_asn_debug = 'Y') THEN
16059: asn_debug.put_line('Unexpected exception in validate_lcm_line: ' || SQLERRM);
16060: END IF;
16061:
16062: END validate_lcm_line;
16063: