Hi everyone,
I'm needing help with my code when SAP tables return no results. Currently it works when there is data but if there's no data is just stops without finishing. I have no idea how to fix this. I've read some posts saying I need to add an On Error Resume code but not sure how to do that. I'm getting an error on line 4. How do I write code that tells it to continue to the end of the script? Any help is greatly appreciated. Thank you.
I'm needing help with my code when SAP tables return no results. Currently it works when there is data but if there's no data is just stops without finishing. I have no idea how to fix this. I've read some posts saying I need to add an On Error Resume code but not sure how to do that. I'm getting an error on line 4. How do I write code that tells it to continue to the end of the script? Any help is greatly appreciated. Thank you.
Code:
[/INDENT]
[INDENT]session.findById("wnd[2]/tbar[0]/btn[8]").press[/INDENT]
[INDENT]session.findById("wnd[1]/tbar[0]/btn[0]").press[/INDENT]
[INDENT]session.findById("wnd[0]/tbar[1]/btn[8]").press[/INDENT]
[INDENT]
[/INDENT]
[INDENT][COLOR=#ff0000]session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").setCurrentCell -1, ""[/COLOR][/INDENT]
[INDENT]
[/INDENT]
[INDENT]session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").SelectAll[/INDENT]
[INDENT]session.findById("wnd[0]/mbar/menu[5]/menu[2]/menu[1]").Select[/INDENT]
[INDENT]session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").currentCellRow = 6[/INDENT]
[INDENT]session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").selectedRows = "6"[/INDENT]
[INDENT]session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").clickCurrentCell[/INDENT]