Hi Muhammad,
I guess you should go with extended notifications, based on the requirement you are stating .
You can see the below link
http://scn.sap.com/docs/DOC-14912
If there are still some business logic you want to execute for the requirement then go for program exit, as it is programming intensive.
---BR---
Tapomay
Do inform in case further details,would be happy to help