robotframework-sapguilibrary icon indicating copy to clipboard operation
robotframework-sapguilibrary copied to clipboard

Not able to retrieve getcell value from a SAP table

Open shubhimu opened this issue 4 years ago • 2 comments

Hi All,

I am doing SAP automation using robot framework SAPGUILibrary.

I am able to login and identify maximum of the elements but not able to get and set Value from a sap table. I tried using below approach to get the value from a saptable.

${value1}= SapGuiLibrary.Get Cell Value /app/con[0]/ses[0]/wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG 0 'VBSTT-GBSTA_BEZ' Log To Console ${value1}

Table id is :/app/con[0]/ses[0]/wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG
Row no: 0 Columnd id :VBSTT-GBSTA_BEZ'. ALso tried by passing the numeric column id as per the column location i.e 16 in my case

Its giving me below error every time when i am trying to get the cell value from a sap table.

FAIL : AttributeError: .getCellValue

Please let me know how can i resolve this issue.

Thanks, Himanshu

shubhimu avatar May 22 '20 05:05 shubhimu

Hello! Try this: ${value1}= SapGuiLibrary.Get Cell Value wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG 0 'VBSTT-GBSTA_BEZ'

Log To Console ${value1}

arv-inc avatar Oct 23 '20 13:10 arv-inc

The error is that getCellValue is not a valid method of the returned COM object. For me it seems that this keyword never could have worked. I have fixed this in a PR.

simonmeggle avatar Apr 04 '22 19:04 simonmeggle