SAP-实用小方法

Table行数

ItemNum = session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\02/ssubSUBSCREEN_BODY:SAPMV45A:4401/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG").RowCount

 

Button按钮是否存在

PageDownFlag = session.findById("wnd[0]/usr/tabsTABSTRIP_0300/tabpANWS/ssubSUBSCREEN:SAPLBSVA:0302/btnODOWN").Changeable

 

参数化

HoldName = session.findById("wnd[0]/usr/tabsTABSTRIP_0300/tabpANWS/ssubSUBSCREEN:SAPLBSVA:0302/sub:SAPLBSVA:0302[2]/txtJEST_BUF_EO-ETX30["&Cstr(i)&",11]").text

 

ActiveWindow方法

'@@@@@If need Consider the subsequent documents,add a step to click OK buttton@@@@@
Set aw = session.activeWindow()
if instr(aw.text,"Information") > 0 then
Log1("Here is the second time to check this data,need click ok button.")
session.findById("wnd[1]/tbar[0]/btn[0]").press
end if

 

 

posted on 2013-05-16 17:34  ibelieve  阅读(760)  评论(0编辑  收藏  举报

导航