SAP GUI scripting uses
rather complicated field ids that reflect the nested subscreen structure of the
screen. Scrollable subscreens and non-scrollable subscreens have different ids.
When you record a VBScript in SAP GUI, and then put a "NoScrollbar"
into the GuiXT script and replay the VBScript, it can occur that a field id is
not found. And also the other way round, recording with "Noscrollbar"
in the GuiXT script and replaying it without "NoScrolbar", gives the
same error.
For example, in
VA02 I recorded a "click" event without and with a
"NoScrollbar" statement in the GuiXT script, and got the following:
// without
"NoScrollbar"
session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/ssubHEADER_FRAME:SAPMV45A:4440/cmbVBAK-FAKSK").setFocus
// with
"NoScrollbar"
session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/subSUBSCREEN
_BODY:SAPMV45A:4400/subHEADER_FRAME:SAPMV45A:4440/cmbVBAK-FAKSK").setFocus
The difference is
the notation "ssub" (scrollable subscreen) as compared with
"sub" (subscreen).
|