I am trying to invoke SAP Script from uipath, but for that it seems I need the late binding. As I understand the Strict option is ON and that does not allow late binding. Is there any way to turn off the Strict?
Dim SAPGUI As Object = GetObject("SAPGUI")
Dim SAPApp As Object = SAPGUI.GetScriptingEngine
The code fails at second line where it is atempting to get the Scripting Engine. I don’t have any reference files, so I don’t see another way than late binding. The SAPGUI.GetScriptingEngine is of GuiApplication type as far as I know.
I was facing the same problem while working with SAP Scripting through Uipath. My solution was create a Custom Activity with the Option Strict Off and then installed on Uipath. Now it’s running without problems
I am using the SAP Scripting to get data from large SAP tables. I am new to UiPath, but it seems, that the table is not seen as table, or I don’t know how exactly to extract it as a whole (it is label table, not the typical grid view).
I just have some old VB/SAP Script codes that reads these tables fast and easy, I was just wondering if I can use it here.
Thanks for the idea, but .vbs file would not be able to output the table, right?
Sorry, I cannot share screens. It contains confidential data. But I think similar table can be found under System → Own Jobs (if you have access to SAP system).
In those tables the cells have an ID, but the ID is changing all the time, because of different lengths of columns.
For example sometimes the ID can end with “lbl[10,20]” meaning cell at index 10 in row with index 20. But next time you load this table first column can contain extra character, so required cell would change the ID to “lbl[11,20]”. As far as I can see, these shifting tables can be pain in the ass to read, but it is quite easy with script.
I am not yet proficient with UiPath, so if I am missing something or doing something wrong, please let me know.