1 回答

TA貢獻(xiàn)1966條經(jīng)驗(yàn) 獲得超4個贊
老實(shí)說,我無法為您提供C#的幫助,但也許SAP接口足夠通用。session.findById("wnd[0]/shellcont/shell/shellcont[1]/shell")事實(shí)是,您可以引用GuiShell或GuiContainerShell類型的對象或任何被調(diào)用的對象。在此參考上,您可以調(diào)用為此類型定義的方法。因此,當(dāng)您這樣做時
session.findById("wnd[0]/shellcont/shell/shellcont[1]/shell").setCurrentCell 1,"MAKTX2"
您只需要先獲得引用,然后setCurrentCell在同一行上應(yīng)用該方法即可。
當(dāng)您在C#中執(zhí)行操作時
GuiContainerShell materials = (GuiContainerShell)session.FindById("wnd[0]/shellcont/shell/shellcont[1]/shell");
您給此引用起了一個名字materials,并提供了正確的行,我想您現(xiàn)在可以說:
materials.setCurrentCell(1, "MAKTX2")
materials.doubleClickCurrentCell
- 1 回答
- 0 關(guān)注
- 411 瀏覽
添加回答
舉報(bào)