cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_schnell
Active Contributor

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

Answers (0)