Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 28 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
    Stefan

    Add comment
    10|10000 characters needed characters exceeded