cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Handle Sap GUI GRID using python script

Former Member
0 Likes
5,945

I need to click on first row and enter Material using python , I tried to perform like this , session.FindById("ses[0]/wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG/ctxtRV45A-MABNR[1,1]").text = "M0097987"

i am getting following error:

line 18, in <module> session.FindById("ses[0]/wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG/ctxtRV45A-MABNR[1,1]").text = "MM0001" File "<COMObject FindById>", line 3, in FindById pywintypes.com_error: (-2147352567, 'Exception occurred.', (619, 'SAP Frontend Server', 'The control could not be found by id.', 'C:\\Program Files (x86)\\SAP\\FrontEnd\\SAPgui\\sapfront.HLP', 393215, 0), None) Process finished with exit code 1

Please help me on this, how i can handle grid using python for sap gui scripting?

View Entire Topic
rspecht
Explorer

There is a problem with SAP GUI Scripting in SAP GUI 7.50 Patch-Level 4 Hotfix 1. With this SAP GUI-Version no use of scripting is possible. Please check your SAP GUI-Version.

Former Member
0 Likes

My SAP GUI version in 7.30