2: /* $Header: PO_TAX_INTERFACE_PVT.plb 120.59.12010000.3 2008/11/06 08:57:42 cvardia ship $ */
3: G_PACKAGE_NAME CONSTANT VARCHAR2(30) := 'PO_TAX_INTERFACE_PVT';
4:
5: -- Logging global constants
6: D_PACKAGE_BASE CONSTANT VARCHAR2(100) := PO_LOG.get_package_base(G_PACKAGE_NAME);
7:
8: -- Private procedure declarations
9: PROCEDURE populate_zx_headers_with_po(p_po_header_id_tbl IN PO_TBL_NUMBER,
10: p_calling_program IN VARCHAR2);
125: p_calling_program IN VARCHAR2,
126: x_return_status OUT NOCOPY VARCHAR2
127: ) IS
128: l_module_name CONSTANT VARCHAR2(100) := 'CALCULATE_TAX';
129: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
130: D_PACKAGE_BASE, l_module_name);
131: d_progress NUMBER;
132: l_msg_count NUMBER;
133: l_msg_data VARCHAR2(1000);
148: -- \ /
149:
150: SAVEPOINT calculate_tax_savepoint;
151:
152: IF (PO_LOG.d_proc) THEN
153: PO_LOG.proc_begin(d_module_base);
154: PO_LOG.proc_begin(d_module_base, 'p_po_header_id_tbl', p_po_header_id_tbl);
155: PO_LOG.proc_begin(d_module_base, 'p_po_release_id_tbl', p_po_release_id_tbl);
156: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
149:
150: SAVEPOINT calculate_tax_savepoint;
151:
152: IF (PO_LOG.d_proc) THEN
153: PO_LOG.proc_begin(d_module_base);
154: PO_LOG.proc_begin(d_module_base, 'p_po_header_id_tbl', p_po_header_id_tbl);
155: PO_LOG.proc_begin(d_module_base, 'p_po_release_id_tbl', p_po_release_id_tbl);
156: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
157: END IF;
150: SAVEPOINT calculate_tax_savepoint;
151:
152: IF (PO_LOG.d_proc) THEN
153: PO_LOG.proc_begin(d_module_base);
154: PO_LOG.proc_begin(d_module_base, 'p_po_header_id_tbl', p_po_header_id_tbl);
155: PO_LOG.proc_begin(d_module_base, 'p_po_release_id_tbl', p_po_release_id_tbl);
156: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
157: END IF;
158:
151:
152: IF (PO_LOG.d_proc) THEN
153: PO_LOG.proc_begin(d_module_base);
154: PO_LOG.proc_begin(d_module_base, 'p_po_header_id_tbl', p_po_header_id_tbl);
155: PO_LOG.proc_begin(d_module_base, 'p_po_release_id_tbl', p_po_release_id_tbl);
156: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
157: END IF;
158:
159: d_progress := 0;
152: IF (PO_LOG.d_proc) THEN
153: PO_LOG.proc_begin(d_module_base);
154: PO_LOG.proc_begin(d_module_base, 'p_po_header_id_tbl', p_po_header_id_tbl);
155: PO_LOG.proc_begin(d_module_base, 'p_po_release_id_tbl', p_po_release_id_tbl);
156: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
157: END IF;
158:
159: d_progress := 0;
160:
169: initialize_global_error_record();
170: d_progress := 30;
171: SELECT po_session_gt_s.NEXTVAL INTO l_po_session_gt_key FROM dual;
172:
173: IF PO_LOG.d_stmt THEN
174: PO_LOG.stmt(d_module_base,d_progress,'l_po_session_gt_key='||l_po_session_gt_key);
175: END IF;
176:
177: d_progress := 40;
170: d_progress := 30;
171: SELECT po_session_gt_s.NEXTVAL INTO l_po_session_gt_key FROM dual;
172:
173: IF PO_LOG.d_stmt THEN
174: PO_LOG.stmt(d_module_base,d_progress,'l_po_session_gt_key='||l_po_session_gt_key);
175: END IF;
176:
177: d_progress := 40;
178: IF PO_LOG.d_stmt THEN
174: PO_LOG.stmt(d_module_base,d_progress,'l_po_session_gt_key='||l_po_session_gt_key);
175: END IF;
176:
177: d_progress := 40;
178: IF PO_LOG.d_stmt THEN
179: PO_LOG.stmt(d_module_base,d_progress,'initial values of tax_attribute_update_codes');
180: log_po_tauc(d_module_base,d_progress,p_po_header_id_tbl);
181: log_rel_tauc(d_module_base,d_progress,p_po_release_id_tbl);
182: END IF;
175: END IF;
176:
177: d_progress := 40;
178: IF PO_LOG.d_stmt THEN
179: PO_LOG.stmt(d_module_base,d_progress,'initial values of tax_attribute_update_codes');
180: log_po_tauc(d_module_base,d_progress,p_po_header_id_tbl);
181: log_rel_tauc(d_module_base,d_progress,p_po_release_id_tbl);
182: END IF;
183: -- Percolate header and line level tax_attribute_update_code values to
229: pll.po_release_id = p_po_release_id_tbl(i)
230: AND (pll.tax_attribute_update_code IS NULL
231: OR pll.tax_attribute_update_code = 'DIST_DELETE');
232:
233: IF PO_LOG.d_stmt THEN
234: PO_LOG.stmt(d_module_base,d_progress,'tax_attribute_update_codes after denormalization');
235: log_po_tauc(d_module_base,d_progress,p_po_header_id_tbl);
236: log_rel_tauc(d_module_base,d_progress,p_po_release_id_tbl);
237: END IF;
230: AND (pll.tax_attribute_update_code IS NULL
231: OR pll.tax_attribute_update_code = 'DIST_DELETE');
232:
233: IF PO_LOG.d_stmt THEN
234: PO_LOG.stmt(d_module_base,d_progress,'tax_attribute_update_codes after denormalization');
235: log_po_tauc(d_module_base,d_progress,p_po_header_id_tbl);
236: log_rel_tauc(d_module_base,d_progress,p_po_release_id_tbl);
237: END IF;
238:
253: BEGIN
254: SELECT COUNT(1) INTO l_count FROM zx_transaction_lines_gt;
255: EXCEPTION WHEN OTHERS THEN
256: l_count := 0;
257: IF PO_LOG.d_stmt THEN
258: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_transaction_lines_gt');
259: END IF;
260: END;
261:
254: SELECT COUNT(1) INTO l_count FROM zx_transaction_lines_gt;
255: EXCEPTION WHEN OTHERS THEN
256: l_count := 0;
257: IF PO_LOG.d_stmt THEN
258: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_transaction_lines_gt');
259: END IF;
260: END;
261:
262: IF PO_LOG.d_stmt THEN
258: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_transaction_lines_gt');
259: END IF;
260: END;
261:
262: IF PO_LOG.d_stmt THEN
263: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_transaction_lines_gt='||l_count);
264: END IF;
265:
266: IF (l_count <> 0) THEN
259: END IF;
260: END;
261:
262: IF PO_LOG.d_stmt THEN
263: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_transaction_lines_gt='||l_count);
264: END IF;
265:
266: IF (l_count <> 0) THEN
267:
266: IF (l_count <> 0) THEN
267:
268: d_progress := 110;
269: -- Log table parameters
270: IF PO_LOG.d_stmt THEN
271: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before eTax default/redefault');
272: log_header_tax_attributes(d_module_base,d_progress);
273: log_line_tax_attributes(d_module_base,d_progress);
274: END IF;
267:
268: d_progress := 110;
269: -- Log table parameters
270: IF PO_LOG.d_stmt THEN
271: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before eTax default/redefault');
272: log_header_tax_attributes(d_module_base,d_progress);
273: log_line_tax_attributes(d_module_base,d_progress);
274: END IF;
275:
280: -- For PDOI, eTax needs to do extra validations since data is entered by
281: -- user in interface tables. So call validate_and_default_tax_attribs
282: -- Only need to default, not redefault because through PDOI POs can only
283: -- be added to, not updated
284: IF PO_LOG.d_stmt THEN
285: PO_LOG.stmt(d_module_base,d_progress,'Calling validate_and_default_tax_attr');
286: END IF;
287: ZX_API_PUB.validate_and_default_tax_attr(
288: p_api_version => 1.0,
281: -- user in interface tables. So call validate_and_default_tax_attribs
282: -- Only need to default, not redefault because through PDOI POs can only
283: -- be added to, not updated
284: IF PO_LOG.d_stmt THEN
285: PO_LOG.stmt(d_module_base,d_progress,'Calling validate_and_default_tax_attr');
286: END IF;
287: ZX_API_PUB.validate_and_default_tax_attr(
288: p_api_version => 1.0,
289: p_init_msg_list => FND_API.G_TRUE,
294: x_msg_data => l_msg_data
295: );
296:
297: d_progress := 130;
298: IF PO_LOG.d_stmt THEN
299: PO_LOG.stmt(d_module_base,d_progress,'validate_and_default_tax_attr returned with status '||l_return_status);
300: END IF;
301:
302: -- Raise if any unexpected error
295: );
296:
297: d_progress := 130;
298: IF PO_LOG.d_stmt THEN
299: PO_LOG.stmt(d_module_base,d_progress,'validate_and_default_tax_attr returned with status '||l_return_status);
300: END IF;
301:
302: -- Raise if any unexpected error
303: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
359:
360: BEGIN
361: SELECT COUNT(1) INTO l_count FROM zx_validation_errors_gt;
362: EXCEPTION WHEN OTHERS THEN
363: IF PO_LOG.d_stmt THEN
364: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_validation_errors_gt');
365: END IF;
366: l_count := 0;
367: END;
360: BEGIN
361: SELECT COUNT(1) INTO l_count FROM zx_validation_errors_gt;
362: EXCEPTION WHEN OTHERS THEN
363: IF PO_LOG.d_stmt THEN
364: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_validation_errors_gt');
365: END IF;
366: l_count := 0;
367: END;
368:
365: END IF;
366: l_count := 0;
367: END;
368:
369: IF PO_LOG.d_stmt THEN
370: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_validation_errors_gt '||l_count);
371: END IF;
372:
373: END IF;
366: l_count := 0;
367: END;
368:
369: IF PO_LOG.d_stmt THEN
370: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_validation_errors_gt '||l_count);
371: END IF;
372:
373: END IF;
374:
387: ELSIF (p_calling_program <> 'COPY_DOCUMENT') THEN
388: d_progress := 180;
389: -- This API cannot handle the presence of COPY_AND_CREATE line level
390: -- actions so call is prevented if calling program is COPY_DOCUMENT
391: IF PO_LOG.d_stmt THEN
392: PO_LOG.stmt(d_module_base,d_progress,'Calling get_default_tax_det_attribs');
393: END IF;
394: ZX_API_PUB.get_default_tax_det_attribs(
395: p_api_version => 1.0,
388: d_progress := 180;
389: -- This API cannot handle the presence of COPY_AND_CREATE line level
390: -- actions so call is prevented if calling program is COPY_DOCUMENT
391: IF PO_LOG.d_stmt THEN
392: PO_LOG.stmt(d_module_base,d_progress,'Calling get_default_tax_det_attribs');
393: END IF;
394: ZX_API_PUB.get_default_tax_det_attribs(
395: p_api_version => 1.0,
396: p_init_msg_list => FND_API.G_TRUE,
401: x_msg_data => l_msg_data
402: );
403:
404: d_progress := 190;
405: IF PO_LOG.d_stmt THEN
406: PO_LOG.stmt(d_module_base,d_progress,'get_default_tax_det_attribs returned with status '||l_return_status);
407: END IF;
408:
409: -- This API cannot give expected errors. However raise unexpected errors
402: );
403:
404: d_progress := 190;
405: IF PO_LOG.d_stmt THEN
406: PO_LOG.stmt(d_module_base,d_progress,'get_default_tax_det_attribs returned with status '||l_return_status);
407: END IF;
408:
409: -- This API cannot give expected errors. However raise unexpected errors
410: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
430:
431: d_progress := 210;
432:
433: -- Log table parameters
434: IF PO_LOG.d_stmt THEN
435: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before calculate_tax');
436: log_header_tax_attributes(d_module_base,d_progress);
437: log_line_tax_attributes(d_module_base,d_progress);
438: END IF;
431: d_progress := 210;
432:
433: -- Log table parameters
434: IF PO_LOG.d_stmt THEN
435: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before calculate_tax');
436: log_header_tax_attributes(d_module_base,d_progress);
437: log_line_tax_attributes(d_module_base,d_progress);
438: END IF;
439:
447: x_msg_data => l_msg_data
448: );
449:
450: d_progress := 220;
451: IF PO_LOG.d_stmt THEN
452: PO_LOG.stmt(d_module_base,d_progress,'calculate_tax returned with status '||l_return_status);
453: END IF;
454:
455: -- Raise if any unexpected error
448: );
449:
450: d_progress := 220;
451: IF PO_LOG.d_stmt THEN
452: PO_LOG.stmt(d_module_base,d_progress,'calculate_tax returned with status '||l_return_status);
453: END IF;
454:
455: -- Raise if any unexpected error
456: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
511:
512: BEGIN
513: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
514: EXCEPTION WHEN OTHERS THEN
515: IF PO_LOG.d_stmt THEN
516: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
517: END IF;
518: l_count := 0;
519: END;
512: BEGIN
513: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
514: EXCEPTION WHEN OTHERS THEN
515: IF PO_LOG.d_stmt THEN
516: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
517: END IF;
518: l_count := 0;
519: END;
520:
517: END IF;
518: l_count := 0;
519: END;
520:
521: IF PO_LOG.d_stmt THEN
522: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
523: END IF;
524:
525: END IF;
518: l_count := 0;
519: END;
520:
521: IF PO_LOG.d_stmt THEN
522: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
523: END IF;
524:
525: END IF;
526:
563: BEGIN
564: SELECT COUNT(1) INTO l_count FROM zx_itm_distributions_gt;
565: EXCEPTION WHEN OTHERS THEN
566: l_count := 0;
567: IF PO_LOG.d_stmt THEN
568: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_itm_distributions_gt');
569: END IF;
570: END;
571:
564: SELECT COUNT(1) INTO l_count FROM zx_itm_distributions_gt;
565: EXCEPTION WHEN OTHERS THEN
566: l_count := 0;
567: IF PO_LOG.d_stmt THEN
568: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_itm_distributions_gt');
569: END IF;
570: END;
571:
572: IF PO_LOG.d_stmt THEN
568: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_itm_distributions_gt');
569: END IF;
570: END;
571:
572: IF PO_LOG.d_stmt THEN
573: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_itm_distributions_gt='||l_count);
574: END IF;
575:
576: IF (l_count <> 0) THEN
569: END IF;
570: END;
571:
572: IF PO_LOG.d_stmt THEN
573: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_itm_distributions_gt='||l_count);
574: END IF;
575:
576: IF (l_count <> 0) THEN
577: d_progress := 320;
613:
614: d_progress := 330;
615:
616: -- Log table parameters
617: IF PO_LOG.d_stmt THEN
618: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
619: log_header_tax_attributes(d_module_base,d_progress);
620: log_line_tax_attributes(d_module_base,d_progress);
621: log_dist_tax_attributes(d_module_base,d_progress);
614: d_progress := 330;
615:
616: -- Log table parameters
617: IF PO_LOG.d_stmt THEN
618: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
619: log_header_tax_attributes(d_module_base,d_progress);
620: log_line_tax_attributes(d_module_base,d_progress);
621: log_dist_tax_attributes(d_module_base,d_progress);
622: END IF;
631: x_msg_data => l_msg_data
632: );
633:
634: d_progress := 340;
635: IF PO_LOG.d_stmt THEN
636: PO_LOG.stmt(d_module_base,d_progress,'determine_recovery returned with status '||l_return_status);
637: END IF;
638:
639: -- Raise if any unexpected error
632: );
633:
634: d_progress := 340;
635: IF PO_LOG.d_stmt THEN
636: PO_LOG.stmt(d_module_base,d_progress,'determine_recovery returned with status '||l_return_status);
637: END IF;
638:
639: -- Raise if any unexpected error
640: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
696: d_progress := 370;
697: BEGIN
698: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
699: EXCEPTION WHEN OTHERS THEN
700: IF PO_LOG.d_stmt THEN
701: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
702: END IF;
703: l_count := 0;
704: END;
697: BEGIN
698: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
699: EXCEPTION WHEN OTHERS THEN
700: IF PO_LOG.d_stmt THEN
701: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
702: END IF;
703: l_count := 0;
704: END;
705:
702: END IF;
703: l_count := 0;
704: END;
705:
706: IF PO_LOG.d_stmt THEN
707: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
708: END IF;
709:
710: -- Bug 5169449. Removed deletions from headers and lines gt tables
703: l_count := 0;
704: END;
705:
706: IF PO_LOG.d_stmt THEN
707: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
708: END IF;
709:
710: -- Bug 5169449. Removed deletions from headers and lines gt tables
711: -- because if the control has come till determine_recovery then the
897: WHERE psgt.num1 = pll.line_location_id
898: AND psgt.num2 = pd.po_distribution_id(+)
899: AND psgt.key = l_po_session_gt_key;
900:
901: IF PO_LOG.d_stmt THEN
902: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
903: log_global_error_record(d_module_base, d_progress);
904: END IF;
905:
898: AND psgt.num2 = pd.po_distribution_id(+)
899: AND psgt.key = l_po_session_gt_key;
900:
901: IF PO_LOG.d_stmt THEN
902: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
903: log_global_error_record(d_module_base, d_progress);
904: END IF;
905:
906: -- Bug 5363122. Wipe out ZX GT tables at the end of tax call
905:
906: -- Bug 5363122. Wipe out ZX GT tables at the end of tax call
907: wipe_zx_gt_tables();
908:
909: IF (PO_LOG.d_proc) THEN
910: PO_LOG.proc_end(d_module_base);
911: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
912: END IF;
913: d_progress := 540;
906: -- Bug 5363122. Wipe out ZX GT tables at the end of tax call
907: wipe_zx_gt_tables();
908:
909: IF (PO_LOG.d_proc) THEN
910: PO_LOG.proc_end(d_module_base);
911: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
912: END IF;
913: d_progress := 540;
914:
907: wipe_zx_gt_tables();
908:
909: IF (PO_LOG.d_proc) THEN
910: PO_LOG.proc_end(d_module_base);
911: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
912: END IF;
913: d_progress := 540;
914:
915: EXCEPTION
931: p_distribution_id => null,
932: p_distribution_num => null,
933: p_message_text => l_msg_data);
934:
935: IF (PO_LOG.d_exc) THEN
936: PO_LOG.exc(d_module_base, d_progress, l_msg_data);
937: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
938: END IF;
939:
932: p_distribution_num => null,
933: p_message_text => l_msg_data);
934:
935: IF (PO_LOG.d_exc) THEN
936: PO_LOG.exc(d_module_base, d_progress, l_msg_data);
937: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
938: END IF;
939:
940: WHEN OTHERS THEN
933: p_message_text => l_msg_data);
934:
935: IF (PO_LOG.d_exc) THEN
936: PO_LOG.exc(d_module_base, d_progress, l_msg_data);
937: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
938: END IF;
939:
940: WHEN OTHERS THEN
941: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
956: p_distribution_num => null,
957: p_message_text => d_module_base||'#'||d_progress||':'
958: ||SQLCODE || SQLERRM);
959:
960: IF (PO_LOG.d_exc) THEN
961: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
962: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
963: END IF;
964:
957: p_message_text => d_module_base||'#'||d_progress||':'
958: ||SQLCODE || SQLERRM);
959:
960: IF (PO_LOG.d_exc) THEN
961: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
962: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
963: END IF;
964:
965: END calculate_tax;
958: ||SQLCODE || SQLERRM);
959:
960: IF (PO_LOG.d_exc) THEN
961: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
962: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
963: END IF;
964:
965: END calculate_tax;
966:
1009: p_calling_program IN VARCHAR2,
1010: x_return_status OUT NOCOPY VARCHAR2
1011: ) IS
1012: l_module_name CONSTANT VARCHAR2(100) := 'CALCULATE_TAX_WRAPPER';
1013: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
1014: D_PACKAGE_BASE, l_module_name);
1015: d_progress NUMBER;
1016: l_po_header_id_tbl PO_TBL_NUMBER;
1017: l_po_release_id_tbl PO_TBL_NUMBER;
1016: l_po_header_id_tbl PO_TBL_NUMBER;
1017: l_po_release_id_tbl PO_TBL_NUMBER;
1018: BEGIN
1019:
1020: IF (PO_LOG.d_proc) THEN
1021: PO_LOG.proc_begin(d_module_base);
1022: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1023: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1024: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1017: l_po_release_id_tbl PO_TBL_NUMBER;
1018: BEGIN
1019:
1020: IF (PO_LOG.d_proc) THEN
1021: PO_LOG.proc_begin(d_module_base);
1022: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1023: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1024: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1025: END IF;
1018: BEGIN
1019:
1020: IF (PO_LOG.d_proc) THEN
1021: PO_LOG.proc_begin(d_module_base);
1022: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1023: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1024: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1025: END IF;
1026:
1019:
1020: IF (PO_LOG.d_proc) THEN
1021: PO_LOG.proc_begin(d_module_base);
1022: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1023: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1024: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1025: END IF;
1026:
1027: d_progress := 0;
1020: IF (PO_LOG.d_proc) THEN
1021: PO_LOG.proc_begin(d_module_base);
1022: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1023: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1024: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1025: END IF;
1026:
1027: d_progress := 0;
1028:
1044: x_return_status => x_return_status
1045: );
1046:
1047: d_progress := 10;
1048: IF PO_LOG.d_stmt THEN
1049: PO_LOG.stmt(d_module_base,d_progress,'PO calculate_tax returned with status '||x_return_status);
1050: END IF;
1051:
1052: IF (PO_LOG.d_proc) THEN
1045: );
1046:
1047: d_progress := 10;
1048: IF PO_LOG.d_stmt THEN
1049: PO_LOG.stmt(d_module_base,d_progress,'PO calculate_tax returned with status '||x_return_status);
1050: END IF;
1051:
1052: IF (PO_LOG.d_proc) THEN
1053: PO_LOG.proc_end(d_module_base);
1048: IF PO_LOG.d_stmt THEN
1049: PO_LOG.stmt(d_module_base,d_progress,'PO calculate_tax returned with status '||x_return_status);
1050: END IF;
1051:
1052: IF (PO_LOG.d_proc) THEN
1053: PO_LOG.proc_end(d_module_base);
1054: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1055: END IF;
1056:
1049: PO_LOG.stmt(d_module_base,d_progress,'PO calculate_tax returned with status '||x_return_status);
1050: END IF;
1051:
1052: IF (PO_LOG.d_proc) THEN
1053: PO_LOG.proc_end(d_module_base);
1054: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1055: END IF;
1056:
1057: d_progress := 20;
1050: END IF;
1051:
1052: IF (PO_LOG.d_proc) THEN
1053: PO_LOG.proc_end(d_module_base);
1054: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1055: END IF;
1056:
1057: d_progress := 20;
1058: EXCEPTION
1074: p_distribution_num => null,
1075: p_message_text => d_module_base||'#'||d_progress||':'
1076: ||SQLCODE || SQLERRM);
1077:
1078: IF (PO_LOG.d_exc) THEN
1079: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1080: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1081: END IF;
1082: END calculate_tax;
1075: p_message_text => d_module_base||'#'||d_progress||':'
1076: ||SQLCODE || SQLERRM);
1077:
1078: IF (PO_LOG.d_exc) THEN
1079: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1080: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1081: END IF;
1082: END calculate_tax;
1083:
1076: ||SQLCODE || SQLERRM);
1077:
1078: IF (PO_LOG.d_exc) THEN
1079: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1080: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1081: END IF;
1082: END calculate_tax;
1083:
1084:
1120: p_calling_program IN VARCHAR2,
1121: x_return_status OUT NOCOPY VARCHAR2
1122: ) IS
1123: l_module_name CONSTANT VARCHAR2(100) := 'CALCULATE_TAX_REQUISITION';
1124: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
1125: D_PACKAGE_BASE, l_module_name);
1126: d_progress NUMBER;
1127: l_count NUMBER;
1128: l_line_count NUMBER;
1134: BEGIN
1135:
1136: SAVEPOINT calculate_tax_req_savepoint;
1137:
1138: IF (PO_LOG.d_proc) THEN
1139: PO_LOG.proc_begin(d_module_base);
1140: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
1141: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1142: END IF;
1135:
1136: SAVEPOINT calculate_tax_req_savepoint;
1137:
1138: IF (PO_LOG.d_proc) THEN
1139: PO_LOG.proc_begin(d_module_base);
1140: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
1141: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1142: END IF;
1143:
1136: SAVEPOINT calculate_tax_req_savepoint;
1137:
1138: IF (PO_LOG.d_proc) THEN
1139: PO_LOG.proc_begin(d_module_base);
1140: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
1141: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1142: END IF;
1143:
1144: d_progress := 0;
1137:
1138: IF (PO_LOG.d_proc) THEN
1139: PO_LOG.proc_begin(d_module_base);
1140: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
1141: PO_LOG.proc_begin(d_module_base, 'p_calling_program', p_calling_program);
1142: END IF;
1143:
1144: d_progress := 0;
1145:
1155: initialize_zx_gt_tables(); -- Wipe ZX GT tables clean
1156: d_progress := 20;
1157: initialize_global_error_record();
1158:
1159: IF PO_LOG.d_stmt THEN
1160: PO_LOG.stmt(d_module_base,d_progress,'initial values of tax_attribute_update_codes');
1161: log_req_tauc(d_module_base,d_progress,p_requisition_header_id);
1162: END IF;
1163:
1156: d_progress := 20;
1157: initialize_global_error_record();
1158:
1159: IF PO_LOG.d_stmt THEN
1160: PO_LOG.stmt(d_module_base,d_progress,'initial values of tax_attribute_update_codes');
1161: log_req_tauc(d_module_base,d_progress,p_requisition_header_id);
1162: END IF;
1163:
1164: -- Populate ZX headers and lines GT tables with transaction data
1173: BEGIN
1174: SELECT COUNT(1) INTO l_line_count FROM zx_transaction_lines_gt;
1175: EXCEPTION WHEN OTHERS THEN
1176: l_line_count := 0;
1177: IF PO_LOG.d_stmt THEN
1178: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_transaction_lines_gt');
1179: END IF;
1180: END;
1181:
1174: SELECT COUNT(1) INTO l_line_count FROM zx_transaction_lines_gt;
1175: EXCEPTION WHEN OTHERS THEN
1176: l_line_count := 0;
1177: IF PO_LOG.d_stmt THEN
1178: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_transaction_lines_gt');
1179: END IF;
1180: END;
1181:
1182: d_progress := 60;
1179: END IF;
1180: END;
1181:
1182: d_progress := 60;
1183: IF PO_LOG.d_stmt THEN
1184: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_transaction_lines_gt='||l_line_count);
1185: END IF;
1186:
1187: IF (l_line_count <> 0) THEN
1180: END;
1181:
1182: d_progress := 60;
1183: IF PO_LOG.d_stmt THEN
1184: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_transaction_lines_gt='||l_line_count);
1185: END IF;
1186:
1187: IF (l_line_count <> 0) THEN
1188: d_progress := 70;
1186:
1187: IF (l_line_count <> 0) THEN
1188: d_progress := 70;
1189: -- Log table parameters
1190: IF PO_LOG.d_stmt THEN
1191: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before eTax default/redefault');
1192: log_header_tax_attributes(d_module_base,d_progress);
1193: log_line_tax_attributes(d_module_base,d_progress);
1194: END IF;
1187: IF (l_line_count <> 0) THEN
1188: d_progress := 70;
1189: -- Log table parameters
1190: IF PO_LOG.d_stmt THEN
1191: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before eTax default/redefault');
1192: log_header_tax_attributes(d_module_base,d_progress);
1193: log_line_tax_attributes(d_module_base,d_progress);
1194: END IF;
1195:
1210: x_msg_data => l_msg_data
1211: );
1212:
1213: d_progress := 90;
1214: IF PO_LOG.d_stmt THEN
1215: PO_LOG.stmt(d_module_base,d_progress,'validate_and_default_tax_attr returned with status '||l_return_status);
1216: END IF;
1217:
1218: -- Raise if any unexpected error
1211: );
1212:
1213: d_progress := 90;
1214: IF PO_LOG.d_stmt THEN
1215: PO_LOG.stmt(d_module_base,d_progress,'validate_and_default_tax_attr returned with status '||l_return_status);
1216: END IF;
1217:
1218: -- Raise if any unexpected error
1219: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
1247: d_progress := 110;
1248: BEGIN
1249: SELECT COUNT(1) INTO l_count FROM zx_validation_errors_gt;
1250: EXCEPTION WHEN OTHERS THEN
1251: IF PO_LOG.d_stmt THEN
1252: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_validation_errors_gt');
1253: END IF;
1254: l_count := 0;
1255: END;
1248: BEGIN
1249: SELECT COUNT(1) INTO l_count FROM zx_validation_errors_gt;
1250: EXCEPTION WHEN OTHERS THEN
1251: IF PO_LOG.d_stmt THEN
1252: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_validation_errors_gt');
1253: END IF;
1254: l_count := 0;
1255: END;
1256:
1253: END IF;
1254: l_count := 0;
1255: END;
1256:
1257: IF PO_LOG.d_stmt THEN
1258: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_validation_errors_gt '||l_count);
1259: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1260: END IF;
1261:
1254: l_count := 0;
1255: END;
1256:
1257: IF PO_LOG.d_stmt THEN
1258: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_validation_errors_gt '||l_count);
1259: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1260: END IF;
1261:
1262: d_progress := 120;
1255: END;
1256:
1257: IF PO_LOG.d_stmt THEN
1258: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_validation_errors_gt '||l_count);
1259: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1260: END IF;
1261:
1262: d_progress := 120;
1263: RAISE FND_API.G_EXC_ERROR;
1275: x_msg_data => l_msg_data
1276: );
1277:
1278: d_progress := 140;
1279: IF PO_LOG.d_stmt THEN
1280: PO_LOG.stmt(d_module_base,d_progress,'get_default_tax_det_attribs returned with status '||l_return_status);
1281: END IF;
1282:
1283: -- This API cannot give expected errors. However raise unexpected errors
1276: );
1277:
1278: d_progress := 140;
1279: IF PO_LOG.d_stmt THEN
1280: PO_LOG.stmt(d_module_base,d_progress,'get_default_tax_det_attribs returned with status '||l_return_status);
1281: END IF;
1282:
1283: -- This API cannot give expected errors. However raise unexpected errors
1284: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
1302:
1303: d_progress := 160;
1304:
1305: -- Log table parameters
1306: IF PO_LOG.d_stmt THEN
1307: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before calculate_tax');
1308: log_header_tax_attributes(d_module_base,d_progress);
1309: log_line_tax_attributes(d_module_base,d_progress);
1310: END IF;
1303: d_progress := 160;
1304:
1305: -- Log table parameters
1306: IF PO_LOG.d_stmt THEN
1307: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before calculate_tax');
1308: log_header_tax_attributes(d_module_base,d_progress);
1309: log_line_tax_attributes(d_module_base,d_progress);
1310: END IF;
1311:
1319: x_msg_data => l_msg_data
1320: );
1321:
1322: d_progress := 170;
1323: IF PO_LOG.d_stmt THEN
1324: PO_LOG.stmt(d_module_base,d_progress,'calculate_tax returned with status '||l_return_status);
1325: END IF;
1326:
1327:
1320: );
1321:
1322: d_progress := 170;
1323: IF PO_LOG.d_stmt THEN
1324: PO_LOG.stmt(d_module_base,d_progress,'calculate_tax returned with status '||l_return_status);
1325: END IF;
1326:
1327:
1328: -- Raise if any unexpected error
1357:
1358: BEGIN
1359: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
1360: EXCEPTION WHEN OTHERS THEN
1361: IF PO_LOG.d_stmt THEN
1362: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
1363: END IF;
1364: l_count := 0;
1365: END;
1358: BEGIN
1359: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
1360: EXCEPTION WHEN OTHERS THEN
1361: IF PO_LOG.d_stmt THEN
1362: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
1363: END IF;
1364: l_count := 0;
1365: END;
1366:
1363: END IF;
1364: l_count := 0;
1365: END;
1366:
1367: IF PO_LOG.d_stmt THEN
1368: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1369: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1370: END IF;
1371:
1364: l_count := 0;
1365: END;
1366:
1367: IF PO_LOG.d_stmt THEN
1368: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1369: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1370: END IF;
1371:
1372: d_progress := 190;
1365: END;
1366:
1367: IF PO_LOG.d_stmt THEN
1368: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1369: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1370: END IF;
1371:
1372: d_progress := 190;
1373: RAISE FND_API.G_EXC_ERROR;
1384: BEGIN
1385: SELECT COUNT(1) INTO l_count FROM zx_itm_distributions_gt;
1386: EXCEPTION WHEN OTHERS THEN
1387: l_count := 0;
1388: IF PO_LOG.d_stmt THEN
1389: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_itm_distributions_gt');
1390: END IF;
1391: END;
1392:
1385: SELECT COUNT(1) INTO l_count FROM zx_itm_distributions_gt;
1386: EXCEPTION WHEN OTHERS THEN
1387: l_count := 0;
1388: IF PO_LOG.d_stmt THEN
1389: PO_LOG.stmt(d_module_base,d_progress,'Exception while selecting from zx_itm_distributions_gt');
1390: END IF;
1391: END;
1392:
1393: d_progress := 220;
1390: END IF;
1391: END;
1392:
1393: d_progress := 220;
1394: IF PO_LOG.d_stmt THEN
1395: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_itm_distributions_gt='||l_count);
1396: END IF;
1397:
1398: IF (l_count <> 0) THEN
1391: END;
1392:
1393: d_progress := 220;
1394: IF PO_LOG.d_stmt THEN
1395: PO_LOG.stmt(d_module_base,d_progress,'Number of rows in zx_itm_distributions_gt='||l_count);
1396: END IF;
1397:
1398: IF (l_count <> 0) THEN
1399: d_progress := 230;
1403:
1404: d_progress := 240;
1405:
1406: -- Log table parameters
1407: IF PO_LOG.d_stmt THEN
1408: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
1409: log_header_tax_attributes(d_module_base,d_progress);
1410: log_line_tax_attributes(d_module_base,d_progress);
1411: log_dist_tax_attributes(d_module_base,d_progress);
1404: d_progress := 240;
1405:
1406: -- Log table parameters
1407: IF PO_LOG.d_stmt THEN
1408: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
1409: log_header_tax_attributes(d_module_base,d_progress);
1410: log_line_tax_attributes(d_module_base,d_progress);
1411: log_dist_tax_attributes(d_module_base,d_progress);
1412: END IF;
1421: x_msg_data => l_msg_data
1422: );
1423:
1424: d_progress := 250;
1425: IF PO_LOG.d_stmt THEN
1426: PO_LOG.stmt(d_module_base,d_progress,'determine_recovery returned with status '||l_return_status);
1427: END IF;
1428:
1429: -- Raise if any unexpected error
1422: );
1423:
1424: d_progress := 250;
1425: IF PO_LOG.d_stmt THEN
1426: PO_LOG.stmt(d_module_base,d_progress,'determine_recovery returned with status '||l_return_status);
1427: END IF;
1428:
1429: -- Raise if any unexpected error
1430: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
1460: d_progress := 270;
1461: BEGIN
1462: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
1463: EXCEPTION WHEN OTHERS THEN
1464: IF PO_LOG.d_stmt THEN
1465: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
1466: END IF;
1467: l_count := 0;
1468: END;
1461: BEGIN
1462: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
1463: EXCEPTION WHEN OTHERS THEN
1464: IF PO_LOG.d_stmt THEN
1465: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
1466: END IF;
1467: l_count := 0;
1468: END;
1469:
1466: END IF;
1467: l_count := 0;
1468: END;
1469:
1470: IF PO_LOG.d_stmt THEN
1471: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1472: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1473: END IF;
1474:
1467: l_count := 0;
1468: END;
1469:
1470: IF PO_LOG.d_stmt THEN
1471: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1472: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1473: END IF;
1474:
1475: d_progress := 280;
1468: END;
1469:
1470: IF PO_LOG.d_stmt THEN
1471: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1472: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1473: END IF;
1474:
1475: d_progress := 280;
1476: RAISE FND_API.G_EXC_ERROR;
1508: INTO l_org_id
1509: FROM po_requisition_headers_all prh
1510: WHERE prh.requisition_header_id=p_requisition_header_id;
1511:
1512: IF PO_LOG.d_stmt THEN
1513: PO_LOG.stmt(d_module_base,d_progress,'org_id = '||l_org_id);
1514: END IF;
1515:
1516: d_progress := 310;
1509: FROM po_requisition_headers_all prh
1510: WHERE prh.requisition_header_id=p_requisition_header_id;
1511:
1512: IF PO_LOG.d_stmt THEN
1513: PO_LOG.stmt(d_module_base,d_progress,'org_id = '||l_org_id);
1514: END IF;
1515:
1516: d_progress := 310;
1517: -- Call global_document_update API to delete all data for this requistion
1555: x_msg_count => l_msg_count,
1556: x_msg_data => l_msg_data);
1557:
1558: d_progress := 350;
1559: IF PO_LOG.d_stmt THEN
1560: PO_LOG.stmt(d_module_base,d_progress,'insert_line_det_factors returned with status '||l_return_status);
1561: END IF;
1562:
1563: -- Raise if any unexpected error
1556: x_msg_data => l_msg_data);
1557:
1558: d_progress := 350;
1559: IF PO_LOG.d_stmt THEN
1560: PO_LOG.stmt(d_module_base,d_progress,'insert_line_det_factors returned with status '||l_return_status);
1561: END IF;
1562:
1563: -- Raise if any unexpected error
1564: IF (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) THEN
1582: wipe_zx_gt_tables();
1583:
1584: END IF; -- IF p_requisition_header_id IS NOT NULL
1585:
1586: IF (PO_LOG.d_proc) THEN
1587: PO_LOG.proc_end(d_module_base);
1588: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1589: END IF;
1590: d_progress := 380;
1583:
1584: END IF; -- IF p_requisition_header_id IS NOT NULL
1585:
1586: IF (PO_LOG.d_proc) THEN
1587: PO_LOG.proc_end(d_module_base);
1588: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1589: END IF;
1590: d_progress := 380;
1591:
1584: END IF; -- IF p_requisition_header_id IS NOT NULL
1585:
1586: IF (PO_LOG.d_proc) THEN
1587: PO_LOG.proc_end(d_module_base);
1588: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1589: END IF;
1590: d_progress := 380;
1591:
1592: EXCEPTION
1593: WHEN FND_API.G_EXC_ERROR THEN
1594: x_return_status := FND_API.G_RET_STS_ERROR ;
1595: ROLLBACK TO SAVEPOINT calculate_tax_req_savepoint;
1596:
1597: IF (PO_LOG.d_exc) THEN
1598: PO_LOG.exc(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1599: log_global_error_record(d_module_base, d_progress);
1600: PO_LOG.exc(d_module_base, d_progress, null);
1601: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1594: x_return_status := FND_API.G_RET_STS_ERROR ;
1595: ROLLBACK TO SAVEPOINT calculate_tax_req_savepoint;
1596:
1597: IF (PO_LOG.d_exc) THEN
1598: PO_LOG.exc(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1599: log_global_error_record(d_module_base, d_progress);
1600: PO_LOG.exc(d_module_base, d_progress, null);
1601: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1602: END IF;
1596:
1597: IF (PO_LOG.d_exc) THEN
1598: PO_LOG.exc(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1599: log_global_error_record(d_module_base, d_progress);
1600: PO_LOG.exc(d_module_base, d_progress, null);
1601: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1602: END IF;
1603:
1604: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
1597: IF (PO_LOG.d_exc) THEN
1598: PO_LOG.exc(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1599: log_global_error_record(d_module_base, d_progress);
1600: PO_LOG.exc(d_module_base, d_progress, null);
1601: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1602: END IF;
1603:
1604: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
1605: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1619: p_distribution_id => null,
1620: p_distribution_num => null,
1621: p_message_text => l_msg_data);
1622:
1623: IF (PO_LOG.d_exc) THEN
1624: PO_LOG.exc(d_module_base, d_progress, l_msg_data);
1625: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1626: END IF;
1627:
1620: p_distribution_num => null,
1621: p_message_text => l_msg_data);
1622:
1623: IF (PO_LOG.d_exc) THEN
1624: PO_LOG.exc(d_module_base, d_progress, l_msg_data);
1625: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1626: END IF;
1627:
1628: WHEN OTHERS THEN
1621: p_message_text => l_msg_data);
1622:
1623: IF (PO_LOG.d_exc) THEN
1624: PO_LOG.exc(d_module_base, d_progress, l_msg_data);
1625: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1626: END IF;
1627:
1628: WHEN OTHERS THEN
1629: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1644: p_distribution_num => null,
1645: p_message_text => d_module_base||'#'||d_progress||':'
1646: ||SQLCODE || SQLERRM);
1647:
1648: IF (PO_LOG.d_exc) THEN
1649: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1650: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1651: END IF;
1652: END calculate_tax_requisition;
1645: p_message_text => d_module_base||'#'||d_progress||':'
1646: ||SQLCODE || SQLERRM);
1647:
1648: IF (PO_LOG.d_exc) THEN
1649: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1650: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1651: END IF;
1652: END calculate_tax_requisition;
1653:
1646: ||SQLCODE || SQLERRM);
1647:
1648: IF (PO_LOG.d_exc) THEN
1649: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1650: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1651: END IF;
1652: END calculate_tax_requisition;
1653:
1654:
1687: PROCEDURE determine_recovery_po(p_po_header_id IN NUMBER,
1688: x_return_status OUT NOCOPY VARCHAR2
1689: ) IS
1690: l_module_name CONSTANT VARCHAR2(100) := 'DETERMINE_RECOVERY_PO';
1691: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
1692: D_PACKAGE_BASE, l_module_name);
1693: d_progress NUMBER;
1694: l_msg_count NUMBER;
1695: l_msg_data VARCHAR2(1000);
1697: l_return_status VARCHAR2(1);
1698: BEGIN
1699: SAVEPOINT det_recovery_po_savepoint;
1700:
1701: IF (PO_LOG.d_proc) THEN
1702: PO_LOG.proc_begin(d_module_base);
1703: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1704: END IF;
1705:
1698: BEGIN
1699: SAVEPOINT det_recovery_po_savepoint;
1700:
1701: IF (PO_LOG.d_proc) THEN
1702: PO_LOG.proc_begin(d_module_base);
1703: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1704: END IF;
1705:
1706: d_progress := 0;
1699: SAVEPOINT det_recovery_po_savepoint;
1700:
1701: IF (PO_LOG.d_proc) THEN
1702: PO_LOG.proc_begin(d_module_base);
1703: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
1704: END IF;
1705:
1706: d_progress := 0;
1707:
1731: IF (l_count <> 0) THEN
1732: d_progress := 40;
1733:
1734: -- Log table parameters
1735: IF PO_LOG.d_stmt THEN
1736: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
1737: log_header_tax_attributes(d_module_base,d_progress);
1738: log_dist_tax_attributes(d_module_base,d_progress);
1739: END IF;
1732: d_progress := 40;
1733:
1734: -- Log table parameters
1735: IF PO_LOG.d_stmt THEN
1736: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
1737: log_header_tax_attributes(d_module_base,d_progress);
1738: log_dist_tax_attributes(d_module_base,d_progress);
1739: END IF;
1740:
1779:
1780: BEGIN
1781: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
1782: EXCEPTION WHEN OTHERS THEN
1783: IF PO_LOG.d_stmt THEN
1784: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
1785: END IF;
1786: l_count := 0;
1787: END;
1780: BEGIN
1781: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
1782: EXCEPTION WHEN OTHERS THEN
1783: IF PO_LOG.d_stmt THEN
1784: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
1785: END IF;
1786: l_count := 0;
1787: END;
1788:
1785: END IF;
1786: l_count := 0;
1787: END;
1788:
1789: IF PO_LOG.d_stmt THEN
1790: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1791: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1792: END IF;
1793:
1786: l_count := 0;
1787: END;
1788:
1789: IF PO_LOG.d_stmt THEN
1790: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1791: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1792: END IF;
1793:
1794: RAISE FND_API.G_EXC_ERROR;
1787: END;
1788:
1789: IF PO_LOG.d_stmt THEN
1790: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
1791: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
1792: END IF;
1793:
1794: RAISE FND_API.G_EXC_ERROR;
1795: END IF; --IF (l_return_status = FND_API.G_RET_STS_ERROR)
1842: SET tax_attribute_update_code = null
1843: WHERE po_distribution_id IN (SELECT trx_line_dist_id
1844: FROM zx_itm_distributions_gt);
1845:
1846: IF (PO_LOG.d_proc) THEN
1847: PO_LOG.proc_end(d_module_base);
1848: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1849: END IF;
1850: d_progress := 70;
1843: WHERE po_distribution_id IN (SELECT trx_line_dist_id
1844: FROM zx_itm_distributions_gt);
1845:
1846: IF (PO_LOG.d_proc) THEN
1847: PO_LOG.proc_end(d_module_base);
1848: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1849: END IF;
1850: d_progress := 70;
1851:
1844: FROM zx_itm_distributions_gt);
1845:
1846: IF (PO_LOG.d_proc) THEN
1847: PO_LOG.proc_end(d_module_base);
1848: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1849: END IF;
1850: d_progress := 70;
1851:
1852: EXCEPTION
1853: WHEN FND_API.G_EXC_ERROR THEN
1854: x_return_status := FND_API.G_RET_STS_ERROR ;
1855: ROLLBACK TO SAVEPOINT det_recovery_po_savepoint;
1856:
1857: IF (PO_LOG.d_exc) THEN
1858: PO_LOG.exc(d_module_base, d_progress, null);
1859: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1860: END IF;
1861:
1854: x_return_status := FND_API.G_RET_STS_ERROR ;
1855: ROLLBACK TO SAVEPOINT det_recovery_po_savepoint;
1856:
1857: IF (PO_LOG.d_exc) THEN
1858: PO_LOG.exc(d_module_base, d_progress, null);
1859: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1860: END IF;
1861:
1862: WHEN OTHERS THEN
1855: ROLLBACK TO SAVEPOINT det_recovery_po_savepoint;
1856:
1857: IF (PO_LOG.d_exc) THEN
1858: PO_LOG.exc(d_module_base, d_progress, null);
1859: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1860: END IF;
1861:
1862: WHEN OTHERS THEN
1863: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1862: WHEN OTHERS THEN
1863: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1864: ROLLBACK TO SAVEPOINT det_recovery_po_savepoint;
1865:
1866: IF (PO_LOG.d_exc) THEN
1867: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1868: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1869: END IF;
1870:
1863: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1864: ROLLBACK TO SAVEPOINT det_recovery_po_savepoint;
1865:
1866: IF (PO_LOG.d_exc) THEN
1867: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1868: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1869: END IF;
1870:
1871: END determine_recovery_po;
1864: ROLLBACK TO SAVEPOINT det_recovery_po_savepoint;
1865:
1866: IF (PO_LOG.d_exc) THEN
1867: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
1868: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
1869: END IF;
1870:
1871: END determine_recovery_po;
1872:
1905: PROCEDURE determine_recovery_rel(p_po_release_id IN NUMBER,
1906: x_return_status OUT NOCOPY VARCHAR2
1907: ) IS
1908: l_module_name CONSTANT VARCHAR2(100) := 'DETERMINE_RECOVERY_REL';
1909: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
1910: D_PACKAGE_BASE, l_module_name);
1911: d_progress NUMBER;
1912: l_msg_count NUMBER;
1913: l_msg_data VARCHAR2(1000);
1915: l_return_status VARCHAR2(1);
1916: BEGIN
1917: SAVEPOINT det_recovery_rel_savepoint;
1918:
1919: IF (PO_LOG.d_proc) THEN
1920: PO_LOG.proc_begin(d_module_base);
1921: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1922: END IF;
1923:
1916: BEGIN
1917: SAVEPOINT det_recovery_rel_savepoint;
1918:
1919: IF (PO_LOG.d_proc) THEN
1920: PO_LOG.proc_begin(d_module_base);
1921: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1922: END IF;
1923:
1924: d_progress := 0;
1917: SAVEPOINT det_recovery_rel_savepoint;
1918:
1919: IF (PO_LOG.d_proc) THEN
1920: PO_LOG.proc_begin(d_module_base);
1921: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
1922: END IF;
1923:
1924: d_progress := 0;
1925:
1949: IF (l_count <> 0) THEN
1950: d_progress := 40;
1951:
1952: -- Log table parameters
1953: IF PO_LOG.d_stmt THEN
1954: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
1955: log_header_tax_attributes(d_module_base,d_progress);
1956: log_dist_tax_attributes(d_module_base,d_progress);
1957: END IF;
1950: d_progress := 40;
1951:
1952: -- Log table parameters
1953: IF PO_LOG.d_stmt THEN
1954: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
1955: log_header_tax_attributes(d_module_base,d_progress);
1956: log_dist_tax_attributes(d_module_base,d_progress);
1957: END IF;
1958:
1998:
1999: BEGIN
2000: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
2001: EXCEPTION WHEN OTHERS THEN
2002: IF PO_LOG.d_stmt THEN
2003: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
2004: END IF;
2005: l_count := 0;
2006: END;
1999: BEGIN
2000: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
2001: EXCEPTION WHEN OTHERS THEN
2002: IF PO_LOG.d_stmt THEN
2003: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
2004: END IF;
2005: l_count := 0;
2006: END;
2007:
2004: END IF;
2005: l_count := 0;
2006: END;
2007:
2008: IF PO_LOG.d_stmt THEN
2009: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
2010: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
2011: END IF;
2012:
2005: l_count := 0;
2006: END;
2007:
2008: IF PO_LOG.d_stmt THEN
2009: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
2010: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
2011: END IF;
2012:
2013: RAISE FND_API.G_EXC_ERROR;
2006: END;
2007:
2008: IF PO_LOG.d_stmt THEN
2009: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
2010: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
2011: END IF;
2012:
2013: RAISE FND_API.G_EXC_ERROR;
2014: END IF; --IF (l_return_status = FND_API.G_RET_STS_ERROR)
2063: SET tax_attribute_update_code = null
2064: WHERE po_distribution_id IN (SELECT trx_line_dist_id
2065: FROM zx_itm_distributions_gt);
2066:
2067: IF (PO_LOG.d_proc) THEN
2068: PO_LOG.proc_end(d_module_base);
2069: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2070: END IF;
2071: d_progress := 70;
2064: WHERE po_distribution_id IN (SELECT trx_line_dist_id
2065: FROM zx_itm_distributions_gt);
2066:
2067: IF (PO_LOG.d_proc) THEN
2068: PO_LOG.proc_end(d_module_base);
2069: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2070: END IF;
2071: d_progress := 70;
2072:
2065: FROM zx_itm_distributions_gt);
2066:
2067: IF (PO_LOG.d_proc) THEN
2068: PO_LOG.proc_end(d_module_base);
2069: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2070: END IF;
2071: d_progress := 70;
2072:
2073: EXCEPTION
2074: WHEN FND_API.G_EXC_ERROR THEN
2075: x_return_status := FND_API.G_RET_STS_ERROR ;
2076: ROLLBACK TO SAVEPOINT det_recovery_rel_savepoint;
2077:
2078: IF (PO_LOG.d_exc) THEN
2079: PO_LOG.exc(d_module_base, d_progress, null);
2080: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2081: END IF;
2082:
2075: x_return_status := FND_API.G_RET_STS_ERROR ;
2076: ROLLBACK TO SAVEPOINT det_recovery_rel_savepoint;
2077:
2078: IF (PO_LOG.d_exc) THEN
2079: PO_LOG.exc(d_module_base, d_progress, null);
2080: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2081: END IF;
2082:
2083: WHEN OTHERS THEN
2076: ROLLBACK TO SAVEPOINT det_recovery_rel_savepoint;
2077:
2078: IF (PO_LOG.d_exc) THEN
2079: PO_LOG.exc(d_module_base, d_progress, null);
2080: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2081: END IF;
2082:
2083: WHEN OTHERS THEN
2084: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2083: WHEN OTHERS THEN
2084: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2085: ROLLBACK TO SAVEPOINT det_recovery_rel_savepoint;
2086:
2087: IF (PO_LOG.d_exc) THEN
2088: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
2089: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2090: END IF;
2091:
2084: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2085: ROLLBACK TO SAVEPOINT det_recovery_rel_savepoint;
2086:
2087: IF (PO_LOG.d_exc) THEN
2088: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
2089: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2090: END IF;
2091:
2092: END determine_recovery_rel;
2085: ROLLBACK TO SAVEPOINT det_recovery_rel_savepoint;
2086:
2087: IF (PO_LOG.d_exc) THEN
2088: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
2089: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2090: END IF;
2091:
2092: END determine_recovery_rel;
2093:
2125: PROCEDURE determine_recovery_req(p_requisition_header_id IN NUMBER,
2126: x_return_status OUT NOCOPY VARCHAR2
2127: ) IS
2128: l_module_name CONSTANT VARCHAR2(100) := 'DETERMINE_RECOVERY_REQ';
2129: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
2130: D_PACKAGE_BASE, l_module_name);
2131: d_progress NUMBER;
2132: l_count NUMBER;
2133: l_msg_count NUMBER;
2136: BEGIN
2137:
2138: SAVEPOINT det_recovery_req_savepoint;
2139:
2140: IF (PO_LOG.d_proc) THEN
2141: PO_LOG.proc_begin(d_module_base);
2142: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
2143: END IF;
2144:
2137:
2138: SAVEPOINT det_recovery_req_savepoint;
2139:
2140: IF (PO_LOG.d_proc) THEN
2141: PO_LOG.proc_begin(d_module_base);
2142: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
2143: END IF;
2144:
2145: d_progress := 0;
2138: SAVEPOINT det_recovery_req_savepoint;
2139:
2140: IF (PO_LOG.d_proc) THEN
2141: PO_LOG.proc_begin(d_module_base);
2142: PO_LOG.proc_begin(d_module_base, 'p_requisition_header_id', p_requisition_header_id);
2143: END IF;
2144:
2145: d_progress := 0;
2146:
2171: IF (l_count <> 0) THEN
2172: d_progress := 40;
2173:
2174: -- Log table parameters
2175: IF PO_LOG.d_stmt THEN
2176: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
2177: log_header_tax_attributes(d_module_base,d_progress);
2178: log_dist_tax_attributes(d_module_base,d_progress);
2179: END IF;
2172: d_progress := 40;
2173:
2174: -- Log table parameters
2175: IF PO_LOG.d_stmt THEN
2176: PO_LOG.stmt(d_module_base,d_progress,'Table parameters before determine_recovery');
2177: log_header_tax_attributes(d_module_base,d_progress);
2178: log_dist_tax_attributes(d_module_base,d_progress);
2179: END IF;
2180:
2220:
2221: BEGIN
2222: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
2223: EXCEPTION WHEN OTHERS THEN
2224: IF PO_LOG.d_stmt THEN
2225: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
2226: END IF;
2227: l_count := 0;
2228: END;
2221: BEGIN
2222: SELECT COUNT(1) INTO l_count FROM zx_errors_gt;
2223: EXCEPTION WHEN OTHERS THEN
2224: IF PO_LOG.d_stmt THEN
2225: PO_LOG.stmt(d_module_base,d_progress,'Exception while hitting zx_errors_gt');
2226: END IF;
2227: l_count := 0;
2228: END;
2229:
2226: END IF;
2227: l_count := 0;
2228: END;
2229:
2230: IF PO_LOG.d_stmt THEN
2231: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
2232: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
2233: END IF;
2234:
2227: l_count := 0;
2228: END;
2229:
2230: IF PO_LOG.d_stmt THEN
2231: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
2232: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
2233: END IF;
2234:
2235: RAISE FND_API.G_EXC_ERROR;
2228: END;
2229:
2230: IF PO_LOG.d_stmt THEN
2231: PO_LOG.stmt(d_module_base,d_progress,'Number of records in zx_errors_gt '||l_count);
2232: PO_LOG.stmt(d_module_base,d_progress,'Number of error records collected '||G_TAX_ERRORS_TBL.error_level.COUNT);
2233: END IF;
2234:
2235: RAISE FND_API.G_EXC_ERROR;
2236: END IF;
2258: (SELECT trx_line_dist_id FROM zx_itm_distributions_gt);
2259:
2260: END IF; -- IF (l_count <> 0)
2261:
2262: IF (PO_LOG.d_proc) THEN
2263: PO_LOG.proc_end(d_module_base);
2264: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2265: END IF;
2266: d_progress := 60;
2259:
2260: END IF; -- IF (l_count <> 0)
2261:
2262: IF (PO_LOG.d_proc) THEN
2263: PO_LOG.proc_end(d_module_base);
2264: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2265: END IF;
2266: d_progress := 60;
2267:
2260: END IF; -- IF (l_count <> 0)
2261:
2262: IF (PO_LOG.d_proc) THEN
2263: PO_LOG.proc_end(d_module_base);
2264: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2265: END IF;
2266: d_progress := 60;
2267:
2268: EXCEPTION
2269: WHEN FND_API.G_EXC_ERROR THEN
2270: x_return_status := FND_API.G_RET_STS_ERROR ;
2271: ROLLBACK TO SAVEPOINT det_recovery_req_savepoint;
2272:
2273: IF (PO_LOG.d_exc) THEN
2274: PO_LOG.exc(d_module_base, d_progress, null);
2275: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2276: END IF;
2277:
2270: x_return_status := FND_API.G_RET_STS_ERROR ;
2271: ROLLBACK TO SAVEPOINT det_recovery_req_savepoint;
2272:
2273: IF (PO_LOG.d_exc) THEN
2274: PO_LOG.exc(d_module_base, d_progress, null);
2275: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2276: END IF;
2277:
2278: WHEN OTHERS THEN
2271: ROLLBACK TO SAVEPOINT det_recovery_req_savepoint;
2272:
2273: IF (PO_LOG.d_exc) THEN
2274: PO_LOG.exc(d_module_base, d_progress, null);
2275: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2276: END IF;
2277:
2278: WHEN OTHERS THEN
2279: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2278: WHEN OTHERS THEN
2279: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2280: ROLLBACK TO SAVEPOINT det_recovery_req_savepoint;
2281:
2282: IF (PO_LOG.d_exc) THEN
2283: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
2284: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2285: END IF;
2286: END determine_recovery_req;
2279: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2280: ROLLBACK TO SAVEPOINT det_recovery_req_savepoint;
2281:
2282: IF (PO_LOG.d_exc) THEN
2283: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
2284: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2285: END IF;
2286: END determine_recovery_req;
2287:
2280: ROLLBACK TO SAVEPOINT det_recovery_req_savepoint;
2281:
2282: IF (PO_LOG.d_exc) THEN
2283: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
2284: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
2285: END IF;
2286: END determine_recovery_req;
2287:
2288:
4199: IS
4200:
4201: l_Result VARCHAR2(4);
4202: l_module_name CONSTANT VARCHAR2(100) := 'CALCULATE_TAX_YES_NO';
4203: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
4204: D_PACKAGE_BASE, l_module_name);
4205: d_progress NUMBER;
4206:
4207: BEGIN
4205: d_progress NUMBER;
4206:
4207: BEGIN
4208:
4209: IF (PO_LOG.d_proc) THEN
4210: PO_LOG.proc_begin(d_module_base);
4211: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4212: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
4213: PO_LOG.proc_begin(d_module_base, 'p_req_header_id', p_req_header_id);
4206:
4207: BEGIN
4208:
4209: IF (PO_LOG.d_proc) THEN
4210: PO_LOG.proc_begin(d_module_base);
4211: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4212: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
4213: PO_LOG.proc_begin(d_module_base, 'p_req_header_id', p_req_header_id);
4214: END IF;
4207: BEGIN
4208:
4209: IF (PO_LOG.d_proc) THEN
4210: PO_LOG.proc_begin(d_module_base);
4211: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4212: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
4213: PO_LOG.proc_begin(d_module_base, 'p_req_header_id', p_req_header_id);
4214: END IF;
4215:
4208:
4209: IF (PO_LOG.d_proc) THEN
4210: PO_LOG.proc_begin(d_module_base);
4211: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4212: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
4213: PO_LOG.proc_begin(d_module_base, 'p_req_header_id', p_req_header_id);
4214: END IF;
4215:
4216: d_progress := 0;
4209: IF (PO_LOG.d_proc) THEN
4210: PO_LOG.proc_begin(d_module_base);
4211: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4212: PO_LOG.proc_begin(d_module_base, 'p_po_release_id', p_po_release_id);
4213: PO_LOG.proc_begin(d_module_base, 'p_req_header_id', p_req_header_id);
4214: END IF;
4215:
4216: d_progress := 0;
4217: l_result := 'N';
4294: END;
4295:
4296: d_progress := 50;
4297:
4298: IF (PO_LOG.d_proc) THEN
4299: PO_LOG.proc_end(d_module_base);
4300: PO_LOG.proc_end(d_module_base, 'l_result', l_result);
4301: END IF;
4302:
4295:
4296: d_progress := 50;
4297:
4298: IF (PO_LOG.d_proc) THEN
4299: PO_LOG.proc_end(d_module_base);
4300: PO_LOG.proc_end(d_module_base, 'l_result', l_result);
4301: END IF;
4302:
4303: RETURN l_result;
4296: d_progress := 50;
4297:
4298: IF (PO_LOG.d_proc) THEN
4299: PO_LOG.proc_end(d_module_base);
4300: PO_LOG.proc_end(d_module_base, 'l_result', l_result);
4301: END IF;
4302:
4303: RETURN l_result;
4304:
4303: RETURN l_result;
4304:
4305: EXCEPTION
4306: WHEN OTHERS THEN
4307: IF (PO_LOG.d_exc) THEN
4308: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4309: END IF;
4310: RAISE;
4311: END calculate_tax_yes_no;
4304:
4305: EXCEPTION
4306: WHEN OTHERS THEN
4307: IF (PO_LOG.d_exc) THEN
4308: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4309: END IF;
4310: RAISE;
4311: END calculate_tax_yes_no;
4312:
4519: P_DEL_DIST_SHIPMENT_TABLE IN PO_TBL_NUMBER
4520: )
4521: IS
4522: l_module_name CONSTANT VARCHAR2(100) := 'shipment_dist_deleted_from_oa';
4523: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
4524: D_PACKAGE_BASE, l_module_name);
4525: d_progress NUMBER;
4526:
4527: BEGIN
4524: D_PACKAGE_BASE, l_module_name);
4525: d_progress NUMBER;
4526:
4527: BEGIN
4528: IF (PO_LOG.d_proc) THEN
4529: PO_LOG.proc_begin(d_module_base);
4530: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4531: PO_LOG.proc_begin(d_module_base, 'p_del_shipment_table', P_DEL_SHIPMENT_TABLE.COUNT);
4532: PO_LOG.proc_begin(d_module_base, 'p_del_dist_shipment_table', P_DEL_DIST_SHIPMENT_TABLE.COUNT);
4525: d_progress NUMBER;
4526:
4527: BEGIN
4528: IF (PO_LOG.d_proc) THEN
4529: PO_LOG.proc_begin(d_module_base);
4530: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4531: PO_LOG.proc_begin(d_module_base, 'p_del_shipment_table', P_DEL_SHIPMENT_TABLE.COUNT);
4532: PO_LOG.proc_begin(d_module_base, 'p_del_dist_shipment_table', P_DEL_DIST_SHIPMENT_TABLE.COUNT);
4533: END IF;
4526:
4527: BEGIN
4528: IF (PO_LOG.d_proc) THEN
4529: PO_LOG.proc_begin(d_module_base);
4530: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4531: PO_LOG.proc_begin(d_module_base, 'p_del_shipment_table', P_DEL_SHIPMENT_TABLE.COUNT);
4532: PO_LOG.proc_begin(d_module_base, 'p_del_dist_shipment_table', P_DEL_DIST_SHIPMENT_TABLE.COUNT);
4533: END IF;
4534:
4527: BEGIN
4528: IF (PO_LOG.d_proc) THEN
4529: PO_LOG.proc_begin(d_module_base);
4530: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4531: PO_LOG.proc_begin(d_module_base, 'p_del_shipment_table', P_DEL_SHIPMENT_TABLE.COUNT);
4532: PO_LOG.proc_begin(d_module_base, 'p_del_dist_shipment_table', P_DEL_DIST_SHIPMENT_TABLE.COUNT);
4533: END IF;
4534:
4535: d_progress := 0;
4528: IF (PO_LOG.d_proc) THEN
4529: PO_LOG.proc_begin(d_module_base);
4530: PO_LOG.proc_begin(d_module_base, 'p_po_header_id', p_po_header_id);
4531: PO_LOG.proc_begin(d_module_base, 'p_del_shipment_table', P_DEL_SHIPMENT_TABLE.COUNT);
4532: PO_LOG.proc_begin(d_module_base, 'p_del_dist_shipment_table', P_DEL_DIST_SHIPMENT_TABLE.COUNT);
4533: END IF;
4534:
4535: d_progress := 0;
4536: --
4589: AND zl.trx_level_type = PO_CONSTANTS_SV.PO_TRX_LEVEL_TYPE
4590: );
4591:
4592: d_progress := 20;
4593: IF (PO_LOG.d_proc) THEN
4594: PO_LOG.proc_end(d_module_base);
4595: END IF;
4596:
4597: EXCEPTION
4590: );
4591:
4592: d_progress := 20;
4593: IF (PO_LOG.d_proc) THEN
4594: PO_LOG.proc_end(d_module_base);
4595: END IF;
4596:
4597: EXCEPTION
4598: WHEN OTHERS THEN
4595: END IF;
4596:
4597: EXCEPTION
4598: WHEN OTHERS THEN
4599: IF (PO_LOG.d_exc) THEN
4600: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4601: END IF;
4602: RAISE;
4603: END SHIPMENT_DIST_DELETED_FROM_OA;
4596:
4597: EXCEPTION
4598: WHEN OTHERS THEN
4599: IF (PO_LOG.d_exc) THEN
4600: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4601: END IF;
4602: RAISE;
4603: END SHIPMENT_DIST_DELETED_FROM_OA;
4604:
4653: p_distribution_num IN NUMBER,
4654: p_message_text IN VARCHAR2
4655: ) IS
4656: l_module_name CONSTANT VARCHAR2(100) := 'APPEND_ERROR';
4657: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
4658: D_PACKAGE_BASE, l_module_name);
4659: d_progress NUMBER;
4660: l_length NUMBER;
4661: BEGIN
4658: D_PACKAGE_BASE, l_module_name);
4659: d_progress NUMBER;
4660: l_length NUMBER;
4661: BEGIN
4662: IF (PO_LOG.d_proc) THEN
4663: PO_LOG.proc_begin(d_module_base);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4659: d_progress NUMBER;
4660: l_length NUMBER;
4661: BEGIN
4662: IF (PO_LOG.d_proc) THEN
4663: PO_LOG.proc_begin(d_module_base);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4660: l_length NUMBER;
4661: BEGIN
4662: IF (PO_LOG.d_proc) THEN
4663: PO_LOG.proc_begin(d_module_base);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4661: BEGIN
4662: IF (PO_LOG.d_proc) THEN
4663: PO_LOG.proc_begin(d_module_base);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4662: IF (PO_LOG.d_proc) THEN
4663: PO_LOG.proc_begin(d_module_base);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4663: PO_LOG.proc_begin(d_module_base);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4664: PO_LOG.proc_begin(d_module_base, 'p_error_level', p_error_level);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4665: PO_LOG.proc_begin(d_module_base, 'p_document_type_code', p_document_type_code);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4673: PO_LOG.proc_begin(d_module_base, 'p_distribution_num', p_distribution_num);
4666: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4673: PO_LOG.proc_begin(d_module_base, 'p_distribution_num', p_distribution_num);
4674: PO_LOG.proc_begin(d_module_base, 'p_message_text', p_message_text);
4667: PO_LOG.proc_begin(d_module_base, 'p_document_num', p_document_num);
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4673: PO_LOG.proc_begin(d_module_base, 'p_distribution_num', p_distribution_num);
4674: PO_LOG.proc_begin(d_module_base, 'p_message_text', p_message_text);
4675: END IF;
4668: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4673: PO_LOG.proc_begin(d_module_base, 'p_distribution_num', p_distribution_num);
4674: PO_LOG.proc_begin(d_module_base, 'p_message_text', p_message_text);
4675: END IF;
4676:
4669: PO_LOG.proc_begin(d_module_base, 'p_line_num', p_line_num);
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4673: PO_LOG.proc_begin(d_module_base, 'p_distribution_num', p_distribution_num);
4674: PO_LOG.proc_begin(d_module_base, 'p_message_text', p_message_text);
4675: END IF;
4676:
4677: d_progress := 0;
4670: PO_LOG.proc_begin(d_module_base, 'p_line_location_id', p_line_location_id);
4671: PO_LOG.proc_begin(d_module_base, 'p_shipment_num', p_shipment_num);
4672: PO_LOG.proc_begin(d_module_base, 'p_distribution_id', p_distribution_id);
4673: PO_LOG.proc_begin(d_module_base, 'p_distribution_num', p_distribution_num);
4674: PO_LOG.proc_begin(d_module_base, 'p_message_text', p_message_text);
4675: END IF;
4676:
4677: d_progress := 0;
4678: G_TAX_ERRORS_TBL.error_level.extend;
4690: d_progress := 10;
4691: l_length := G_TAX_ERRORS_TBL.error_level.COUNT;
4692:
4693: d_progress := 20;
4694: IF PO_LOG.d_stmt THEN
4695: PO_LOG.stmt(d_module_base,d_progress,'l_length= '||l_length);
4696: END IF;
4697:
4698: d_progress := 30;
4691: l_length := G_TAX_ERRORS_TBL.error_level.COUNT;
4692:
4693: d_progress := 20;
4694: IF PO_LOG.d_stmt THEN
4695: PO_LOG.stmt(d_module_base,d_progress,'l_length= '||l_length);
4696: END IF;
4697:
4698: d_progress := 30;
4699: G_TAX_ERRORS_TBL.error_level(l_length) := p_error_level;
4708: G_TAX_ERRORS_TBL.distribution_num(l_length) := p_distribution_num;
4709: G_TAX_ERRORS_TBL.message_text(l_length) := p_message_text;
4710:
4711: d_progress := 40;
4712: IF (PO_LOG.d_proc) THEN
4713: PO_LOG.proc_end(d_module_base);
4714: END IF;
4715: EXCEPTION
4716: WHEN OTHERS THEN
4709: G_TAX_ERRORS_TBL.message_text(l_length) := p_message_text;
4710:
4711: d_progress := 40;
4712: IF (PO_LOG.d_proc) THEN
4713: PO_LOG.proc_end(d_module_base);
4714: END IF;
4715: EXCEPTION
4716: WHEN OTHERS THEN
4717: IF (PO_LOG.d_exc) THEN
4713: PO_LOG.proc_end(d_module_base);
4714: END IF;
4715: EXCEPTION
4716: WHEN OTHERS THEN
4717: IF (PO_LOG.d_exc) THEN
4718: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4719: END IF;
4720: END append_error;
4721:
4714: END IF;
4715: EXCEPTION
4716: WHEN OTHERS THEN
4717: IF (PO_LOG.d_exc) THEN
4718: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4719: END IF;
4720: END append_error;
4721:
4722:
4751: --End of Comments
4752: -----------------------------------------------------------------------------
4753: PROCEDURE initialize_zx_gt_tables IS
4754: l_module_name CONSTANT VARCHAR2(100) := 'INITIALIZE_ZX_GT_TABLES';
4755: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
4756: D_PACKAGE_BASE, l_module_name);
4757: d_progress NUMBER;
4758: l_clear_tables VARCHAR2(1);
4759: BEGIN
4758: l_clear_tables VARCHAR2(1);
4759: BEGIN
4760: d_progress := 0;
4761:
4762: IF PO_LOG.d_stmt THEN
4763: PO_LOG.stmt(d_module_base,d_progress,'Initial state of zx gt tables:');
4764: log_header_tax_attributes(d_module_base,d_progress);
4765: log_line_tax_attributes(d_module_base,d_progress);
4766: log_dist_tax_attributes(d_module_base,d_progress);
4759: BEGIN
4760: d_progress := 0;
4761:
4762: IF PO_LOG.d_stmt THEN
4763: PO_LOG.stmt(d_module_base,d_progress,'Initial state of zx gt tables:');
4764: log_header_tax_attributes(d_module_base,d_progress);
4765: log_line_tax_attributes(d_module_base,d_progress);
4766: log_dist_tax_attributes(d_module_base,d_progress);
4767: END IF;
4779: l_clear_tables := 'N';
4780: END;
4781:
4782: d_progress := 10;
4783: IF PO_LOG.d_stmt THEN
4784: PO_LOG.stmt(d_module_base,d_progress,'l_clear_tables = '||l_clear_tables);
4785: END IF;
4786:
4787: IF (l_clear_tables = 'Y') THEN
4780: END;
4781:
4782: d_progress := 10;
4783: IF PO_LOG.d_stmt THEN
4784: PO_LOG.stmt(d_module_base,d_progress,'l_clear_tables = '||l_clear_tables);
4785: END IF;
4786:
4787: IF (l_clear_tables = 'Y') THEN
4788: wipe_zx_gt_tables();
4788: wipe_zx_gt_tables();
4789: END IF;
4790: d_progress := 20;
4791:
4792: IF (PO_LOG.d_proc) THEN
4793: PO_LOG.proc_end(d_module_base);
4794: END IF;
4795: EXCEPTION
4796: WHEN OTHERS THEN
4789: END IF;
4790: d_progress := 20;
4791:
4792: IF (PO_LOG.d_proc) THEN
4793: PO_LOG.proc_end(d_module_base);
4794: END IF;
4795: EXCEPTION
4796: WHEN OTHERS THEN
4797: IF (PO_LOG.d_exc) THEN
4793: PO_LOG.proc_end(d_module_base);
4794: END IF;
4795: EXCEPTION
4796: WHEN OTHERS THEN
4797: IF (PO_LOG.d_exc) THEN
4798: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4799: END IF;
4800: END initialize_zx_gt_tables;
4801:
4794: END IF;
4795: EXCEPTION
4796: WHEN OTHERS THEN
4797: IF (PO_LOG.d_exc) THEN
4798: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4799: END IF;
4800: END initialize_zx_gt_tables;
4801:
4802:
4829: --End of Comments
4830: -----------------------------------------------------------------------------
4831: PROCEDURE wipe_zx_gt_tables IS
4832: l_module_name CONSTANT VARCHAR2(100) := 'WIPE_ZX_GT_TABLES';
4833: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
4834: D_PACKAGE_BASE, l_module_name);
4835: d_progress NUMBER;
4836: l_clear_tables VARCHAR2(1);
4837: BEGIN
4835: d_progress NUMBER;
4836: l_clear_tables VARCHAR2(1);
4837: BEGIN
4838: d_progress := 0;
4839: IF (PO_LOG.d_proc) THEN
4840: PO_LOG.proc_begin(d_module_base);
4841: END IF;
4842:
4843: DELETE ZX_TRX_HEADERS_GT;
4836: l_clear_tables VARCHAR2(1);
4837: BEGIN
4838: d_progress := 0;
4839: IF (PO_LOG.d_proc) THEN
4840: PO_LOG.proc_begin(d_module_base);
4841: END IF;
4842:
4843: DELETE ZX_TRX_HEADERS_GT;
4844: d_progress := 10;
4850: d_progress := 40;
4851: DELETE ZX_ERRORS_GT;
4852:
4853: d_progress := 50;
4854: IF (PO_LOG.d_proc) THEN
4855: PO_LOG.proc_end(d_module_base);
4856: END IF;
4857: EXCEPTION
4858: WHEN OTHERS THEN
4851: DELETE ZX_ERRORS_GT;
4852:
4853: d_progress := 50;
4854: IF (PO_LOG.d_proc) THEN
4855: PO_LOG.proc_end(d_module_base);
4856: END IF;
4857: EXCEPTION
4858: WHEN OTHERS THEN
4859: IF (PO_LOG.d_exc) THEN
4855: PO_LOG.proc_end(d_module_base);
4856: END IF;
4857: EXCEPTION
4858: WHEN OTHERS THEN
4859: IF (PO_LOG.d_exc) THEN
4860: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4861: END IF;
4862: END wipe_zx_gt_tables;
4863:
4856: END IF;
4857: EXCEPTION
4858: WHEN OTHERS THEN
4859: IF (PO_LOG.d_exc) THEN
4860: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
4861: END IF;
4862: END wipe_zx_gt_tables;
4863:
4864:
5027: l_dist_quantity_ordered PO_DISTRIBUTIONS_ALL.QUANTITY_ORDERED%type;
5028: l_dist_amount_ordered PO_DISTRIBUTIONS_ALL.AMOUNT_ORDERED%type;
5029:
5030: l_module_name CONSTANT VARCHAR2(100) := 'ANY_TAX_ATTRIBUTES_UPDATED';
5031: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
5032: D_PACKAGE_BASE, l_module_name);
5033: d_progress NUMBER;
5034: BEGIN
5035:
5032: D_PACKAGE_BASE, l_module_name);
5033: d_progress NUMBER;
5034: BEGIN
5035:
5036: IF (PO_LOG.d_proc) THEN
5037: PO_LOG.proc_begin(d_module_base);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5033: d_progress NUMBER;
5034: BEGIN
5035:
5036: IF (PO_LOG.d_proc) THEN
5037: PO_LOG.proc_begin(d_module_base);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5034: BEGIN
5035:
5036: IF (PO_LOG.d_proc) THEN
5037: PO_LOG.proc_begin(d_module_base);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5035:
5036: IF (PO_LOG.d_proc) THEN
5037: PO_LOG.proc_begin(d_module_base);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5036: IF (PO_LOG.d_proc) THEN
5037: PO_LOG.proc_begin(d_module_base);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5037: PO_LOG.proc_begin(d_module_base);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5038: PO_LOG.proc_begin(d_module_base, 'p_doc_type', p_doc_type);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5039: PO_LOG.proc_begin(d_module_base, 'p_doc_level', p_doc_level);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5040: PO_LOG.proc_begin(d_module_base, 'p_doc_level_id',p_doc_level_id );
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5041: PO_LOG.proc_begin(d_module_base,'p_trx_currency',p_trx_currency);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5042: PO_LOG.proc_begin(d_module_base,'p_rate_type',p_rate_type);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5043: PO_LOG.proc_begin(d_module_base,'p_rate_date',p_rate_date);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5044: PO_LOG.proc_begin(d_module_base,'p_rate',p_rate);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5045: PO_LOG.proc_begin(d_module_base,'p_fob',p_fob);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5046: PO_LOG.proc_begin(d_module_base,'p_vendor_id',p_vendor_id);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5047: PO_LOG.proc_begin(d_module_base,'p_vendor_site_id',p_vendor_site_id);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5048: PO_LOG.proc_begin(d_module_base,'p_bill_to_loc',p_bill_to_loc);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5049: PO_LOG.proc_begin(d_module_base,'p_uom',p_uom);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5050: PO_LOG.proc_begin(d_module_base,'p_price',p_price);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5051: PO_LOG.proc_begin(d_module_base,'p_qty',p_qty);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5052: PO_LOG.proc_begin(d_module_base,'p_price_override',p_price_override);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5053: PO_LOG.proc_begin(d_module_base,'p_amt',p_amt);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5054: PO_LOG.proc_begin(d_module_base,'p_ship_to_org',p_ship_to_org);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5055: PO_LOG.proc_begin(d_module_base,'p_ship_to_loc',p_ship_to_loc);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5056: PO_LOG.proc_begin(d_module_base,'p_need_by_date',p_need_by_date);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5057: PO_LOG.proc_begin(d_module_base,'p_src_doc',p_src_doc);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5065: PO_LOG.proc_begin(d_module_base,'p_exp_org',p_exp_org);
5058: PO_LOG.proc_begin(d_module_base,'p_src_ship',p_src_ship);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5065: PO_LOG.proc_begin(d_module_base,'p_exp_org',p_exp_org);
5066: PO_LOG.proc_begin(d_module_base,'p_exp_date',p_exp_date);
5059: PO_LOG.proc_begin(d_module_base,'p_ccid',p_ccid);
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5065: PO_LOG.proc_begin(d_module_base,'p_exp_org',p_exp_org);
5066: PO_LOG.proc_begin(d_module_base,'p_exp_date',p_exp_date);
5067: END IF;
5060: PO_LOG.proc_begin(d_module_base,'p_tax_rec_rate',p_tax_rec_rate);
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5065: PO_LOG.proc_begin(d_module_base,'p_exp_org',p_exp_org);
5066: PO_LOG.proc_begin(d_module_base,'p_exp_date',p_exp_date);
5067: END IF;
5068:
5061: PO_LOG.proc_begin(d_module_base,'p_project',p_project);
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5065: PO_LOG.proc_begin(d_module_base,'p_exp_org',p_exp_org);
5066: PO_LOG.proc_begin(d_module_base,'p_exp_date',p_exp_date);
5067: END IF;
5068:
5069: d_progress := 0;
5062: PO_LOG.proc_begin(d_module_base,'p_task',p_task);
5063: PO_LOG.proc_begin(d_module_base,'p_award',p_award);
5064: PO_LOG.proc_begin(d_module_base,'p_exp_type',p_exp_type);
5065: PO_LOG.proc_begin(d_module_base,'p_exp_org',p_exp_org);
5066: PO_LOG.proc_begin(d_module_base,'p_exp_date',p_exp_date);
5067: END IF;
5068:
5069: d_progress := 0;
5070: IF (p_doc_type = 'PO') THEN
5100: (nvl(l_vendor_id,99) = nvl(p_vendor_id,99)) AND
5101: (nvl(l_vendor_site_id,99) = nvl(p_vendor_site_id,99)) AND
5102: (nvl(l_bill_to_loc,-99) = nvl(p_bill_to_loc,-99)) ) --
5103: THEN
5104: PO_LOG.stmt(d_module_base,d_progress,'header is unchanged');
5105: return(FALSE);
5106: ELSE
5107: PO_LOG.stmt(d_module_base,d_progress,'header is changed');
5108: return (TRUE);
5103: THEN
5104: PO_LOG.stmt(d_module_base,d_progress,'header is unchanged');
5105: return(FALSE);
5106: ELSE
5107: PO_LOG.stmt(d_module_base,d_progress,'header is changed');
5108: return (TRUE);
5109: END IF;
5110: WHEN 'LINE' THEN
5111: -- Line Tax determining attributes
5119:
5120: IF nvl(l_uom,-99) = nvl(p_uom,-99) AND
5121: nvl(l_price,-99) = nvl(p_price,-99)
5122: THEN
5123: PO_LOG.stmt(d_module_base,d_progress,'line is unchanged');
5124: return(FALSE);
5125: ELSE
5126: PO_LOG.stmt(d_module_base,d_progress,'line is changed');
5127: return (TRUE);
5122: THEN
5123: PO_LOG.stmt(d_module_base,d_progress,'line is unchanged');
5124: return(FALSE);
5125: ELSE
5126: PO_LOG.stmt(d_module_base,d_progress,'line is changed');
5127: return (TRUE);
5128: END IF;
5129:
5130: WHEN 'SHIPMENT' THEN
5153: nvl(l_ship_to_org ,-99) = nvl(p_ship_to_org,-99) AND
5154: nvl(l_ship_to_loc,-99) = nvl(p_ship_to_loc ,-99) AND
5155: nvl(l_need_by_date ,sysdate) = nvl(p_need_by_date,sysdate)
5156: THEN
5157: PO_LOG.stmt(d_module_base,d_progress,'shipment is unchanged');
5158: return(FALSE);
5159: ELSE
5160: PO_LOG.stmt(d_module_base,d_progress,'shipment is changed');
5161: return (TRUE);
5156: THEN
5157: PO_LOG.stmt(d_module_base,d_progress,'shipment is unchanged');
5158: return(FALSE);
5159: ELSE
5160: PO_LOG.stmt(d_module_base,d_progress,'shipment is changed');
5161: return (TRUE);
5162: END IF;
5163:
5164: WHEN 'DISTRIBUTION' THEN
5197: nvl(l_ccid,-99) = nvl(p_ccid,-99) AND
5198: nvl(l_dist_quantity_ordered,-99) = nvl(p_dist_quantity_ordered,-99) AND
5199: nvl(l_dist_amount_ordered ,-99) = nvl(p_dist_amount_ordered,-99)
5200: THEN
5201: PO_LOG.stmt(d_module_base,d_progress,'distribution is unchanged');
5202: return(FALSE);
5203: ELSE
5204: PO_LOG.stmt(d_module_base,d_progress,'distribution is changed');
5205: return (TRUE);
5200: THEN
5201: PO_LOG.stmt(d_module_base,d_progress,'distribution is unchanged');
5202: return(FALSE);
5203: ELSE
5204: PO_LOG.stmt(d_module_base,d_progress,'distribution is changed');
5205: return (TRUE);
5206: END IF;
5207:
5208: END CASE;
5237: (nvl(l_vendor_id,99) = nvl(p_vendor_id,99)) AND
5238: (nvl(l_vendor_site_id,99) = nvl(p_vendor_site_id,99)) AND
5239: (nvl(l_bill_to_loc,-99) = nvl(p_bill_to_loc,-99)) ) --
5240: THEN
5241: PO_LOG.stmt(d_module_base,d_progress,'release header is unchanged');
5242: return(FALSE);
5243: ELSE
5244: PO_LOG.stmt(d_module_base,d_progress,'release header is changed');
5245: return (TRUE);
5240: THEN
5241: PO_LOG.stmt(d_module_base,d_progress,'release header is unchanged');
5242: return(FALSE);
5243: ELSE
5244: PO_LOG.stmt(d_module_base,d_progress,'release header is changed');
5245: return (TRUE);
5246: END IF;
5247:
5248: END CASE;
5250: END IF;
5251: d_progress := 60;
5252: EXCEPTION
5253: WHEN OTHERS THEN
5254: IF (PO_LOG.d_exc) THEN
5255: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
5256: END IF;
5257: return(TRUE);
5258:
5251: d_progress := 60;
5252: EXCEPTION
5253: WHEN OTHERS THEN
5254: IF (PO_LOG.d_exc) THEN
5255: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
5256: END IF;
5257: return(TRUE);
5258:
5259: END any_tax_attributes_updated;
5288: d_progress NUMBER := p_progress;
5289: TYPE zx_headers_type IS TABLE OF ZX_TRX_HEADERS_GT%ROWTYPE;
5290: l_zx_headers_tbl zx_headers_type;
5291: BEGIN
5292: PO_LOG.stmt(d_module_base,d_progress,'Contents of zx_trx_headers_gt:');
5293:
5294: SELECT *
5295: BULK COLLECT INTO l_zx_headers_tbl
5296: FROM zx_trx_headers_gt;
5295: BULK COLLECT INTO l_zx_headers_tbl
5296: FROM zx_trx_headers_gt;
5297:
5298: FOR i IN 1..l_zx_headers_tbl.COUNT LOOP
5299: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5300: PO_LOG.stmt(d_module_base,d_progress,' internal_organization_id = '||l_zx_headers_tbl(i).internal_organization_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5296: FROM zx_trx_headers_gt;
5297:
5298: FOR i IN 1..l_zx_headers_tbl.COUNT LOOP
5299: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5300: PO_LOG.stmt(d_module_base,d_progress,' internal_organization_id = '||l_zx_headers_tbl(i).internal_organization_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5297:
5298: FOR i IN 1..l_zx_headers_tbl.COUNT LOOP
5299: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5300: PO_LOG.stmt(d_module_base,d_progress,' internal_organization_id = '||l_zx_headers_tbl(i).internal_organization_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5298: FOR i IN 1..l_zx_headers_tbl.COUNT LOOP
5299: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5300: PO_LOG.stmt(d_module_base,d_progress,' internal_organization_id = '||l_zx_headers_tbl(i).internal_organization_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5299: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5300: PO_LOG.stmt(d_module_base,d_progress,' internal_organization_id = '||l_zx_headers_tbl(i).internal_organization_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5300: PO_LOG.stmt(d_module_base,d_progress,' internal_organization_id = '||l_zx_headers_tbl(i).internal_organization_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5301: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_headers_tbl(i).application_id);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5302: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_headers_tbl(i).entity_code);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5303: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_headers_tbl(i).event_class_code);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5304: PO_LOG.stmt(d_module_base,d_progress,' event_type_code = '||l_zx_headers_tbl(i).event_type_code);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5305: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_headers_tbl(i).trx_id);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5306: PO_LOG.stmt(d_module_base,d_progress,' trx_date = '||l_zx_headers_tbl(i).trx_date);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5307: PO_LOG.stmt(d_module_base,d_progress,' trx_doc_revision = '||l_zx_headers_tbl(i).trx_doc_revision);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5308: PO_LOG.stmt(d_module_base,d_progress,' ledger_id = '||l_zx_headers_tbl(i).ledger_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5309: PO_LOG.stmt(d_module_base,d_progress,' trx_currency_code = '||l_zx_headers_tbl(i).trx_currency_code);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5310: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_date = '||l_zx_headers_tbl(i).currency_conversion_date);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5311: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_rate = '||l_zx_headers_tbl(i).currency_conversion_rate);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5312: PO_LOG.stmt(d_module_base,d_progress,' currency_conversion_type = '||l_zx_headers_tbl(i).currency_conversion_type);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5313: PO_LOG.stmt(d_module_base,d_progress,' minimum_accountable_unit = '||l_zx_headers_tbl(i).minimum_accountable_unit);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5314: PO_LOG.stmt(d_module_base,d_progress,' precision = '||l_zx_headers_tbl(i).precision);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5315: PO_LOG.stmt(d_module_base,d_progress,' legal_entity_id = '||l_zx_headers_tbl(i).legal_entity_id);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5316: PO_LOG.stmt(d_module_base,d_progress,' rounding_ship_from_party_id = '||l_zx_headers_tbl(i).rounding_ship_from_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5324: PO_LOG.stmt(d_module_base,d_progress,' rounding_bill_to_party_id = '||l_zx_headers_tbl(i).rounding_bill_to_party_id);
5317: PO_LOG.stmt(d_module_base,d_progress,' default_taxation_country = '||l_zx_headers_tbl(i).default_taxation_country);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5324: PO_LOG.stmt(d_module_base,d_progress,' rounding_bill_to_party_id = '||l_zx_headers_tbl(i).rounding_bill_to_party_id);
5325: PO_LOG.stmt(d_module_base,d_progress,' icx_session_id = '||l_zx_headers_tbl(i).icx_session_id);
5318: PO_LOG.stmt(d_module_base,d_progress,' quote_flag = '||l_zx_headers_tbl(i).quote_flag);
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5324: PO_LOG.stmt(d_module_base,d_progress,' rounding_bill_to_party_id = '||l_zx_headers_tbl(i).rounding_bill_to_party_id);
5325: PO_LOG.stmt(d_module_base,d_progress,' icx_session_id = '||l_zx_headers_tbl(i).icx_session_id);
5326: END LOOP;
5319: PO_LOG.stmt(d_module_base,d_progress,' trx_number = '||l_zx_headers_tbl(i).trx_number);
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5324: PO_LOG.stmt(d_module_base,d_progress,' rounding_bill_to_party_id = '||l_zx_headers_tbl(i).rounding_bill_to_party_id);
5325: PO_LOG.stmt(d_module_base,d_progress,' icx_session_id = '||l_zx_headers_tbl(i).icx_session_id);
5326: END LOOP;
5327: EXCEPTION
5320: PO_LOG.stmt(d_module_base,d_progress,' trx_description = '||l_zx_headers_tbl(i).trx_description);
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5324: PO_LOG.stmt(d_module_base,d_progress,' rounding_bill_to_party_id = '||l_zx_headers_tbl(i).rounding_bill_to_party_id);
5325: PO_LOG.stmt(d_module_base,d_progress,' icx_session_id = '||l_zx_headers_tbl(i).icx_session_id);
5326: END LOOP;
5327: EXCEPTION
5328: WHEN OTHERS THEN
5321: PO_LOG.stmt(d_module_base,d_progress,' trx_communicated_date = '||l_zx_headers_tbl(i).trx_communicated_date);
5322: PO_LOG.stmt(d_module_base,d_progress,' document_sub_type = '||l_zx_headers_tbl(i).document_sub_type);
5323: PO_LOG.stmt(d_module_base,d_progress,' provnl_tax_determination_date = '||l_zx_headers_tbl(i).provnl_tax_determination_date);
5324: PO_LOG.stmt(d_module_base,d_progress,' rounding_bill_to_party_id = '||l_zx_headers_tbl(i).rounding_bill_to_party_id);
5325: PO_LOG.stmt(d_module_base,d_progress,' icx_session_id = '||l_zx_headers_tbl(i).icx_session_id);
5326: END LOOP;
5327: EXCEPTION
5328: WHEN OTHERS THEN
5329: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5325: PO_LOG.stmt(d_module_base,d_progress,' icx_session_id = '||l_zx_headers_tbl(i).icx_session_id);
5326: END LOOP;
5327: EXCEPTION
5328: WHEN OTHERS THEN
5329: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5330: END log_header_tax_attributes;
5331:
5332:
5333:
5359: d_progress NUMBER := p_progress;
5360: TYPE zx_lines_type IS TABLE OF ZX_TRANSACTION_LINES_GT%ROWTYPE;
5361: l_zx_lines_tbl zx_lines_type;
5362: BEGIN
5363: PO_LOG.stmt(d_module_base,d_progress,'Contents of zx_transaction_lines_gt:');
5364:
5365: SELECT *
5366: BULK COLLECT INTO l_zx_lines_tbl
5367: FROM zx_transaction_lines_gt;
5366: BULK COLLECT INTO l_zx_lines_tbl
5367: FROM zx_transaction_lines_gt;
5368:
5369: FOR i IN 1..l_zx_lines_tbl.COUNT LOOP
5370: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5371: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_lines_tbl(i).application_id);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5367: FROM zx_transaction_lines_gt;
5368:
5369: FOR i IN 1..l_zx_lines_tbl.COUNT LOOP
5370: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5371: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_lines_tbl(i).application_id);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5368:
5369: FOR i IN 1..l_zx_lines_tbl.COUNT LOOP
5370: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5371: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_lines_tbl(i).application_id);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5369: FOR i IN 1..l_zx_lines_tbl.COUNT LOOP
5370: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5371: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_lines_tbl(i).application_id);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5370: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5371: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_lines_tbl(i).application_id);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5371: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_lines_tbl(i).application_id);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5372: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_lines_tbl(i).entity_code);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5373: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_lines_tbl(i).event_class_code);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5374: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_lines_tbl(i).trx_id);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5375: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_lines_tbl(i).trx_level_type);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5376: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_lines_tbl(i).trx_line_id);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5377: PO_LOG.stmt(d_module_base,d_progress,' line_level_action = '||l_zx_lines_tbl(i).line_level_action);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5378: PO_LOG.stmt(d_module_base,d_progress,' line_class = '||l_zx_lines_tbl(i).line_class);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5379: PO_LOG.stmt(d_module_base,d_progress,' trx_line_type = '||l_zx_lines_tbl(i).trx_line_type);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5380: PO_LOG.stmt(d_module_base,d_progress,' trx_line_date = '||l_zx_lines_tbl(i).trx_line_date);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5381: PO_LOG.stmt(d_module_base,d_progress,' trx_business_category = '||l_zx_lines_tbl(i).trx_business_category);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5382: PO_LOG.stmt(d_module_base,d_progress,' line_intended_use = '||l_zx_lines_tbl(i).line_intended_use);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5383: PO_LOG.stmt(d_module_base,d_progress,' user_defined_fisc_class = '||l_zx_lines_tbl(i).user_defined_fisc_class);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5384: PO_LOG.stmt(d_module_base,d_progress,' line_amt = '||l_zx_lines_tbl(i).line_amt);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5385: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_lines_tbl(i).trx_line_quantity);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5386: PO_LOG.stmt(d_module_base,d_progress,' product_id = '||l_zx_lines_tbl(i).product_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5387: PO_LOG.stmt(d_module_base,d_progress,' product_fisc_classification = '||l_zx_lines_tbl(i).product_fisc_classification);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5388: PO_LOG.stmt(d_module_base,d_progress,' uom_code = '||l_zx_lines_tbl(i).uom_code);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5389: PO_LOG.stmt(d_module_base,d_progress,' product_type = '||l_zx_lines_tbl(i).product_type);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5390: PO_LOG.stmt(d_module_base,d_progress,' product_code = '||l_zx_lines_tbl(i).product_code);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5391: PO_LOG.stmt(d_module_base,d_progress,' product_category = '||l_zx_lines_tbl(i).product_category);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5392: PO_LOG.stmt(d_module_base,d_progress,' fob_point = '||l_zx_lines_tbl(i).fob_point);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5393: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_id = '||l_zx_lines_tbl(i).ship_from_party_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5394: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_id = '||l_zx_lines_tbl(i).bill_from_party_id);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5395: PO_LOG.stmt(d_module_base,d_progress,' ship_from_party_site_id = '||l_zx_lines_tbl(i).ship_from_party_site_id);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5396: PO_LOG.stmt(d_module_base,d_progress,' bill_from_party_site_id = '||l_zx_lines_tbl(i).bill_from_party_site_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5397: PO_LOG.stmt(d_module_base,d_progress,' ship_to_location_id = '||l_zx_lines_tbl(i).ship_to_location_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5398: PO_LOG.stmt(d_module_base,d_progress,' ship_from_location_id = '||l_zx_lines_tbl(i).ship_from_location_id);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5399: PO_LOG.stmt(d_module_base,d_progress,' bill_to_location_id = '||l_zx_lines_tbl(i).bill_to_location_id);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5400: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_lines_tbl(i).account_ccid);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5401: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_application_id = '||l_zx_lines_tbl(i).ref_doc_application_id);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5402: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_entity_code = '||l_zx_lines_tbl(i).ref_doc_entity_code);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5403: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_event_class_code = '||l_zx_lines_tbl(i).ref_doc_event_class_code);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5404: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_id = '||l_zx_lines_tbl(i).ref_doc_trx_id);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5405: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_line_id = '||l_zx_lines_tbl(i).ref_doc_line_id);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5406: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key1 = '||l_zx_lines_tbl(i).line_trx_user_key1);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5407: PO_LOG.stmt(d_module_base,d_progress,' line_trx_user_key2 = '||l_zx_lines_tbl(i).line_trx_user_key2);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5408: PO_LOG.stmt(d_module_base,d_progress,' trx_line_number = '||l_zx_lines_tbl(i).trx_line_number);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5409: PO_LOG.stmt(d_module_base,d_progress,' trx_line_description = '||l_zx_lines_tbl(i).trx_line_description);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5410: PO_LOG.stmt(d_module_base,d_progress,' product_description = '||l_zx_lines_tbl(i).product_description);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5411: PO_LOG.stmt(d_module_base,d_progress,' assessable_value = '||l_zx_lines_tbl(i).assessable_value);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5412: PO_LOG.stmt(d_module_base,d_progress,' line_amt_includes_tax_flag = '||l_zx_lines_tbl(i).line_amt_includes_tax_flag);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5413: PO_LOG.stmt(d_module_base,d_progress,' input_tax_classification_code = '||l_zx_lines_tbl(i).input_tax_classification_code);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5414: PO_LOG.stmt(d_module_base,d_progress,' source_application_id = '||l_zx_lines_tbl(i).source_application_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5415: PO_LOG.stmt(d_module_base,d_progress,' source_entity_code = '||l_zx_lines_tbl(i).source_entity_code);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5416: PO_LOG.stmt(d_module_base,d_progress,' source_event_class_code = '||l_zx_lines_tbl(i).source_event_class_code);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5417: PO_LOG.stmt(d_module_base,d_progress,' source_trx_id = '||l_zx_lines_tbl(i).source_trx_id);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5418: PO_LOG.stmt(d_module_base,d_progress,' source_line_id = '||l_zx_lines_tbl(i).source_line_id);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5419: PO_LOG.stmt(d_module_base,d_progress,' source_trx_level_type = '||l_zx_lines_tbl(i).source_trx_level_type);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5420: PO_LOG.stmt(d_module_base,d_progress,' unit_price = '||l_zx_lines_tbl(i).unit_price);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5421: PO_LOG.stmt(d_module_base,d_progress,' ref_doc_trx_level_type = '||l_zx_lines_tbl(i).ref_doc_trx_level_type);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5422: PO_LOG.stmt(d_module_base,d_progress,' product_org_id = '||l_zx_lines_tbl(i).product_org_id);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5430: PO_LOG.stmt(d_module_base,d_progress,' trx_line_precision = '||l_zx_lines_tbl(i).trx_line_precision);
5423: PO_LOG.stmt(d_module_base,d_progress,' ship_to_party_id = '||l_zx_lines_tbl(i).ship_to_party_id);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5430: PO_LOG.stmt(d_module_base,d_progress,' trx_line_precision = '||l_zx_lines_tbl(i).trx_line_precision);
5431: PO_LOG.stmt(d_module_base,d_progress,' user_upd_det_factors_flag = '||l_zx_lines_tbl(i).user_upd_det_factors_flag);
5424: PO_LOG.stmt(d_module_base,d_progress,' bill_to_party_id = '||l_zx_lines_tbl(i).bill_to_party_id);
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5430: PO_LOG.stmt(d_module_base,d_progress,' trx_line_precision = '||l_zx_lines_tbl(i).trx_line_precision);
5431: PO_LOG.stmt(d_module_base,d_progress,' user_upd_det_factors_flag = '||l_zx_lines_tbl(i).user_upd_det_factors_flag);
5432: END LOOP;
5425: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_code = '||l_zx_lines_tbl(i).trx_line_currency_code);
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5430: PO_LOG.stmt(d_module_base,d_progress,' trx_line_precision = '||l_zx_lines_tbl(i).trx_line_precision);
5431: PO_LOG.stmt(d_module_base,d_progress,' user_upd_det_factors_flag = '||l_zx_lines_tbl(i).user_upd_det_factors_flag);
5432: END LOOP;
5433: EXCEPTION
5426: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_date = '||l_zx_lines_tbl(i).trx_line_currency_conv_date);
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5430: PO_LOG.stmt(d_module_base,d_progress,' trx_line_precision = '||l_zx_lines_tbl(i).trx_line_precision);
5431: PO_LOG.stmt(d_module_base,d_progress,' user_upd_det_factors_flag = '||l_zx_lines_tbl(i).user_upd_det_factors_flag);
5432: END LOOP;
5433: EXCEPTION
5434: WHEN OTHERS THEN
5427: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_rate = '||l_zx_lines_tbl(i).trx_line_currency_conv_rate);
5428: PO_LOG.stmt(d_module_base,d_progress,' trx_line_currency_conv_type = '||l_zx_lines_tbl(i).trx_line_currency_conv_type);
5429: PO_LOG.stmt(d_module_base,d_progress,' trx_line_mau = '||l_zx_lines_tbl(i).trx_line_mau);
5430: PO_LOG.stmt(d_module_base,d_progress,' trx_line_precision = '||l_zx_lines_tbl(i).trx_line_precision);
5431: PO_LOG.stmt(d_module_base,d_progress,' user_upd_det_factors_flag = '||l_zx_lines_tbl(i).user_upd_det_factors_flag);
5432: END LOOP;
5433: EXCEPTION
5434: WHEN OTHERS THEN
5435: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5431: PO_LOG.stmt(d_module_base,d_progress,' user_upd_det_factors_flag = '||l_zx_lines_tbl(i).user_upd_det_factors_flag);
5432: END LOOP;
5433: EXCEPTION
5434: WHEN OTHERS THEN
5435: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5436: END log_line_tax_attributes;
5437:
5438:
5439:
5465: d_progress NUMBER := p_progress;
5466: TYPE zx_dists_type IS TABLE OF ZX_ITM_DISTRIBUTIONS_GT%ROWTYPE;
5467: l_zx_dists_tbl zx_dists_type;
5468: BEGIN
5469: PO_LOG.stmt(d_module_base,d_progress,'Contents of zx_itm_distributions_gt:');
5470:
5471: SELECT *
5472: BULK COLLECT INTO l_zx_dists_tbl
5473: FROM zx_itm_distributions_gt;
5472: BULK COLLECT INTO l_zx_dists_tbl
5473: FROM zx_itm_distributions_gt;
5474:
5475: FOR i IN 1..l_zx_dists_tbl.COUNT LOOP
5476: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5477: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_dists_tbl(i).application_id);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5473: FROM zx_itm_distributions_gt;
5474:
5475: FOR i IN 1..l_zx_dists_tbl.COUNT LOOP
5476: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5477: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_dists_tbl(i).application_id);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5474:
5475: FOR i IN 1..l_zx_dists_tbl.COUNT LOOP
5476: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5477: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_dists_tbl(i).application_id);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5475: FOR i IN 1..l_zx_dists_tbl.COUNT LOOP
5476: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5477: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_dists_tbl(i).application_id);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5476: PO_LOG.stmt(d_module_base,d_progress,' row '||i||':');
5477: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_dists_tbl(i).application_id);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5477: PO_LOG.stmt(d_module_base,d_progress,' application_id = '||l_zx_dists_tbl(i).application_id);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5478: PO_LOG.stmt(d_module_base,d_progress,' entity_code = '||l_zx_dists_tbl(i).entity_code);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5479: PO_LOG.stmt(d_module_base,d_progress,' event_class_code = '||l_zx_dists_tbl(i).event_class_code);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5480: PO_LOG.stmt(d_module_base,d_progress,' trx_id = '||l_zx_dists_tbl(i).trx_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5481: PO_LOG.stmt(d_module_base,d_progress,' trx_line_id = '||l_zx_dists_tbl(i).trx_line_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5482: PO_LOG.stmt(d_module_base,d_progress,' trx_level_type = '||l_zx_dists_tbl(i).trx_level_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5483: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_id = '||l_zx_dists_tbl(i).trx_line_dist_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5484: PO_LOG.stmt(d_module_base,d_progress,' dist_level_action = '||l_zx_dists_tbl(i).dist_level_action);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5485: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_date = '||l_zx_dists_tbl(i).trx_line_dist_date);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5486: PO_LOG.stmt(d_module_base,d_progress,' item_dist_number = '||l_zx_dists_tbl(i).item_dist_number);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5487: PO_LOG.stmt(d_module_base,d_progress,' task_id = '||l_zx_dists_tbl(i).task_id);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5488: PO_LOG.stmt(d_module_base,d_progress,' award_id = '||l_zx_dists_tbl(i).award_id);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5489: PO_LOG.stmt(d_module_base,d_progress,' project_id = '||l_zx_dists_tbl(i).project_id);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5490: PO_LOG.stmt(d_module_base,d_progress,' expenditure_type = '||l_zx_dists_tbl(i).expenditure_type);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5491: PO_LOG.stmt(d_module_base,d_progress,' expenditure_organization_id = '||l_zx_dists_tbl(i).expenditure_organization_id);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5499: PO_LOG.stmt(d_module_base,d_progress,' dist_intended_use = '||l_zx_dists_tbl(i).dist_intended_use);
5492: PO_LOG.stmt(d_module_base,d_progress,' expenditure_item_date = '||l_zx_dists_tbl(i).expenditure_item_date);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5499: PO_LOG.stmt(d_module_base,d_progress,' dist_intended_use = '||l_zx_dists_tbl(i).dist_intended_use);
5500: PO_LOG.stmt(d_module_base,d_progress,' historical_flag = '||l_zx_dists_tbl(i).historical_flag);
5493: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_amt = '||l_zx_dists_tbl(i).trx_line_dist_amt);
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5499: PO_LOG.stmt(d_module_base,d_progress,' dist_intended_use = '||l_zx_dists_tbl(i).dist_intended_use);
5500: PO_LOG.stmt(d_module_base,d_progress,' historical_flag = '||l_zx_dists_tbl(i).historical_flag);
5501: END LOOP;
5494: PO_LOG.stmt(d_module_base,d_progress,' trx_line_dist_qty = '||l_zx_dists_tbl(i).trx_line_dist_qty);
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5499: PO_LOG.stmt(d_module_base,d_progress,' dist_intended_use = '||l_zx_dists_tbl(i).dist_intended_use);
5500: PO_LOG.stmt(d_module_base,d_progress,' historical_flag = '||l_zx_dists_tbl(i).historical_flag);
5501: END LOOP;
5502: EXCEPTION
5495: PO_LOG.stmt(d_module_base,d_progress,' trx_line_quantity = '||l_zx_dists_tbl(i).trx_line_quantity);
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5499: PO_LOG.stmt(d_module_base,d_progress,' dist_intended_use = '||l_zx_dists_tbl(i).dist_intended_use);
5500: PO_LOG.stmt(d_module_base,d_progress,' historical_flag = '||l_zx_dists_tbl(i).historical_flag);
5501: END LOOP;
5502: EXCEPTION
5503: WHEN OTHERS THEN
5496: PO_LOG.stmt(d_module_base,d_progress,' account_ccid = '||l_zx_dists_tbl(i).account_ccid);
5497: PO_LOG.stmt(d_module_base,d_progress,' currency_exchange_rate = '||l_zx_dists_tbl(i).currency_exchange_rate);
5498: PO_LOG.stmt(d_module_base,d_progress,' overriding_recovery_rate = '||l_zx_dists_tbl(i).overriding_recovery_rate);
5499: PO_LOG.stmt(d_module_base,d_progress,' dist_intended_use = '||l_zx_dists_tbl(i).dist_intended_use);
5500: PO_LOG.stmt(d_module_base,d_progress,' historical_flag = '||l_zx_dists_tbl(i).historical_flag);
5501: END LOOP;
5502: EXCEPTION
5503: WHEN OTHERS THEN
5504: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5500: PO_LOG.stmt(d_module_base,d_progress,' historical_flag = '||l_zx_dists_tbl(i).historical_flag);
5501: END LOOP;
5502: EXCEPTION
5503: WHEN OTHERS THEN
5504: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5505: END log_dist_tax_attributes;
5506:
5507:
5508:
5552: INTO l_header_tauc
5553: FROM po_headers_all ph
5554: WHERE ph.po_header_id = p_po_header_id_tbl(i);
5555:
5556: PO_LOG.stmt(d_module_base,d_progress,' po_header_id = '||p_po_header_id_tbl(i)||':'||l_header_tauc);
5557:
5558: l_line_id_tbl := null; l_line_tauc_tbl := null;
5559: SELECT pl.po_line_id, pl.tax_attribute_update_code
5560: BULK COLLECT INTO l_line_id_tbl, l_line_tauc_tbl
5561: FROM po_lines_all pl
5562: WHERE pl.po_header_id = p_po_header_id_tbl(i);
5563:
5564: FOR j IN 1..l_line_id_tbl.COUNT LOOP
5565: PO_LOG.stmt(d_module_base,d_progress,' po_line_id = '||l_line_id_tbl(j)||':'||l_line_tauc_tbl(j));
5566:
5567: l_ship_id_tbl := null; l_ship_tauc_tbl := null;
5568: SELECT pll.line_location_id, pll.tax_attribute_update_code
5569: BULK COLLECT INTO l_ship_id_tbl, l_ship_tauc_tbl
5570: FROM po_line_locations_all pll
5571: WHERE pll.po_line_id = l_line_id_tbl(j);
5572:
5573: FOR k IN 1..l_ship_id_tbl.COUNT LOOP
5574: PO_LOG.stmt(d_module_base,d_progress,' line_location_id = '||l_ship_id_tbl(k)||':'||l_ship_tauc_tbl(k));
5575:
5576: l_dist_id_tbl := null; l_dist_tauc_tbl := null;
5577: SELECT pd.po_distribution_id, pd.tax_attribute_update_code
5578: BULK COLLECT INTO l_dist_id_tbl, l_dist_tauc_tbl
5579: FROM po_distributions_all pd
5580: WHERE pd.line_location_id = l_ship_id_tbl(k);
5581:
5582: FOR l IN 1..l_dist_id_tbl.COUNT LOOP
5583: PO_LOG.stmt(d_module_base,d_progress,' po_distribution_id = '||l_dist_id_tbl(l)||':'||l_dist_tauc_tbl(l));
5584: END LOOP;
5585:
5586: END LOOP;
5587:
5590: END LOOP;
5591:
5592: EXCEPTION
5593: WHEN OTHERS THEN
5594: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5595: END log_po_tauc;
5596:
5597:
5598:
5640: INTO l_header_tauc
5641: FROM po_releases_all pr
5642: WHERE pr.po_release_id = p_po_release_id_tbl(i);
5643:
5644: PO_LOG.stmt(d_module_base,d_progress,' po_release_id = '||p_po_release_id_tbl(i)||':'||l_header_tauc);
5645:
5646: l_ship_id_tbl := null; l_ship_tauc_tbl := null;
5647: SELECT pll.line_location_id, pll.tax_attribute_update_code
5648: BULK COLLECT INTO l_ship_id_tbl, l_ship_tauc_tbl
5649: FROM po_line_locations_all pll
5650: WHERE pll.po_release_id = p_po_release_id_tbl(i);
5651:
5652: FOR j IN 1..l_ship_id_tbl.COUNT LOOP
5653: PO_LOG.stmt(d_module_base,d_progress,' line_location_id = '||l_ship_id_tbl(j)||':'||l_ship_tauc_tbl(j));
5654:
5655: l_dist_id_tbl := null; l_dist_tauc_tbl := null;
5656: SELECT pd.po_distribution_id, pd.tax_attribute_update_code
5657: BULK COLLECT INTO l_dist_id_tbl, l_dist_tauc_tbl
5658: FROM po_distributions_all pd
5659: WHERE pd.line_location_id = l_ship_id_tbl(j);
5660:
5661: FOR k IN 1..l_dist_id_tbl.COUNT LOOP
5662: PO_LOG.stmt(d_module_base,d_progress,' po_distribution_id = '||l_dist_id_tbl(k)||':'||l_dist_tauc_tbl(k));
5663: END LOOP;
5664:
5665: END LOOP;
5666:
5667: END LOOP;
5668:
5669: EXCEPTION
5670: WHEN OTHERS THEN
5671: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5672: END log_rel_tauc;
5673:
5674:
5675:
5711: INTO l_header_tauc
5712: FROM po_requisition_headers_all prh
5713: WHERE prh.requisition_header_id = p_requisition_header_id;
5714:
5715: PO_LOG.stmt(d_module_base,d_progress,' requisition_header_id = '||p_requisition_header_id||':'||l_header_tauc);
5716:
5717: l_line_id_tbl := null; l_line_tauc_tbl := null;
5718: SELECT prl.requisition_line_id, prl.tax_attribute_update_code
5719: BULK COLLECT INTO l_line_id_tbl, l_line_tauc_tbl
5720: FROM po_requisition_lines_all prl
5721: WHERE prl.requisition_header_id = p_requisition_header_id;
5722:
5723: FOR i IN 1..l_line_id_tbl.COUNT LOOP
5724: PO_LOG.stmt(d_module_base,d_progress,' requisition_line_id = '||l_line_id_tbl(i)||':'||l_line_tauc_tbl(i));
5725: END LOOP;
5726:
5727: EXCEPTION
5728: WHEN OTHERS THEN
5725: END LOOP;
5726:
5727: EXCEPTION
5728: WHEN OTHERS THEN
5729: PO_LOG.stmt(d_module_base,d_progress,'Failure while writing log '||SQLCODE||SQLERRM);
5730: END log_req_tauc;
5731:
5732:
5733: -----------------------------------------------------------------------------
5756: p_progress IN NUMBER) IS
5757: d_module_base CONSTANT VARCHAR2(100) := p_module_base;
5758: d_progress NUMBER := p_progress;
5759: BEGIN
5760: PO_LOG.stmt(d_module_base,d_progress,'Global tax error record:');
5761: FOR i in 1..G_TAX_ERRORS_TBL.error_level.COUNT LOOP
5762: PO_LOG.stmt(d_module_base,d_progress,' error level '||G_TAX_ERRORS_TBL.error_level(i));
5763: PO_LOG.stmt(d_module_base,d_progress,' '||G_TAX_ERRORS_TBL.document_type_code(i)||' '||
5764: G_TAX_ERRORS_TBL.document_num(i)||'(id '||
5758: d_progress NUMBER := p_progress;
5759: BEGIN
5760: PO_LOG.stmt(d_module_base,d_progress,'Global tax error record:');
5761: FOR i in 1..G_TAX_ERRORS_TBL.error_level.COUNT LOOP
5762: PO_LOG.stmt(d_module_base,d_progress,' error level '||G_TAX_ERRORS_TBL.error_level(i));
5763: PO_LOG.stmt(d_module_base,d_progress,' '||G_TAX_ERRORS_TBL.document_type_code(i)||' '||
5764: G_TAX_ERRORS_TBL.document_num(i)||'(id '||
5765: G_TAX_ERRORS_TBL.document_id(i)||'), '||
5766: 'Line '||G_TAX_ERRORS_TBL.line_num(i)||'(id '||
5759: BEGIN
5760: PO_LOG.stmt(d_module_base,d_progress,'Global tax error record:');
5761: FOR i in 1..G_TAX_ERRORS_TBL.error_level.COUNT LOOP
5762: PO_LOG.stmt(d_module_base,d_progress,' error level '||G_TAX_ERRORS_TBL.error_level(i));
5763: PO_LOG.stmt(d_module_base,d_progress,' '||G_TAX_ERRORS_TBL.document_type_code(i)||' '||
5764: G_TAX_ERRORS_TBL.document_num(i)||'(id '||
5765: G_TAX_ERRORS_TBL.document_id(i)||'), '||
5766: 'Line '||G_TAX_ERRORS_TBL.line_num(i)||'(id '||
5767: G_TAX_ERRORS_TBL.line_id(i)||'), '||
5768: 'Shipment '||G_TAX_ERRORS_TBL.shipment_num(i)||'(id '||
5769: G_TAX_ERRORS_TBL.line_location_id(i)||'), '||
5770: 'Distribution '||G_TAX_ERRORS_TBL.distribution_num(i)||'(id '||
5771: G_TAX_ERRORS_TBL.distribution_id(i)||')');
5772: PO_LOG.stmt(d_module_base,d_progress,' '||G_TAX_ERRORS_TBL.message_text(i));
5773: END LOOP;
5774: EXCEPTION
5775: WHEN OTHERS THEN
5776: PO_LOG.exc(d_module_base,d_progress,'Failure while logging global error record '||SQLCODE||SQLERRM);
5772: PO_LOG.stmt(d_module_base,d_progress,' '||G_TAX_ERRORS_TBL.message_text(i));
5773: END LOOP;
5774: EXCEPTION
5775: WHEN OTHERS THEN
5776: PO_LOG.exc(d_module_base,d_progress,'Failure while logging global error record '||SQLCODE||SQLERRM);
5777: END log_global_error_record;
5778:
5779:
5780: -----------------------------------------------------------------------------
5818: x_msg_count OUT NOCOPY NUMBER,
5819: x_msg_data OUT NOCOPY VARCHAR2
5820: ) IS
5821: l_module_name CONSTANT VARCHAR2(100) := 'CANCEL_TAX_LINES';
5822: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
5823: D_PACKAGE_BASE, l_module_name);
5824: d_progress NUMBER;
5825: l_org_id PO_HEADERS_ALL.org_id%TYPE;
5826: BEGIN
5824: d_progress NUMBER;
5825: l_org_id PO_HEADERS_ALL.org_id%TYPE;
5826: BEGIN
5827:
5828: IF (PO_LOG.d_proc) THEN
5829: PO_LOG.proc_begin(d_module_base);
5830: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
5831: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
5832: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
5825: l_org_id PO_HEADERS_ALL.org_id%TYPE;
5826: BEGIN
5827:
5828: IF (PO_LOG.d_proc) THEN
5829: PO_LOG.proc_begin(d_module_base);
5830: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
5831: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
5832: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
5833: PO_LOG.proc_begin(d_module_base, 'p_shipment_id', p_shipment_id);
5826: BEGIN
5827:
5828: IF (PO_LOG.d_proc) THEN
5829: PO_LOG.proc_begin(d_module_base);
5830: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
5831: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
5832: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
5833: PO_LOG.proc_begin(d_module_base, 'p_shipment_id', p_shipment_id);
5834: END IF;
5827:
5828: IF (PO_LOG.d_proc) THEN
5829: PO_LOG.proc_begin(d_module_base);
5830: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
5831: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
5832: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
5833: PO_LOG.proc_begin(d_module_base, 'p_shipment_id', p_shipment_id);
5834: END IF;
5835:
5828: IF (PO_LOG.d_proc) THEN
5829: PO_LOG.proc_begin(d_module_base);
5830: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
5831: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
5832: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
5833: PO_LOG.proc_begin(d_module_base, 'p_shipment_id', p_shipment_id);
5834: END IF;
5835:
5836: d_progress := 0;
5829: PO_LOG.proc_begin(d_module_base);
5830: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
5831: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
5832: PO_LOG.proc_begin(d_module_base, 'p_line_id', p_line_id);
5833: PO_LOG.proc_begin(d_module_base, 'p_shipment_id', p_shipment_id);
5834: END IF;
5835:
5836: d_progress := 0;
5837: IF p_document_type = PO_CONSTANTS_SV.PO THEN
5894: log_header_tax_attributes(d_module_base,d_progress);
5895: log_line_tax_attributes(d_module_base,d_progress);
5896:
5897: d_progress := 50;
5898: IF (PO_LOG.d_stmt) THEN
5899: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.calculate_tax');
5900: END IF;
5901:
5902: ZX_API_PUB.calculate_tax(
5895: log_line_tax_attributes(d_module_base,d_progress);
5896:
5897: d_progress := 50;
5898: IF (PO_LOG.d_stmt) THEN
5899: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.calculate_tax');
5900: END IF;
5901:
5902: ZX_API_PUB.calculate_tax(
5903: p_api_version => 1.0,
5908: x_msg_count => x_msg_count,
5909: x_msg_data => x_msg_data);
5910:
5911: d_progress := 60;
5912: IF (PO_LOG.d_stmt) THEN
5913: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5914: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5915: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5916: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5909: x_msg_data => x_msg_data);
5910:
5911: d_progress := 60;
5912: IF (PO_LOG.d_stmt) THEN
5913: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5914: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5915: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5916: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5917: END IF;
5910:
5911: d_progress := 60;
5912: IF (PO_LOG.d_stmt) THEN
5913: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5914: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5915: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5916: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5917: END IF;
5918:
5911: d_progress := 60;
5912: IF (PO_LOG.d_stmt) THEN
5913: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5914: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5915: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5916: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5917: END IF;
5918:
5919: ELSIF p_line_id <> 0 THEN
5912: IF (PO_LOG.d_stmt) THEN
5913: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5914: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5915: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5916: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5917: END IF;
5918:
5919: ELSIF p_line_id <> 0 THEN
5920: -- Partial document cancel. Populate eTax GT tables and call calculate_tax
5975: log_header_tax_attributes(d_module_base,d_progress);
5976: log_line_tax_attributes(d_module_base,d_progress);
5977:
5978: d_progress := 100;
5979: IF (PO_LOG.d_stmt) THEN
5980: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.calculate_tax');
5981: END IF;
5982:
5983: ZX_API_PUB.calculate_tax(
5976: log_line_tax_attributes(d_module_base,d_progress);
5977:
5978: d_progress := 100;
5979: IF (PO_LOG.d_stmt) THEN
5980: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.calculate_tax');
5981: END IF;
5982:
5983: ZX_API_PUB.calculate_tax(
5984: p_api_version => 1.0,
5989: x_msg_count => x_msg_count,
5990: x_msg_data => x_msg_data);
5991:
5992: d_progress := 110;
5993: IF (PO_LOG.d_stmt) THEN
5994: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5995: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5996: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5997: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5990: x_msg_data => x_msg_data);
5991:
5992: d_progress := 110;
5993: IF (PO_LOG.d_stmt) THEN
5994: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5995: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5996: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5997: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5998: END IF;
5991:
5992: d_progress := 110;
5993: IF (PO_LOG.d_stmt) THEN
5994: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5995: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5996: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5997: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5998: END IF;
5999: ELSIF p_document_id <> 0 THEN
5992: d_progress := 110;
5993: IF (PO_LOG.d_stmt) THEN
5994: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5995: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5996: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5997: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5998: END IF;
5999: ELSIF p_document_id <> 0 THEN
6000: -- Complete document cancel. Call global_document_update API
5993: IF (PO_LOG.d_stmt) THEN
5994: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
5995: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
5996: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
5997: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
5998: END IF;
5999: ELSIF p_document_id <> 0 THEN
6000: -- Complete document cancel. Call global_document_update API
6001: -- in Cancel mode
6005: FROM po_headers_all ph
6006: WHERE ph.po_header_id = p_document_id;
6007:
6008: d_progress := 130;
6009: IF (PO_LOG.d_stmt) THEN
6010: PO_LOG.stmt(d_module_base,d_progress,'l_org_id', l_org_id);
6011: END IF;
6012:
6013: d_progress := 140;
6006: WHERE ph.po_header_id = p_document_id;
6007:
6008: d_progress := 130;
6009: IF (PO_LOG.d_stmt) THEN
6010: PO_LOG.stmt(d_module_base,d_progress,'l_org_id', l_org_id);
6011: END IF;
6012:
6013: d_progress := 140;
6014: PO_TAX_INTERFACE_PVT.global_document_update(
6024: p_document_id => p_document_id,
6025: p_event_type_code => PO_CONSTANTS_SV.PO_CANCELLED);
6026:
6027: d_progress := 150;
6028: IF (PO_LOG.d_stmt) THEN
6029: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6030: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6031: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6032: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6025: p_event_type_code => PO_CONSTANTS_SV.PO_CANCELLED);
6026:
6027: d_progress := 150;
6028: IF (PO_LOG.d_stmt) THEN
6029: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6030: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6031: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6032: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6033: END IF;
6026:
6027: d_progress := 150;
6028: IF (PO_LOG.d_stmt) THEN
6029: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6030: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6031: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6032: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6033: END IF;
6034: END IF; --IF p_shipment_id IS NOT NULL
6027: d_progress := 150;
6028: IF (PO_LOG.d_stmt) THEN
6029: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6030: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6031: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6032: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6033: END IF;
6034: END IF; --IF p_shipment_id IS NOT NULL
6035: ELSIF p_document_type = PO_CONSTANTS_SV.RELEASE THEN
6028: IF (PO_LOG.d_stmt) THEN
6029: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6030: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6031: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6032: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6033: END IF;
6034: END IF; --IF p_shipment_id IS NOT NULL
6035: ELSIF p_document_type = PO_CONSTANTS_SV.RELEASE THEN
6036: d_progress := 160;
6093: log_header_tax_attributes(d_module_base,d_progress);
6094: log_line_tax_attributes(d_module_base,d_progress);
6095:
6096: d_progress := 200;
6097: IF (PO_LOG.d_stmt) THEN
6098: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.calculate_tax');
6099: END IF;
6100:
6101: ZX_API_PUB.calculate_tax(
6094: log_line_tax_attributes(d_module_base,d_progress);
6095:
6096: d_progress := 200;
6097: IF (PO_LOG.d_stmt) THEN
6098: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.calculate_tax');
6099: END IF;
6100:
6101: ZX_API_PUB.calculate_tax(
6102: p_api_version => 1.0,
6107: x_msg_count => x_msg_count,
6108: x_msg_data => x_msg_data);
6109:
6110: d_progress := 210;
6111: IF (PO_LOG.d_stmt) THEN
6112: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
6113: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6114: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6115: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6108: x_msg_data => x_msg_data);
6109:
6110: d_progress := 210;
6111: IF (PO_LOG.d_stmt) THEN
6112: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
6113: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6114: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6115: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6116: END IF;
6109:
6110: d_progress := 210;
6111: IF (PO_LOG.d_stmt) THEN
6112: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
6113: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6114: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6115: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6116: END IF;
6117:
6110: d_progress := 210;
6111: IF (PO_LOG.d_stmt) THEN
6112: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
6113: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6114: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6115: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6116: END IF;
6117:
6118: ELSIF p_document_id <> 0 THEN
6111: IF (PO_LOG.d_stmt) THEN
6112: PO_LOG.stmt(d_module_base,d_progress,'After Calling ZX_API_PUB.calculate_tax');
6113: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6114: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6115: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6116: END IF;
6117:
6118: ELSIF p_document_id <> 0 THEN
6119: -- Complete document cancel. Call global_document_update API
6124: FROM po_releases_all pr
6125: WHERE pr.po_release_id = p_document_id;
6126:
6127: d_progress := 230;
6128: IF (PO_LOG.d_stmt) THEN
6129: PO_LOG.stmt(d_module_base,d_progress,'l_org_id', l_org_id);
6130: END IF;
6131:
6132: d_progress := 240;
6125: WHERE pr.po_release_id = p_document_id;
6126:
6127: d_progress := 230;
6128: IF (PO_LOG.d_stmt) THEN
6129: PO_LOG.stmt(d_module_base,d_progress,'l_org_id', l_org_id);
6130: END IF;
6131:
6132: d_progress := 240;
6133: PO_TAX_INTERFACE_PVT.global_document_update(
6143: p_document_id => p_document_id,
6144: p_event_type_code => PO_CONSTANTS_SV.REL_CANCELLED);
6145:
6146: d_progress := 250;
6147: IF (PO_LOG.d_stmt) THEN
6148: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6149: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6150: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6151: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6144: p_event_type_code => PO_CONSTANTS_SV.REL_CANCELLED);
6145:
6146: d_progress := 250;
6147: IF (PO_LOG.d_stmt) THEN
6148: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6149: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6150: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6151: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6152: END IF;
6145:
6146: d_progress := 250;
6147: IF (PO_LOG.d_stmt) THEN
6148: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6149: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6150: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6151: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6152: END IF;
6153:
6146: d_progress := 250;
6147: IF (PO_LOG.d_stmt) THEN
6148: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6149: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6150: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6151: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6152: END IF;
6153:
6154: END IF; --IF p_shipment_id IS NOT NULL
6147: IF (PO_LOG.d_stmt) THEN
6148: PO_LOG.stmt(d_module_base,d_progress,'After Calling PO_TAX_INTERFACE_PVT.global_document_update');
6149: PO_LOG.stmt(d_module_base,d_progress,'x_return_status', x_return_status);
6150: PO_LOG.stmt(d_module_base,d_progress,'x_msg_count', x_msg_count);
6151: PO_LOG.stmt(d_module_base,d_progress,'x_msg_data', x_msg_data);
6152: END IF;
6153:
6154: END IF; --IF p_shipment_id IS NOT NULL
6155: END IF; --IF p_document_type = PO_CONSTANTS_SV.PO
6154: END IF; --IF p_shipment_id IS NOT NULL
6155: END IF; --IF p_document_type = PO_CONSTANTS_SV.PO
6156:
6157: d_progress := 260;
6158: IF (PO_LOG.d_proc) THEN
6159: PO_LOG.proc_end(d_module_base);
6160: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6161: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6162: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6155: END IF; --IF p_document_type = PO_CONSTANTS_SV.PO
6156:
6157: d_progress := 260;
6158: IF (PO_LOG.d_proc) THEN
6159: PO_LOG.proc_end(d_module_base);
6160: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6161: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6162: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6163: END IF;
6156:
6157: d_progress := 260;
6158: IF (PO_LOG.d_proc) THEN
6159: PO_LOG.proc_end(d_module_base);
6160: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6161: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6162: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6163: END IF;
6164:
6157: d_progress := 260;
6158: IF (PO_LOG.d_proc) THEN
6159: PO_LOG.proc_end(d_module_base);
6160: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6161: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6162: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6163: END IF;
6164:
6165: d_progress := 30;
6158: IF (PO_LOG.d_proc) THEN
6159: PO_LOG.proc_end(d_module_base);
6160: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6161: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6162: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6163: END IF;
6164:
6165: d_progress := 30;
6166: EXCEPTION
6165: d_progress := 30;
6166: EXCEPTION
6167: WHEN OTHERS THEN
6168: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6169: IF (PO_LOG.d_exc) THEN
6170: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure cancel_tax_lines');
6171: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6172: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6173: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6166: EXCEPTION
6167: WHEN OTHERS THEN
6168: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6169: IF (PO_LOG.d_exc) THEN
6170: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure cancel_tax_lines');
6171: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6172: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6173: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6174: END IF;
6167: WHEN OTHERS THEN
6168: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6169: IF (PO_LOG.d_exc) THEN
6170: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure cancel_tax_lines');
6171: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6172: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6173: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6174: END IF;
6175: END cancel_tax_lines;
6168: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6169: IF (PO_LOG.d_exc) THEN
6170: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure cancel_tax_lines');
6171: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6172: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6173: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6174: END IF;
6175: END cancel_tax_lines;
6176:
6169: IF (PO_LOG.d_exc) THEN
6170: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure cancel_tax_lines');
6171: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6172: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6173: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6174: END IF;
6175: END cancel_tax_lines;
6176:
6177:
6225: p_document_id IN NUMBER,
6226: p_event_type_code IN VARCHAR2
6227: ) IS
6228: l_module_name CONSTANT VARCHAR2(100) := 'GLOBAL_DOCUMENT_UPDATE';
6229: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
6230: D_PACKAGE_BASE, l_module_name);
6231: d_progress NUMBER;
6232: l_trx_rec ZX_API_PUB.transaction_rec_type;
6233: BEGIN
6230: D_PACKAGE_BASE, l_module_name);
6231: d_progress NUMBER;
6232: l_trx_rec ZX_API_PUB.transaction_rec_type;
6233: BEGIN
6234: IF (PO_LOG.d_proc) THEN
6235: PO_LOG.proc_begin(d_module_base);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6231: d_progress NUMBER;
6232: l_trx_rec ZX_API_PUB.transaction_rec_type;
6233: BEGIN
6234: IF (PO_LOG.d_proc) THEN
6235: PO_LOG.proc_begin(d_module_base);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6232: l_trx_rec ZX_API_PUB.transaction_rec_type;
6233: BEGIN
6234: IF (PO_LOG.d_proc) THEN
6235: PO_LOG.proc_begin(d_module_base);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6233: BEGIN
6234: IF (PO_LOG.d_proc) THEN
6235: PO_LOG.proc_begin(d_module_base);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6234: IF (PO_LOG.d_proc) THEN
6235: PO_LOG.proc_begin(d_module_base);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6242: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6235: PO_LOG.proc_begin(d_module_base);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6242: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6243: PO_LOG.proc_begin(d_module_base, 'p_event_type_code', p_event_type_code);
6236: PO_LOG.proc_begin(d_module_base, 'p_api_version', p_api_version);
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6242: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6243: PO_LOG.proc_begin(d_module_base, 'p_event_type_code', p_event_type_code);
6244: END IF;
6237: PO_LOG.proc_begin(d_module_base, 'p_init_msg_list', p_init_msg_list);
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6242: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6243: PO_LOG.proc_begin(d_module_base, 'p_event_type_code', p_event_type_code);
6244: END IF;
6245:
6238: PO_LOG.proc_begin(d_module_base, 'p_commit', p_commit);
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6242: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6243: PO_LOG.proc_begin(d_module_base, 'p_event_type_code', p_event_type_code);
6244: END IF;
6245:
6246: d_progress := 0;
6239: PO_LOG.proc_begin(d_module_base, 'p_validation_level', p_validation_level);
6240: PO_LOG.proc_begin(d_module_base, 'p_org_id', p_org_id);
6241: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6242: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6243: PO_LOG.proc_begin(d_module_base, 'p_event_type_code', p_event_type_code);
6244: END IF;
6245:
6246: d_progress := 0;
6247: IF p_document_type = PO_CONSTANTS_SV.PO THEN
6259: l_trx_rec.trx_id := p_document_id;
6260: l_trx_rec.application_doc_status := null;
6261:
6262: d_progress := 20;
6263: IF (PO_LOG.d_stmt) THEN
6264: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_id', l_trx_rec.application_id);
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6260: l_trx_rec.application_doc_status := null;
6261:
6262: d_progress := 20;
6263: IF (PO_LOG.d_stmt) THEN
6264: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_id', l_trx_rec.application_id);
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6261:
6262: d_progress := 20;
6263: IF (PO_LOG.d_stmt) THEN
6264: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_id', l_trx_rec.application_id);
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6262: d_progress := 20;
6263: IF (PO_LOG.d_stmt) THEN
6264: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_id', l_trx_rec.application_id);
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6270: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_doc_status', l_trx_rec.application_doc_status);
6263: IF (PO_LOG.d_stmt) THEN
6264: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_id', l_trx_rec.application_id);
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6270: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_doc_status', l_trx_rec.application_doc_status);
6271: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.global_document_update');
6264: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_id', l_trx_rec.application_id);
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6270: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_doc_status', l_trx_rec.application_doc_status);
6271: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.global_document_update');
6272: END IF;
6265: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.entity_code', l_trx_rec.entity_code);
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6270: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_doc_status', l_trx_rec.application_doc_status);
6271: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.global_document_update');
6272: END IF;
6273:
6266: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_class_code', l_trx_rec.event_class_code);
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6270: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_doc_status', l_trx_rec.application_doc_status);
6271: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.global_document_update');
6272: END IF;
6273:
6274: d_progress := 30;
6267: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.internal_organization_id', l_trx_rec.internal_organization_id);
6268: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.event_type_code', l_trx_rec.event_type_code);
6269: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.trx_id', l_trx_rec.trx_id);
6270: PO_LOG.stmt(d_module_base,d_progress,'l_trx_rec.application_doc_status', l_trx_rec.application_doc_status);
6271: PO_LOG.stmt(d_module_base,d_progress,'Before Calling ZX_API_PUB.global_document_update');
6272: END IF;
6273:
6274: d_progress := 30;
6275: ZX_API_PUB.global_document_update(
6282: x_msg_data => x_msg_data,
6283: p_transaction_rec => l_trx_rec);
6284:
6285: d_progress := 40;
6286: IF (PO_LOG.d_proc) THEN
6287: PO_LOG.proc_end(d_module_base);
6288: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6289: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6290: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6283: p_transaction_rec => l_trx_rec);
6284:
6285: d_progress := 40;
6286: IF (PO_LOG.d_proc) THEN
6287: PO_LOG.proc_end(d_module_base);
6288: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6289: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6290: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6291: END IF;
6284:
6285: d_progress := 40;
6286: IF (PO_LOG.d_proc) THEN
6287: PO_LOG.proc_end(d_module_base);
6288: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6289: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6290: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6291: END IF;
6292:
6285: d_progress := 40;
6286: IF (PO_LOG.d_proc) THEN
6287: PO_LOG.proc_end(d_module_base);
6288: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6289: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6290: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6291: END IF;
6292:
6293: d_progress := 50;
6286: IF (PO_LOG.d_proc) THEN
6287: PO_LOG.proc_end(d_module_base);
6288: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6289: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6290: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6291: END IF;
6292:
6293: d_progress := 50;
6294: EXCEPTION
6293: d_progress := 50;
6294: EXCEPTION
6295: WHEN OTHERS THEN
6296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6297: IF (PO_LOG.d_exc) THEN
6298: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure global_document_update');
6299: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6300: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6301: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6294: EXCEPTION
6295: WHEN OTHERS THEN
6296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6297: IF (PO_LOG.d_exc) THEN
6298: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure global_document_update');
6299: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6300: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6301: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6302: END IF;
6295: WHEN OTHERS THEN
6296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6297: IF (PO_LOG.d_exc) THEN
6298: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure global_document_update');
6299: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6300: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6301: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6302: END IF;
6303: END global_document_update;
6296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6297: IF (PO_LOG.d_exc) THEN
6298: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure global_document_update');
6299: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6300: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6301: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6302: END IF;
6303: END global_document_update;
6304:
6297: IF (PO_LOG.d_exc) THEN
6298: PO_LOG.exc(d_module_base, d_progress, 'Unhandled exception in procedure global_document_update');
6299: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6300: PO_LOG.proc_end(d_module_base, 'x_msg_count', x_msg_count);
6301: PO_LOG.proc_end(d_module_base, 'x_msg_data', x_msg_data);
6302: END IF;
6303: END global_document_update;
6304:
6305:
6340: p_document_type IN VARCHAR2,
6341: x_return_status OUT NOCOPY VARCHAR2
6342: ) IS
6343: l_module_name CONSTANT VARCHAR2(100) := 'UNAPPROVE_DOC_HEADER';
6344: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
6345: D_PACKAGE_BASE, l_module_name);
6346: d_progress NUMBER;
6347: l_authorization_status PO_HEADERS_ALL.authorization_status%TYPE;
6348: BEGIN
6346: d_progress NUMBER;
6347: l_authorization_status PO_HEADERS_ALL.authorization_status%TYPE;
6348: BEGIN
6349:
6350: IF (PO_LOG.d_proc) THEN
6351: PO_LOG.proc_begin(d_module_base);
6352: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6353: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6354: END IF;
6347: l_authorization_status PO_HEADERS_ALL.authorization_status%TYPE;
6348: BEGIN
6349:
6350: IF (PO_LOG.d_proc) THEN
6351: PO_LOG.proc_begin(d_module_base);
6352: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6353: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6354: END IF;
6355:
6348: BEGIN
6349:
6350: IF (PO_LOG.d_proc) THEN
6351: PO_LOG.proc_begin(d_module_base);
6352: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6353: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6354: END IF;
6355:
6356: d_progress := 0;
6349:
6350: IF (PO_LOG.d_proc) THEN
6351: PO_LOG.proc_begin(d_module_base);
6352: PO_LOG.proc_begin(d_module_base, 'p_document_id', p_document_id);
6353: PO_LOG.proc_begin(d_module_base, 'p_document_type', p_document_type);
6354: END IF;
6355:
6356: d_progress := 0;
6357: -- By default return status is SUCCESS if no exception occurs
6369: FROM po_releases_all pr
6370: WHERE pr.po_release_id = p_document_id;
6371: END IF;
6372:
6373: IF PO_LOG.d_stmt THEN
6374: PO_LOG.stmt(d_module_base,d_progress,'l_authorization_status='||l_authorization_status);
6375: END IF;
6376:
6377: IF l_authorization_status = PO_CONSTANTS_SV.PRE_APPROVED THEN
6370: WHERE pr.po_release_id = p_document_id;
6371: END IF;
6372:
6373: IF PO_LOG.d_stmt THEN
6374: PO_LOG.stmt(d_module_base,d_progress,'l_authorization_status='||l_authorization_status);
6375: END IF;
6376:
6377: IF l_authorization_status = PO_CONSTANTS_SV.PRE_APPROVED THEN
6378:
6406:
6407: END IF;
6408:
6409: d_progress := 40;
6410: IF (PO_LOG.d_proc) THEN
6411: PO_LOG.proc_end(d_module_base);
6412: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6413: END IF;
6414:
6407: END IF;
6408:
6409: d_progress := 40;
6410: IF (PO_LOG.d_proc) THEN
6411: PO_LOG.proc_end(d_module_base);
6412: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6413: END IF;
6414:
6415: EXCEPTION
6408:
6409: d_progress := 40;
6410: IF (PO_LOG.d_proc) THEN
6411: PO_LOG.proc_end(d_module_base);
6412: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6413: END IF;
6414:
6415: EXCEPTION
6416: WHEN OTHERS THEN
6415: EXCEPTION
6416: WHEN OTHERS THEN
6417: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6418:
6419: IF (PO_LOG.d_exc) THEN
6420: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
6421: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6422: END IF;
6423: END unapprove_doc_header;
6416: WHEN OTHERS THEN
6417: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6418:
6419: IF (PO_LOG.d_exc) THEN
6420: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
6421: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6422: END IF;
6423: END unapprove_doc_header;
6424:
6417: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6418:
6419: IF (PO_LOG.d_exc) THEN
6420: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
6421: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6422: END IF;
6423: END unapprove_doc_header;
6424:
6425:
6455: PROCEDURE unapprove_schedules(p_line_location_id_tbl IN PO_TBL_NUMBER,
6456: x_return_status OUT NOCOPY VARCHAR2
6457: ) IS
6458: l_module_name CONSTANT VARCHAR2(100) := 'UNAPPROVE_SCHEDULES';
6459: d_module_base CONSTANT VARCHAR2(100) := PO_LOG.get_subprogram_base(
6460: D_PACKAGE_BASE, l_module_name);
6461: d_progress NUMBER;
6462: BEGIN
6463:
6460: D_PACKAGE_BASE, l_module_name);
6461: d_progress NUMBER;
6462: BEGIN
6463:
6464: IF (PO_LOG.d_proc) THEN
6465: PO_LOG.proc_begin(d_module_base);
6466: PO_LOG.proc_begin(d_module_base, 'p_line_location_id_tbl', p_line_location_id_tbl);
6467: END IF;
6468:
6461: d_progress NUMBER;
6462: BEGIN
6463:
6464: IF (PO_LOG.d_proc) THEN
6465: PO_LOG.proc_begin(d_module_base);
6466: PO_LOG.proc_begin(d_module_base, 'p_line_location_id_tbl', p_line_location_id_tbl);
6467: END IF;
6468:
6469: d_progress := 0;
6462: BEGIN
6463:
6464: IF (PO_LOG.d_proc) THEN
6465: PO_LOG.proc_begin(d_module_base);
6466: PO_LOG.proc_begin(d_module_base, 'p_line_location_id_tbl', p_line_location_id_tbl);
6467: END IF;
6468:
6469: d_progress := 0;
6470: -- By default return status is SUCCESS if no exception occurs
6478: WHERE pll.line_location_id = p_line_location_id_tbl(i)
6479: AND pll.approved_flag = 'Y';
6480:
6481: d_progress := 20;
6482: IF (PO_LOG.d_proc) THEN
6483: PO_LOG.proc_end(d_module_base);
6484: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6485: END IF;
6486:
6479: AND pll.approved_flag = 'Y';
6480:
6481: d_progress := 20;
6482: IF (PO_LOG.d_proc) THEN
6483: PO_LOG.proc_end(d_module_base);
6484: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6485: END IF;
6486:
6487: EXCEPTION
6480:
6481: d_progress := 20;
6482: IF (PO_LOG.d_proc) THEN
6483: PO_LOG.proc_end(d_module_base);
6484: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6485: END IF;
6486:
6487: EXCEPTION
6488: WHEN OTHERS THEN
6487: EXCEPTION
6488: WHEN OTHERS THEN
6489: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6490:
6491: IF (PO_LOG.d_exc) THEN
6492: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
6493: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6494: END IF;
6495: END unapprove_schedules;
6488: WHEN OTHERS THEN
6489: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6490:
6491: IF (PO_LOG.d_exc) THEN
6492: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
6493: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6494: END IF;
6495: END unapprove_schedules;
6496:
6489: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6490:
6491: IF (PO_LOG.d_exc) THEN
6492: PO_LOG.exc(d_module_base, d_progress, SQLCODE || SQLERRM);
6493: PO_LOG.proc_end(d_module_base, 'x_return_status', x_return_status);
6494: END IF;
6495: END unapprove_schedules;
6496:
6497: