AP Hold Query - Oracle Apps

SELECT DISTINCT

       hold_date

     , hold_lookup_code

     , hold_reason

FROM

       ap_holds_all

WHERE

       invoice_id     = :P_INVOICE_ID

       and STATUS_FLAG='S'