cancel
Showing results for 
Search instead for 
Did you mean: 

How to grab the value of an RC return on stms table?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_schnell
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you very much Stefan, that was exactly what i needed.

can you please recommend me a guide or documentation where i can learn all this parameters?

stefan_schnell
Active Contributor
0 Kudos

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

Answers (0)