Hi dizzy,
see the example below,
for getting the rowcount for the webtable,SAPGuiTable etc., ,use rowcount method.
here we can get the cell data upto the loop will exit.
for set the cell data in the SAPGuiTable
1 is row name
"Material" is column
"100" is data
here i have explained for SAP application ,this script same for web application also.
see the example below,
for getting the rowcount for the webtable,SAPGuiTable etc., ,use rowcount method.
Code:
var=SAPGuiSession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiTable("Sales Order").rowcount
msgbox var
here getting how many rows present in the GuiTable
for i=1 to var
var1=SAPGuiSession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiTable("Sales Order").GetCellData(i,"Material")
msgbox var1
next
here we can get the cell data upto the loop will exit.
for set the cell data in the SAPGuiTable
Code:
SAPGuiSession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiTable("Sales Order").SetCellData 1,"Material","100"
1 is row name
"Material" is column
"100" is data
here i have explained for SAP application ,this script same for web application also.