The following lines contain the word 'select', 'insert', 'update' or 'delete':
JTF_DIAGNOSTIC_COREAPI.insert_style_sheet;
JTF_DIAGNOSTIC_COREAPI.insert_html('');
JTF_DIAGNOSTIC_COREAPI.insert_html('RCV_SHIPMENT_HEADERS[Top]');
sqltxt := ' SELECT rsh.*' ||
' FROM rcv_shipment_headers rsh' ||
' WHERE rsh.shipment_header_id in ' ||
' ( SELECT distinct rt.shipment_header_id ' ||
' FROM rcv_transactions rt,' ||
' po_line_locations_all pll' ||
' WHERE rt.po_line_location_id is not null ' ||
' AND rt.po_line_location_id = pll.line_location_id' ||
' AND pll.lcm_flag = ''Y'' ' ||
' AND unit_landed_cost is null)';
JTF_DIAGNOSTIC_COREAPI.insert_html('');
JTF_DIAGNOSTIC_COREAPI.insert_html('RCV_SHIPMENT_LINES[Top]');
sqltxt := ' SELECT rsl.*' ||
' FROM rcv_shipment_lines rsl' ||
' WHERE rsl.shipment_line_id in ' ||
' ( SELECT distinct rt.shipment_line_id ' ||
' FROM rcv_transactions rt,' ||
' po_line_locations_all pll' ||
' WHERE rt.po_line_location_id is not null ' ||
' AND rt.po_line_location_id = pll.line_location_id' ||
' AND pll.lcm_flag = ''Y'' ' ||
' AND unit_landed_cost is null)';
JTF_DIAGNOSTIC_COREAPI.insert_html('');
JTF_DIAGNOSTIC_COREAPI.insert_html('RCV_TRANSACTIONS[Top]');
sqltxt := ' SELECT rt.* ' ||
' FROM rcv_transactions rt,' ||
' po_line_locations_all pll' ||
' WHERE rt.po_line_location_id is not null ' ||
' AND rt.po_line_location_id = pll.line_location_id' ||
' AND pll.lcm_flag = ''Y'' ' ||
' AND unit_landed_cost is null' ||
' ORDER BY rt.shipment_header_id, rt.shipment_header_id, rt.transaction_id' ;
JTF_DIAGNOSTIC_COREAPI.insert_html('');
JTF_DIAGNOSTIC_COREAPI.insert_html('PO_LINE_LOCATIONS_ALL[Top]');
sqltxt := ' SELECT pll.* ' ||
' FROM rcv_transactions rt,' ||
' po_line_locations_all pll' ||
' WHERE rt.po_line_location_id is not null ' ||
' AND rt.po_line_location_id = pll.line_location_id' ||
' AND pll.lcm_flag = ''Y'' ' ||
' AND unit_landed_cost is null' ||
' ORDER BY rt.shipment_header_id, rt.shipment_header_id, rt.transaction_id' ;
JTF_DIAGNOSTIC_COREAPI.insert_html('');
JTF_DIAGNOSTIC_COREAPI.insert_html('MTL_PARAMETERS[Top]');
sqltxt := ' SELECT mp.* ' ||
' FROM mtl_parameters mp' ||
' WHERE mp.organization_id in' ||
' ( SELECT distinct rt.organization_id' ||
' FROM rcv_transactions rt,' ||
' po_line_locations_all pll' ||
' WHERE rt.po_line_location_id is not null ' ||
' AND rt.po_line_location_id = pll.line_location_id' ||
' AND pll.lcm_flag = ''Y'' ' ||
' AND rt.unit_landed_cost is null)';
JTF_DIAGNOSTIC_COREAPI.insert_html('');
JTF_DIAGNOSTIC_COREAPI.insert_html('RCV_PARAMETERS[Top]');
sqltxt := ' SELECT rp.* ' ||
' FROM rcv_parameters rp' ||
' WHERE rp.organization_id in' ||
' ( SELECT distinct rt.organization_id' ||
' FROM rcv_transactions rt,' ||
' po_line_locations_all pll' ||
' WHERE rt.po_line_location_id is not null ' ||
' AND rt.po_line_location_id = pll.line_location_id' ||
' AND pll.lcm_flag = ''Y'' ' ||
' AND rt.unit_landed_cost is null)';