Closed Marc-Girard closed 2 years ago
Hi @Marc-Girard without you having it mentioned specifically, I guess you're working on some kind of RPA use case? This is not really the focus or intention of PySAP. Aside of the different RPA toolings supporting automation via SAP GUI, I recommend going with a more specialized library such as https://github.com/gutskodv/PySapGUI or, as this library does, implement your use case with a library helping to manipulate Windows forms.
@martingalloar what's your viewpoint on this? Due to the fact, that SAP can implement changes to the DIAG protocol without notice, I'd consider an RPA approach based on Windows forms as a more robust approach ( If you want to use the term "robust" and RPA in one sentence 😄 )
Hi @Marc-Girard without you having it mentioned specifically, I guess you're working on some kind of RPA use case? This is not really the focus or intention of PySAP. Aside of the different RPA toolings supporting automation via SAP GUI, I recommend going with a more specialized library such as https://github.com/gutskodv/PySapGUI or, as this library does, implement your use case with a library helping to manipulate Windows forms.
Hi @Marc-Girard without you having it mentioned specifically, I guess you're working on some kind of RPA use case? This is not really the focus or intention of PySAP. Aside of the different RPA toolings supporting automation via SAP GUI, I recommend going with a more specialized library such as https://github.com/gutskodv/PySapGUI or, as this library does, implement your use case with a library helping to manipulate Windows forms.
Thanks for the fast answer. I'm using Linux and OpenShift (K8S) to automate our SAP transactions. I figured out a way of running SAP GUI JAVA within a container image and automate it all via PyAutoGUI. It's an all open-source solution and works very well. Still, I think it'd be even better if I could simply address my SAP servers via the DIAG/RFC protocols. This might not be achievable, I was just wondering if I could head this way in the future.
Hey all! This is an interesting use case, but I tend to agree with what @codeHorse87 said, I don't think it fits with the main goal of pysap.
I think that going the UI automation path is probably a less painful and less expensive avenue to achieve your goals.
PS: Yes, I made some initial efforts to do the Python 3 port but hopefully this is something I can take back sooner.
Hi @Marc-Girard, just emphasising and on top of @martingalloar comments: PySAP is the result of reverse engineering and research of the proprietary RFC and DIAG protocols. For production integration purposes, SAP provides maintained libraries for the RFC protocol (see https://support.sap.com/en/product/connectors.html).
question answered
Thank you guys for your answers, it is appreciated. :)
Hi good people of the PySAP Community,
I've been monitoring your fine project for a while; it is so cool and interesting!
I'm currently working as a software dev, doing SAP workflow automation. Our SAP gouvernance is very rigid, we don't even have the scripting enabled for clients so, I rely mostly on RPAs to do the work. It is kind of slow and "uncertain" as a simple change to the UI can break the whole process.
Now, I'd like to know if I could use your library to mimic the SAP GUI calls to our SAP servers. I don't do nothing fancy really, mostly reports and check in the P50 module for finances. Had a quick look at the examples, haven't found nothing that's really "full duplex", it might be me or it might be simply out of scope.
Please let me know if this is doable with PySAP and maybe a simple example on how to send and receive simple SAP commands say.
PS: I saw a Python 3 version in the works? Are we getting near a release? Most modern Linux distros have completely abandoned Python 2.x, I'm having problems building the library these days.
Cheers all,
Marc