Select or Double click SAP Gui Table/grid Click

Hi UiPath,

i found another case were we repeatedly forced to use Hardware events instead of simulate: frequently we need to click (= select a row [with red rectangle]) or double click on a cell or row (column 0) in a SAPGui Table or Grid. While a normal simulate click do not set the red rectangle which indicates the focus of the cell, the double click has no ability to use simulate. According to the SAP Gui Scripting API GuiGridView Object | SAP Help Portal there is a function to double click a cell.

@LevKushnir , @raduc: you please extend the SAP Activities to be able to double click on a cell in a table or grid?

Currently we use “invoke vbs” to workaround the missing function:

session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell").setCurrentCell 0, "BLDAT"

Cheers, mti

@mti

If it is sap application then instead of simulate window messages might work. please try that same..

cheers

Hi @mti !
That should be also available when the improved Simulate support will become available. I told you about it in the other thread (SAP Label Click Simulate not working - #11 by raduc)

Thanks, @raduc i guess the setfocus fix may not work in a table, because the “set focus” Api function is derived by GuiVComponent Object | SAP Help Portal GuiVComponent Object, which is the whole table not the cell

yes, hardware events will work, but they are not stabil as simulate which interacts via API with the SAP Gui

@mti

not hardware events, but send window messages..even that works in background

cheers