I recently discovered SAP GUI Scripting. First I started to record easy transactions because I wanted to test if it is possible to execute the script on different PCs with different windows and SAP users. During the testing phase I bumped into one bigger Problem.
In my company every user has the Office Integration which allows you to display (f.e. a Profit Center Report as) an Excel Document in SAP. This display setting is saved permanently.
Now the main problem is that if you record the script with Excel display deactivated and some other users execute the script with Excel display actived the script will not process.
Usually I disable the Excel display setting manually by:
- clicking System -> User default -> Personal Settings -> Parameter -> Parameter value for G_RW_DOCUMENT_TYPE from XLS to 0
I tried to record this process with the SAP GUI Scripting recorder but it does not record the whole process.
It only records this
session.findById("wnd[0]").maximize
session.findById("wnd[0]/mbar/menu[4]/menu[2]/menu[3]").select
the script does not record the change in parameter value
Is there a way (by adding a code line etc.) for automatically disabling the Excel display setting from active to inactive?