In my script I use an if statement

if I[Account]

in order to determine whether the "Account" entry field is input or read-only. In the case of certain error messages the field becomes read-only, but the screen layout is not changed accordingly. What can be the reason?

The GuiXT script is not reprocessed in the case of an error message. SAP GUI system displays the error message and sets certain fields to read-only, but does not change the layout.