session.findById("wnd[0]/tbar[1]/btn[33]").press
Set Layout = session.findById("wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell")
Rows = Layout.RowCount()
For i = 0 To Rows - 1
LayoutVariant = Layout.getCellValue(i, "VARIANT")
Layout.setCurrentCell i,"TEXT"
Layout.firstVisibleRow = i
Layout.selectedRows=i
If LayoutVariant = "STEFAN3" Then
Layout.currentCellRow = i
Layout.clickCurrentCell
Exit For
End If
Next
https://archive.sap.com/discussions/thread/3748959
Set Layout = session.findById("wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell")
Rows = Layout.RowCount()
For i = 0 To Rows - 1
LayoutVariant = Layout.getCellValue(i, "VARIANT")
Layout.setCurrentCell i,"TEXT"
Layout.firstVisibleRow = i
Layout.selectedRows=i
If LayoutVariant = "STEFAN3" Then
Layout.currentCellRow = i
Layout.clickCurrentCell
Exit For
End If
Next
https://archive.sap.com/discussions/thread/3748959
Hi, Thanks for sharing!
ReplyDeleteI'm getting an "there is no enough memory to execute this action. Consider to switch to 64bit or try with less data" error.
How can I fix this?
I also get that error. Did you find any solutions?
DeleteUse RowsCount = Layout.RowCount() inplace of Rows = Layout.RowCount()
ReplyDelete