Purpose With Include you can include a further script file.
Example Include "radiobuttons_company.txt"

The file  "radiobuttons_company.txt" is searched in the current script directory. It is then interpreted in the same manner as if its content were part of the original script.

Format Include "includename"

The file  "includename" is searched in the current script directory. If it is not found, a syntax error message is displayed in the GuiXT script window, and the main script is continued. If it is found, first the lines of the include file are interpreted, and then the original script is continued.

You can also specify the full path, e.g.

Include "\\server12\guixt\inlcudes\r105.txt"

Files in the SAP Web Repository or on  http/ftp servers can also be used, e.g.

Include "SAPWR:ZGUIXT.r105.txt"

Include "http://www.synactive.com/includes/r105.txt"

A nested Include is possible up to level 10.

Tips
&Tricks
  • You may use variables in the include file name, e.g.
    Include "inc&V[company].txt"
  • With if...endif you can work with a conditional include, e.g.
    if Q[Transaction=IW33]
     
    Include "IW33mainscript.txt"
    endif
Components GuiXT