I am getting error in SAP Logon activity as “SAP Logon: Unable to connect to the SAP Scripting Interface. Check if the correct executable is selected or try increasing the value of NumberOfRetries and/or RetryInterval.”, I increased the NumberOfRetries and RetryIntervals as well, but still getting the error, did all the basic setup like “Enable Scripting” and “High Speed” in Network. Kindly help me on fixing this, thanks.
hey @yathish.kempashanaiah before working wih SAP in UiPath there are some encryption steps you have to enable so you can login and work with SAP using UiPath activity.
To use SAP GUI scripting, you need to enable it both on the server and client sides.
On the Server:
- Log in to SAP as a user with administrative privileges.
- Go to RZ11 (Profile Parameter Maintenance).
- Set the following parameters to enable scripting:
sapgui/user_scripting
=TRUE
(enables scripting on the server).
- Restart the SAP System if required.
On the Client:
- Enable SAP GUI Scripting in your SAP GUI settings:
- In SAP GUI, navigate to Options → Scripting → Enable scripting.
By enabling Scripiting you are ready to work with SAP.
Cheers
hello @yathish.kempashanaiah can you provide some Screen shots of SAP logon page and UiPath activity used
Hi @singh_sumit , Thank you for your reply, i tried setting those things, but still the same issue, i even tried opening the UiPath as admin, and run from there, but the issue still persists, thanks
Hello @vivek.nadar , Thanks for your reply, please find below for the screenshot, the SAP GUI application is opening, but it’s not connecting/opening the connection page.
did you enabled the scripting option in sap?
@yathish.kempashanaiah did you get any pop up after the sap log on get started
Try to update SAP activity from UiPath studio dependencies ribbon panel and check if there any updates on SAP application and one more thing as per your message where you are showing the scripting Enabling screenshot can you show us the Server side Scripting also.
cheers
Hi @singh_sumit , Thanks for your reply, i have the latest version of UiPath 2023.10.6, tried to update the SAP GUI, but it was already up to date, do you want me to install SAP.BAPi Activies as well…? by the below is the server side scripting snanpshot
Hie @yathish.kempashanaiah and what about the server side have you marked as True because from Server Scripting is also necessary to able to work with UiPath .
i think you only enable it to the local machine.
kindly enable it from th server side as well. i will share a video reference.
Played that video after 1:18
cheers
@yathish.kempashanaiah is sap log on page is opening slowly after the process start
@yathish.kempashanaiah can you also let me know how much time it takes to open the sap log on page
Hi @singh_sumit , please check below image for the Server Side Enable of scripting, in the video, they are showing to automate like a desktop application using Recorder available, i will try that later, but mainly i am trying to use SAP related Activities.
hi @vivek.nadar , It is taking less than 15-20 seconds to start, it doesn’t seems slow while the SAP GUI is opening. thanks
@yathish.kempashanaiah
Can you put the workflow in try catch and in catch check exception.Source and inner exception message?
Also, try if you are able to spy the selectors of U name and Pw. by UIexplorer.
hello @yathish.kempashanaiah can you enable Notify when a script attaches to SAP GUI option in SAP and run it once and let me know did you get any popup or something
Hi @vivek.nadar , no popup is throwing up, when Notify when a script attaches to SAP GUI option is enabled, thanks
hello @yathish.kempashanaiah i think so there is no issue with UiPath your sap scripting option was not working properly because if the option is enable normally we get a pop up but in your case even after enabling it there is no pop up if possible can yout try to reinstall the SAP