You are on page 1of 1

SELECT oel.header_id, oel.line_id, wirc.

request_control_id,
wirc.process_flag, wirh.response_header_id, wirl.response_line_id,
wirh.response_date, wirh.error_code, wirh.error_type,
wirh.error_text,
wirl.error_code, wirl.error_type, wirl.error_text,
wirl.export_compliance_success, wirl.embargo_flag,
wirl.red_flag_words, wirl.denied_party_flag,
wirc.creation_date, wirc.last_update_date,
wirh.creation_date, wirh.last_update_date,
Wirl.Creation_Date, Wirl.Last_Update_Date
FROM ont.oe_order_lines_all oel,
wsh_itm_request_control wirc,
wsh_itm_response_headers wirh,
wsh_itm_response_lines wirl
WHERE wirl.response_header_id (+) = wirh.response_header_id
AND wirh.request_control_id (+) = wirc.request_control_id
AND wirc.original_system_line_reference = oel.line_id
AND oel.flow_status_code = 'AWAITING_EXPORT_SCREENING'
And Oel.Open_Flag = 'Y'
ORDER BY 1, 2;

You might also like