Alok,
When you create a macro it goes and sits in table /SAPAPO/ADMAKRO where you have relevant macro ID and GUID. Though I am not sure what you are trying to achieve but you can read this table and try to trigger DB alert macro(s). Take help of your ABAPer to check this further.
If already answered follow How to close a discussion and why
Regards
Rahul