Hi Anand,
Sorry you're having issues with the script.
I took at look at what you created, and it seems that it's not capturing you selecting the column by clicking on the column title. Tcodes in different functional areas vary as to what is possible with a standard recoding mode.
I looked around for some type of code or short cut key, and there isn't one. It may be you have to use GUI scripting to accomplish this.
I also searched on SCN, and some people are using CK91 instead. IDK if that will work for you or not, however.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
------------------------------