VBA中的宏将物料从Excel工作表粘贴到VA01事务中。但是,当尝试粘贴更多行然后显示在VA01中时,它会卡住。
For i = 0 To lngRow - 1 'lngRow - Row number in my specification
W_Article = ActiveSheet.Cells(i + 1, 1)
W_Quantity = ActiveSheet.Cells(i + 1, 2)
Session.FindById("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\02/ssubSUBSCREEN_BODY:SAPMV45A:4401/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG/ctxtRV45A-MABNR[1," & i & "]").Text = W_Article
Session.FindById("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\02/ssubSUBSCREEN_BODY:SAPMV45A:4401/subSUBSCREEN_TC:SAPMV45A:4900/tblSAPMV45ATCTRL_U_ERF_AUFTRAG/txtRV45A-KWMENG[2," & i & "]").Text = W_Quantity
Next
还是这种方法在这里不适用?