Automate

 View Only
  • 1.  MIR4 Scripting

    Posted 03-05-2020 07:30
    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) |
    ------------------------------


  • 2.  RE: MIR4 Scripting

    Employee
    Posted 03-05-2020 11:10
    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] |
    ------------------------------



  • 3.  RE: MIR4 Scripting

    Posted 03-05-2020 12:32
    Hi James,

    many thanks for the quick and complete response. I will try it.  I need to have access to gui scripting first and then i'll try it.

    Thank you.

    BR
    Joao

    ------------------------------
    joao.rino |
    SIEMENS SA (GSS A&F CENTER Lisbon) |
    ------------------------------



  • 4.  RE: MIR4 Scripting

    Posted 03-06-2020 16:26
    Hi James,

    I find the video that you shared to be very useful. Wondering if there's a Community link where all such videos providing various scripting solutions are available.  If yes can you share the link. If no, what do I put in Search to find all such videos. This would be a great help.

    Thanks,

    Moazzam

    ------------------------------
    Moazzam Mubarak | Manager SAP
    De Beers Canada Inc | 5875825035
    ------------------------------