on 01-26-2014 7:41 PM
I have to do a massive amount of transports in order from sap gui becouse of the athorization level i got on my company.
i've been using sapgui script to do some simple tasks like adding roles or adding a massive amount of transport request to the stack.
Now i want to make a script that transports some orders one by one in order but only after the previus one is over and the RC=0.
for that I'm planing on readign the icon on the third column to know if its green to proceed.
i've tried to get the value as a text like this:
session.findById("wnd[0]/usr/lbl[24,6]").text
but it doenst return any text.
Do you know how can i get the icon or the tooltip value that apears when i drag the mouse over the icon as a text?
I would really apreciate your help.
Hello Giancarlo,
welcome in the SCN Scripting Language forum.
To read the tooltip try this:
session.findById("wnd[0]/usr/lbl[24,6]").ToolTip()
To read the icon Name try this:
session.findById("wnd[0]/usr/lbl[24,6]").IconName()
Green = S_LEDG
Yellow = S_LEDY
Red = S_LEDR
Let us know the results.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Giancarlo,
sure, look in the directory [C:\]Program Files\SAP\FrontEnd\SAPgui\SAPguihelp resp. Program Files[x86) on 64-bit Windows. You find in this directory the file SAPGUIScripting.chm. This file describes the complete SAP GUI Scripting API. E.g. open the node Objects > GUILabel > Properties to find IconName and ToolTip.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.