8: l_module_name VARCHAR2(200) := g_module_name || 'OPEN_PO_SHIPMENT';
9: l_errbuf VARCHAR2(1024);
10: l_line_location_id po_line_locations_all.line_location_id%type;
11: l_po_line_id po_lines_all.po_line_id%type;
12: l_po_header_id po_headers_all.po_header_id%type;
13: l_po_doc_type po_headers.type_lookup_code%type;
14: l_po_sub_type po_headers.type_lookup_code%type;
15: l_return_code varchar2(30);
16: l_inv_accounting_date date;
9: l_errbuf VARCHAR2(1024);
10: l_line_location_id po_line_locations_all.line_location_id%type;
11: l_po_line_id po_lines_all.po_line_id%type;
12: l_po_header_id po_headers_all.po_header_id%type;
13: l_po_doc_type po_headers.type_lookup_code%type;
14: l_po_sub_type po_headers.type_lookup_code%type;
15: l_return_code varchar2(30);
16: l_inv_accounting_date date;
17:
10: l_line_location_id po_line_locations_all.line_location_id%type;
11: l_po_line_id po_lines_all.po_line_id%type;
12: l_po_header_id po_headers_all.po_header_id%type;
13: l_po_doc_type po_headers.type_lookup_code%type;
14: l_po_sub_type po_headers.type_lookup_code%type;
15: l_return_code varchar2(30);
16: l_inv_accounting_date date;
17:
18: -- Start Bug 3706938
37: l_po_doc_type,
38: l_po_sub_type,
39: l_inv_accounting_date
40: FROM po_distributions pd,
41: po_headers ph,
42: po_releases pr,
43: ap_invoice_distributions aid,
44: po_line_locations pll -- Bug 3706938
45: WHERE aid.invoice_id = P_invoice_id