This is not possible
with the "SetCursor" which allows you to put the cursor on fields
within the screen area, but not into the OK-code entry field.
However, with GuiXT
Controls you can use SAP GUI scripting for this purpose:
GuiXT Script:
CallVBSAsync
SetFocusOK
VBScript:
Function
SetFocusOK()
SAPsession.findById("wnd[0]/tbar[0]/okcd").setFocus
End Function
|