cancel
Showing results for 
Search instead for 
Did you mean: 

Looping in the following function

11031999
Member
0 Kudos
80

Hello masters, I want to run a loop in the following function, what should I do?

' Material

session.FindById("wnd[0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-EMATN[4,0]").Text = SelectedMaterial

session.FindById("wnd[0]").SendVKey 0

' Quantity

session.FindById("wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/txtMEPO1211-MENGE[6,0]").Text = SelectedQuantity

session.FindById("wnd[0]").SendVKey 0

' Plant

session.FindById("wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-NAME1[11,0]").Text = SelectedPlant

session.FindById("wnd[0]").SendVKey 0

' Nhap Storage

session.FindById("wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-LGOBE[12,0]").Text = SelectedStorage

session.FindById("wnd[0]").SendVKey 0

' Nhap IssuingStorage

session.FindById("wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-RESLO_BEZ[35,0]").Text = SelectedIssuingStorage

session.FindById("wnd[0]").SendVKey 0

Accepted Solutions (0)

Answers (0)