SAP VBScript with UiPath

Hello There,

am trying to get the data (error messages out of secatt transaction from the SAP Tree nodes and their rows and columns). Is there a way to loop thru all the nodes using VBScript to get the data. Until now i was trying something similar to the following code.

session.findById("wnd[0]/usr/cntlCC_LOG_TREE/shellcont/shell").getItemText("         11","2") 
session.findById("wnd[0]/usr/cntlCC_LOG_TREE/shellcont/shell").getItemText("         11","3")

Appreciate your help
Thank you


Hello Hara,
try this to read the items of the nodes:

Set Tree = session.findById("wnd[0]/usr/cntlCC_LOG_TREE/shellcont/shell")
Set AllNodeKeys = Tree.GetAllNodeKeys()
For Each NodeKey In AllNodeKeys
  MsgBox Tree.GetItemText(NodeKey, "2") + " - " + Tree.GetItemText(NodeKey, "3")

Best regards

1 Like