cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect Belize (Fiori them) them from SAP GUI scripting API

obaid_ullah2
Explorer

I need to detect if Belize them is being used by SAP GUI(Fiori visual them) on SAP GUI for Window 7.5. I could not find any SAP GUI scripting API to detect it.

Moreover, i'm unable to highlight or get coordinates of status bar from scripting API when this theme is being used. Scripting API return height and width as -1 or 0 for status bar and toolbar. Any idea to get actual co-ordinates from scripting API?

Accepted Solutions (0)

Answers (2)

Answers (2)

obaid_ullah2
Explorer

Thanks Stefan for sharing window registry setting for detecting selected theme. However, it may not always be possible to access registry as some users won't have enough security to have access to registry settings. I was trying to avoid window registry and was trying to find solution from window scripting API.

I'm using scripting API quite extensively for automation purposes and have found many issues when dealing with 'Fiori' theme in SAP GUI 7.5. As i mentioned earlier, status bar and toolbar has zero width and height and unable to selected or highlight with windows API function 'Highlight'. Moreover, status bar may contains buttons like 'Accept', "Enter', 'Cancel', 'Create with Reference' etc but those buttons are not accessible from scripting API. Same is also true to buttons that represent menu at the toolbar like 'Exit' button. I'm unable to identify and interact with these buttons through scripting API. Though I'm able to identify these buttons through Window UI automation toolkit but i'd like to have solution within scripting API.

stefan_schnell
Active Contributor
0 Kudos

Hello Obaid,

thanks for sharing your observation, it sounds very interesting.

You can detect the chosen theme via the registry, here an PowerShell example:

(Get-ItemProperty -Literalpath HKCU:\SOFTWARE\SAP\General\Appearance\).'SelectedTheme'

Possible results:

Signature      =   1
Enjoy          =   2
System specifc =   4
Streamline     =   8
Tradeshow      =  16
Classic        =  32
Corbu          =  64
Blue Crystal   = 128

How did you activate the Belize theme, in my SAP GUI for Windows 7.50 PL 2 I can't choose it.

2018/01/25 Addendum: I found the answer in note 2365556: "Belize is an exclusive feature of the S/4HANA product releases S/4HANA 1608 Cloud and S/4HANA 1610 On-Premise and newer product releases. It cannot be activated for other SAP products even if the respective SAP GUI version / SAP Kernel version is being used."

Thanks and best regards
Stefan

stefan_schnell
Active Contributor
0 Kudos

Hello community,

now I have the possibility to check the Belize theme in the context of SAP GUI Scripting and it seems that a lot of details have radical changed. As Obaid reported, delivers sbar attributes not really useful values.

Here a "normal" example:


Here a "Belize" example:

As you can see all position attributes are -1 and the handle is 0.

However, it is still possible to read the status bar, but it seems at the moment not possible to use the position properties with the Belize theme.

Cheers
Stefan