Skip to Content
0
Jan 12, 2023 at 07:22 PM

how to read variable to do while loops

81 Views

Hi

I want to create a variable to read all position of my purchase order to change delivery date in mass

In SAP the original code is:

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:0010/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/txtMEPO1211-EBELP[1,0]".Text

I want to change de 0 on the position to 1...2...3.. so I created a variable "p" but is not reading it:

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:0010/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/txtMEPO1211-EBELP[1,p]".Text

How can I do this ?