Skip to Content
1
Jul 19 at 11:53 AM

VBA to 'Stop Transaction' using Windows API

133 Views

Hi,

I would like to be able to stop a transaction running in SAP GUI using VBA.

I've seen threads which solve the problem of stopping a transaction by destroying the session the transaction is running in, but this causes issues where my session management system which needs to keep the session running for reuse.

I would therefore like to be able to cause the 'Stop Transaction' option to trigger as per the top left window menu.

As there appears to be no 'Stop Transaction' command on a given session object within the VBA/script system, can anyone help me with using the Windows API to trigger the option, but, and this is crucial, without using SendKeys. Too many other things happening on screen for that to be in any way reliable.

TIA