Hey Joao,
Thank you so much for reaching out! To interact with the attachment controls you will very likely need to use the GUI Scripting recording method in Winshuttle. This records all actions on the screen, and runs in the foreground, so it will behave a bit different than what you might be accustomed to.
For the document switching, you actually don't need to switch the documents during the recording. Instead, you'll record just the first record, and once the script is complete it will automatically repeat the entire process for the next document you provide.
I've put together a quick video on how to create this script. Please note that my SAP system is not configured to properly transfer the files (they end up as 1 KB files once they are downloaded), but this is unrelated to the Winshuttle script, we just don't have that set up correctly in our environment.
Hope this video helps!
https://winshuttle.sharefile.com/d-s12ddd196fe742b5a------------------------------
James Lofgren | Solutions Engineer
Winshuttle North America | [City] |
------------------------------
Original Message:
Sent: 03-05-2020 07:29
From: joao.rino
Subject: MIR4 Scripting
Hello,
I'm trying to create a script which allows me to extract pdf's files from SAP.
The procedure we normally do is using mir4 transaction, enter the document number, and then save the attached pdf. But it only allows me to enter into a specific document number, and inside the transaction I can't change to other document number so I can loop it.
Any tips or advise on this?
Thank you very much for the help.
BR
Joao
------------------------------
joao.rino |
SIEMENS SA (GSS A&F CENTER Lisbon) |
------------------------------