I guess the Pragma Autonomous and Function/procedure will not work in my scenario.Let me explain the scenario in detail.
I have 3 tables here 1. "Transaction" 2."Shipment" 3."Staging Table" and a Package "Interface"
Whenever I do a shipment "Transaction" Table will execute the trigger on it "Tran_Trigger" . In this trigger,It will insert the current Transaction details in "Staging Table".Once the records get committed, I need to call the package "Interface" which would pick up the data from "staging table" and update all transaction related tables(detail table) accordingly.
If I call the this package inside the "Tran_trigger", it will not be able to update all the trasaction detail tables as the data is not yet committed and as a result the data in detail table is out of sync.I would be able to call the "Interface" package only after the transaction is commited and all details tables are updated.
So whenever a commit is established i can immediately call the "interface" package otherwise it will cause a delay(if i schedule the package)