Hi all,
I have come across an awkward problem with the SAP GUI.
I am automating running several transactions at once, and during the 'parallel' running, the session windows that output to a grid via a context menu sometimes get 'stuck' and won't allow the VBA in Microsoft Access to continue until there is Windows GUI activity (by user or script). Unfortunately that activity cannot occur when the Windows lock screen is active (by design), so I need a way to run a context menu item that doesn't actually open the context menu itself.
Is this possible?
The two lines of code that ultimately cause the problem are along the lines of:
.FindByID("wnd[0]/usr/cntlDETAIL_GRID/shellcont/shell").PressToolbarContextButton "&MB_EXPORT"
.FindByID("wnd[0]/usr/cntlDETAIL_GRID/shellcont/shell").SelectContextMenuItem "&PC"
Ideally I want to change these two calls to a single non-menu call to open the appropriate file export dialog thereby avoiding the 'bug' that occurs with the actual context menu window itself.
TIA
Ian