|
| Purpose of GuiXT | With GuiXT you can add comfort, speed and intuition to your use of the R/3 system. Writing only a few lines, you integrate images and texts into the R/3 forms, you rearrange fields, you offer radio buttons instead of coded input, and you create push buttons for selected functions. |
| Technology | GuiXT is based on a simple scripting language. You define the layout of an R/3 screen in the form of a series of commands. |
| Example | del [Translation
dte]
pos [First line item] (8,0) The entry field Translation dte is deleted and the field group First line item is shifted to row 8, column 0. |
| Create and edit a GuiXT script | How do I create and edit a
GuiXT script? Go to the R/3 screen that you wish to modify. Click on Edit->Script in the GuiXT Menu. Now the text editor (Notepad) for the corresponding script is started. |
| Calling for Help | The documentation has to be
installed if you wish to call for help, since Help
is in fact the Documentation. When you install GuiXT (either after downloading it from our website or by installing the version delivered by SAP) you do not install the help files automatically. You can download the documentation from the download page of our website. Please note that the language of the help will depend on the language used for the logon (English/German/French). So, for example, if you logged on in English, the English version of documentation has to be installed. Please check in your GuiXT profile that the directory indicated for the documentation is correct. |
| Where are the GuiXT Scripts stored? | GuiXT Scripts are stored as
normal ASCII files on your PC or on a file server in a
LAN. You define the directory for the GuiXT scripts with
a profile parameter in guixt.ini: Directory1 directoryname For example,
Up to 4 directories can be specified: Directory1,...,Directory4. They are searched for a suitable script in reverse order Directory4,...,Directory1. For example Directory1 could contain company specific scripts and Directory2 could contain specific scripts for a certain user group. With GuiXT profile parameters you can assign different scripts for different user groups. If you are working in more than one R/3 system or in several client systems, you can use the following system variables in the directory names: &client
is replaced by actual R/3 client Example: Directory1
"\\Server\GuiXT\scripts" Say we are working in R/3 system TST. GuiXT will first look for corresponding script indicated as Directory3 C:\GuiXT\myscripts\TST. If the script cannot be found there, GuiXT will then look for it in directory F:\GuiXT\scripts\TST and finally in directory \\Server\GuiXT\scripts. On the R/3 Logon screen the variable &client will be replaced by the value 000 as client is not known at this stage. |
| Naming conventions for GuiXT Scripts | Each GuiXT Script refers to
exactly one R/3 screen (R/3 dynpro). In the R/3
repository the screens are identified using the ABAP
program name and a 4-digit screen number, e.g. Screen 0100 for program SAPMF05A. Since GuiXT scripts
are language specific (they contain field names, texts
and images), their key also contains a language key, e.g.
E for English, F for French, I for Italian, J for Japanese,...
The name of a script file is constructed as follows: pppppppp.Lnnnn.txt pppppppp: ABAP program name
Example: SAPMF05A.E0100.txt This holds with the following two exceptions:
You could use Image, View, Pushbutton in order to design your own graphical application menus. |
| Format of script commands |
|
| How do I name the screen elements? | Screen elements are:
They are named according to their text as displayed on the screen, in square brackets, e.g. [Translation dte] or [Account number]. Please note that you have to enter the text exactly as it appears on the screen, with the following possible exceptions:
Optionally you may specify the type of the screen element prior to its name, for example if a field and a field group have the same name. The following types are possible:
Examples: del F[Translation
dte]
You can also deal with screen elements without text using the notation:
If two ore more elements with the same name exist, e.g. [Account number], then the first field (from top left to bottom right) gets the normal name [Account number] and those following get a sequence number as suffix: [Account number.2], [Account number.3], ... If two or more tables without names exist, then the first table is addressed with [table] or T[table] and those that follow get a sequence number as suffix: [table.2] or T[table.2], ... |
| Positions | There are three ways to
specify a screen position:
|
| Relative Positioning | In order to shift a group of
screen elements en bloc, e.g. radiobuttons, you can use
the Offset command in the form (row,column). The given offset is
then added to all subsequently specified numerical
coordinates. For example, the following two possibilities
are equivalent: Offset (10,21) and Radiobutton
(10,21) "..." |
| Variables | In all strings "..."
within a script command line you can use variables that
stand for field values of the current screen or of
previous screens. Before the system interprets the script
command, it replaces all variables by their corresponding
values. The name of a variable consists of the &-sign
followed by the field name within square brackets, e.g. &[Account]. Example: Title "Display account &[Account]" If the current value of [Account] is 113100, the Script command is equivalent to Title "Display account 113100" You can also extract substrings with the notation &[...](a-b) where a denotes the first character to be extracted and b the last one. Example: "&[Account](3-4)" is replaced with "31" if the whole account number is 113100. It may sometimes be necessary to use input values from previous screens. For example, you might have entered a product number in the first screen of a transaction and you wish to use this product number in the second screen for displaying a product image. In this case you have to put two colons prior to the field name. Example: Image (4,80) "P:\products\img&[::Material number].jpg" If the user entered the product number 00500187 on the first screen, the image file P:\products\img00500187.jpg is displayed on the second screen. A special predefined variable is the current date &[today_...] in various formats. You can use the letters d=day, m=month and y=year in order to define the date format that you need. Examples for December 24th, 1999: &[today_dmy] 24121999 You can also add or subtract a given number of days from the current date. Examples for December 24th, 1999: &[today+1_dmy] 25121999 |
| Tips & Tricks |
|