Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using SAPGuiTable).SetCellData to Active cell.
#1
Not Solved
Using an SAPGuiTable where my code sets the cell that the data needs to go in, however .SetCellData r, "Char. Value",CharVal  "r" is a value set when iterating a DataTable and does not always much the same row that maybe needed in the SAPGuiTable.  Is there a way to SetCellData to the active cell?  or do I need to harvest what the current location is, set it to "r"?  Looking for some guidance on how to do this.  Please advise and thanks.

Code:
    ConFigList = Datatable.GetSheet("ConFig").GetRowCount
    For r = 1 To ConFigList
        Datatable.GetSheet("ConFig").SetCurrentRow(r)
        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
        SAPGuiSession("Session").SAPGuiWindow("Create Corrections Order:_2").SAPGuiTable("SAPLCEI0CHARACTER_VALUES").SetCellData r,"Char. Value",CharVal
        ' r is the row that is in the DataTable, but not the row that was choosen in the Find Char.
        SAPGuiSession("Session").SAPGuiWindow("Create Corrections Order:_2").SendKey ENTER
    Next
Reply


Messages In This Thread
Using SAPGuiTable).SetCellData to Active cell. - by rhozeski - 02-10-2020, 01:16 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)