Hi Surojit,
I dont think running a script is a good option to check the connectivity.The disadvantage will be the size of the program. The reason is, the pre-processor will replace all the macros in the program by its real definition prior to the compilation process of the program.Therefore,it will make the program unreadable.
I think you can make modifications in the code of Authorization object S_RFC_ADM.
Regards,
Nandan