Skip to Content
0
Jan 20, 2020 at 12:14 PM

How to read row details of the variant table in SAP IMA11 using GUI Script

323 Views

I need to read a specific column value of the last row of the below Variant table in SAP. When I record the script to navigate through the rows of the table, I get below lines. I need to extract specific cell value. Manually, I can copy and paste the content of the row to note pad. But, I am unable to figure out how to read the content of the specific column or entire row. Appreciate, some help.

session.findById("wnd[0]/usr/subTABSTRIP:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB06/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPLAIA1:0304/subSUB:SAPLAIA1:0308/subTREE:SAPLAIA1:0306/cntlVARI_CANVAS/shell").selectedNode = "0001"
session.findById("wnd[0]/usr/subTABSTRIP:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB06/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPLAIA1:0304/subSUB:SAPLAIA1:0308/subTREE:SAPLAIA1:0306/cntlVARI_CANVAS/shell").selectedNode = "0002"

When I try to assign the .Text of the above object, I am getting SAP.TableTreeControl.1. Some help to understand this and extract the row data is highly appreciated.