Skip to Content

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


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


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


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 28, 2018 at 06:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.