on 2019 Aug 19 4:23 PM
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
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 6 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.