A few weeks ago I generated a script via SAP\'s built in GUI scripting functionality, and then put the vba in an excel document and attached it to a button.
this wo
Had the same problem and found this thread, so I'm reviving it with the solution that worked for me:
Scripting is probably deativated. sapgui/user_scripting must be set to true