I am getting an ABAP short dump with "CNTL_ERROR" while using an input script. What do I do?

Newer versions of SAP GUI and SAP ERP include external controls called as ActiveX (OCXs). ABAP code internally issues some commands to flush and refresh these controls. Since, when using GuiXT and input scripting, these controls are not created, and ABAP dumps. Use keyword "Enable controls" (without quotes on a separate line) in a screen block that has an ActiveX control.

Example:

Screen SAPLCOIH.3000
  Enter "/Menu=4,1,5"

Screen SAPLSP01.0100
  Enter "=No"

Screen RIPLKO10.1000
  Enable controls
  Set
F[Group] "UG"
  Enter "/8"