cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

The control could not found by id

Former Member
0 Likes
468

Hello,

In SAP/EWM/SWP, I use transaction SCWM/MON ==> Outbound/Outbound delivery order and I select one Transportation unit. On the result I try to change the layout, but when I execute the script I get this error :

"The control could not be found by id".

I've try to record again the sript but nothing work. I execute the sript directly by SAP but when I try by VBA it doesn't work either.

That is the code I execute :

session.findById("wnd[0]").maximize
session.findById("wnd[0]/usr/shell[0]/shellcont[0]/shell").selectedNode = "N000000010"
session.findById("wnd[0]/usr/shell[0]/shellcont[0]/shell").doubleClickNode "N000000010"
session.findById("wnd[1]/usr/txtS_TU_EX-LOW").text = "1068588ORs"
session.findById("wnd[1]/usr/txtS_TU_EX-LOW").setFocus
session.findById("wnd[1]/usr/txtS_TU_EX-LOW").caretPosition = 10
session.findById("wnd[1]").sendVKey 8
session.findById("wnd[0]/usr/shell[0]/shellcont[1]/shell/shellcont[0]/shell").pressToolbarContextButton "&MB_VARIANT"
session.findById("wnd[0]/usr/shell[0]/shellcont[1]/shell/shellcont[0]/shell").selectContextMenuItem "&COL0"
session.findById("wnd[1]/usr/tabsG_TS_ALV/tabpALV_M_R1/ssubSUB_DYN0510:SAPLSKBH:0620/cntlCONTAINER2_LAYO/shellcont/shell").currentCellRow = 4
session.findById("wnd[1]/usr/tabsG_TS_ALV/tabpALV_M_R1/ssubSUB_DYN0510:SAPLSKBH:0620/cntlCONTAINER2_LAYO/shellcont/shell").selectedRows = "4"
session.findById("wnd[1]/usr/tabsG_TS_ALV/tabpALV_M_R1/ssubSUB_DYN0510:SAPLSKBH:0620/btnAPP_FL_SING").press
session.findById("wnd[1]/tbar[0]/btn[0]").press

The error appear on the row :

session.findById("wnd[0]/usr/shell[0]/shellcont[1]/shell/shellcont[0]/shell").pressToolbarContextButton "&MB_VARIANT"

I hope I'm clear.

Thank you for your help.

Thomas

Accepted Solutions (0)

Answers (0)