Hallo Michael,
ich kenne hierzu nur ein workaround.
z.B.
...
'--------Dispo 1-------
on error resume next
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP12/ssubTABFRA1:SAPLMGMM:2000/subSUB3:SAPLMGD1:2482/ctxtMARC-DISMM").Text = "zr"
if err.number = 0 then
on error goto 0
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP12/ssubTABFRA1:SAPLMGMM:2000/subSUB3:SAPLMGD1:2482/txtMARC-FXHOR").Text = "0"
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP12/ssubTABFRA1:SAPLMGMM:2000/subSUB3:SAPLMGD1:2482/ctxtMARC-DISPO").Text = "402"
end if
on error goto 0
Session.findbyid("wnd[0]").sendVKey 0
'--------Dispo 2-------
on error resume next
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP13/ssubTABFRA1:SAPLMGMM:2000/subSUB3:SAPLMGD1:2485/txtMARC-PLIFZ").Text = "21"
if err.number = 0 then
on error goto 0
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP13/ssubTABFRA1:SAPLMGMM:2000/subSUB3:SAPLMGD1:2485/txtMARC-WEBAZ").Text = "2"
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP13/ssubTABFRA1:SAPLMGMM:2000/subSUB2:SAPLMGD1:2484/ctxtMARC-BESKZ").Text = "f"
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP13/ssubTABFRA1:SAPLMGMM:2000/subSUB2:SAPLMGD1:2484/ctxtMARC-SOBSL").Text = "46"
Session.findbyid("wnd[0]/usr/tabsTABSPR1/tabpSP13/ssubTABFRA1:SAPLMGMM:2000/subSUB2:SAPLMGD1:2484/ctxtMARC-LGPRO").Text = ""
end if
on error goto 0
Session.findbyid("wnd[0]").sendVKey 0 'Dispo 3
Session.findbyid("wnd[0]").sendVKey 0 'Dispo 4
Session.findbyid("wnd[0]").sendVKey 0
Session.findbyid("wnd[0]").sendVKey 0
Session.findbyid("wnd[0]").sendVKey 0
Session.findbyid("wnd[0]").sendVKey 0
Grüße, ScriptMan