I have a SAP gui script that works for me and does what i want to, so no problem with this. The thing is, with my coworkers, which are supposed to use my code too, my SAP gui script does not work. For example My script on SAP 750:
Session.FindById("wnd[2]/usr/cntlOPTION_CONTAINER/shellcont/shell").CurrentCellColumn = "TEXT"
Clicks on the right button for me, but a completely different one for them. I think it has something to do with SAP GUI versions. Is there a way to do SAP requests that fits any gui?
Edit: I tried scripting on my coworkers computer, here is the line that is different for them Coworker's script on sap 730:
Session.FindById("wnd[2]/usr/cntlOPTION_CONTAINER/shellcont[0]/shell").CurrentCellRow = 0
Session.FindById("wnd[2]/usr/cntlOPTION_CONTAINER/shellcont[0]/shell").SelectedRows = "0"
This is working on SAP gui 750 for me, my coworkers are on SAP 730 and cannot use the newest version. Moreover, I would like my code to be durable (and that i would not need to change it for every new version)
So, I've finally found the solution!
To adress the subject, just use a variant of your transaction in SAP. Then, if others use it, it's alright and you share the same data.
Thanks to @BrownishMonster for his help
to take a look at variants and how they work, follow this link: https://help.sap.com/viewer/61155ee7ed304ae8b66b7526555a6a07/6.18.11/en-US