Hi, I would like to use UiPath to automate the download process of all attachments from an SAP invoice from the TCode FB03. However, each invoice may have a variable number of attachments or no attachments at all.
What activities in UiPath could I use to implement this logic? I tried to use For Each UI Element, but this only works for Web Applications which SAP isn’t.
If you want to interact with sap using UiPath we need to enable GUI scripting in sap settings
Then you will be able to interact with simple click and type into activity to download the attachments
Have a view on this for enabling gui scripting in sap
Hi thank you so much for the reply. Do you have any specific activity you are referring to on SAP for Step 4? Because I’ve tried “For Each UI Element” but it can’t work because it isn’t a web application.
Use “Element Exists” or “Image Exists” to determine if attachments exist.
If Attachments Exist (based on the result of the check):
a. Click on the attachment link(s) to initiate the download.
b. Use “Type Into” to specify the download location.
c. Use “Send Hotkey” (e.g., Enter) to confirm the download.
Implement error handling as needed to handle exceptions during the download process.
Continue with your automation or workflow after downloading the attachments.
Thanks for the reply. However, due to security concerns I GUI Scripting has been disabled. Is there a way to work around this? Perhaps I could use Computer Vision instead?
I would recommend to get this enabled with your admin support
Because this makes your life easy by using simple click and other Ui based activities
If you go with computer vision still it’s fine but will be very complex
Same applies even when u try to interact with hotkeys… it’s is possible but it will be complex
If you really don’t have an option to enable that then
first try with back end SAP Queries if it can possibly fetch u the details u need
Use the activity to interact with sap using query
Or use hot keys to interact which is likely better than using computer vision