Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using SAPGuiTable).SetCellData to Active cell.
#3
Not Solved
I sort of got this to work, but woow, it took an hour + to iterate thru 250+ CharDes and place ClarVals. Appeared to go thru the whole list of 250+ chars each time. Is there an easier way to get the row (w) and goto it? place the value, Next. This process not going to work if 700+ global iterations are needed, and it has to go thru this each time.

not seeing the [code] button for reply??

For r = 1 To ConFigList
Datatable.GetSheet("ConFig").SetCurrentRow®
CharDes = Datatable.Value("Chardescription","ConFig")
CharVal = Datatable.Value("CharValue","ConFig")
SAPGuiSession("Session").SAPGuiWindow("Create Corrections Order:_2").SAPGuiButton("Find Char.").Click 'Find dynamically finds the row I need.
SAPGuiSession("Session").SAPGuiWindow("Position on Characteristc").SAPGuiEdit("Characteristic").Set CharDes
SAPGuiSession("Session").SAPGuiWindow("Position on Characteristc").SAPGuiEdit("Maximum Number of Hits:").Set "1"
SAPGuiSession("Session").SAPGuiWindow("Position on Characteristc").SAPGuiButton("Continue (Enter)").Click
'Can not use "r", need to use the current row or active cell.
'***************************************
w=SAPGuiSession("Session").SAPGuiWindow("Create Corrections Order:_2").SAPGuiTable("SAPLCEI0CHARACTER_VALUES").FindRowByCellContent("Char. description",CharDes)
SAPGuiSession("Session").SAPGuiWindow("Create Corrections Order:_2").SAPGuiTable("SAPLCEI0CHARACTER_VALUES").SetCellData w,"Char. Value",CharVal
'***************************************
SAPGuiSession("Session").SAPGuiWindow("Create Corrections Order:_2").SendKey ENTER
Next
Reply


Messages In This Thread
RE: Using SAPGuiTable).SetCellData to Active cell. - by rhozeski - 02-10-2020, 10:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SetCellData issue with JavaTable shashidtj 2 2,389 09-27-2017, 12:55 AM
Last Post: shashidtj
  SAPGuiSession get the active SAPGuiWindow dynamically cko77 2 5,149 01-27-2014, 12:04 PM
Last Post: cko77
  .vbs script error when trying to insert a value in a sapguitable frebuffi 5 6,496 07-18-2013, 03:04 PM
Last Post: Staff
  Getcelldata and Setcelldata rajeshdizzy 4 24,952 07-17-2009, 11:00 AM
Last Post: balakrish

Forum Jump:


Users browsing this thread: 3 Guest(s)