The
reason is probably that if you have a Screen S with a popup P, both the script
for S and then the script for P will be processed. This is necessary since
SAP GUI rebuilds both screens using the protocol. Without the GuiXT script being
active for the underlying screen S, you would see the unmodified SAP layout in
the background.
For
layout changes this is okay, but in some cases variables should only be set if
there is no popup active. In
order to exclude cases where a popup is active you can use the if-statement:
if not
Q[InactiveScreen]
...
endif
|