Skip to Content
0

How to Get Value from Status Bar or Any Text box or Any label from SAP GUI using Python.

Jan 28 at 06:05 AM

72

avatar image
Former Member

Hi,

As i Know , to enter any value into text box in SAP GUI with Python, we can use

as

obj = session.findById("wnd[0]/usr/txtRSYST-MANDT")

obj.text = "100"

How i can fetch/get values from textbox or label or from status bar..

Please help me on this as i am using python with

win32com.client.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Stefan Schnell
Jan 28 at 06:18 AM
1

Hello Azharuddin,

welcome in the SAP Community.

You can find an example how to get values from a text box here.

Here an easy example:

obj = session.findById("wnd[0]/usr/txtRSYST-MANDT")
obj.text = "100"
value = session.findById("wnd[0]/usr/txtRSYST-MANDT").text
#Variable value should now contain 100

Let us know your results.

Best regards
Stefan

Share
10 |10000 characters needed characters left characters exceeded