Adjusting Transactions Using GuiXT

The following example is designed to illustrate the range of functions available in GuiXT. A transaction for displaying flight-related data consists of two screens. While the first screen is used for entering the requested airline carrier and the flight number, the second screen displays the corresponding data as you can see below:

Your task is to edit this second screen of the transaction using GuiXT to make sure it looks as follows:

You make the following changes:

  • You remove fields that are not required.
  • You insert an image.
  • You adjust the headings in the table, and change the position of the table control.


To adjust the transaction for displaying flight data, we recommend that you use the following procedure:

  1. Activate GuiXT in the standard toolbar.
  2. Call transaction TZ60. On the first screen, enter the required data for the airline carrier and the flight number (for example, LH, 400). On the second screen, choose Edit ® Script in the GuiXT window.
  3. Hide the field Distance, and the associated input fields. Enter the appropriate commands in the editor. You can use

    del [screen element]

    to remove fields, field groups, pushbuttons, radio buttons, and checkboxes from the screen. The command del [Distance] also deletes the associated input field. There is also the possibility to delete fields by specifying the position. For example:

    del #[5,62]

    In the GuiXT window, choose Help ® Script commands to display help on each command. If the help is not displayed, you can download the files from SAPNet (alias GuiXT) or from the Synactive homepage (

  4. Position the Arrival time field below the Departure field:

    pos [Arrival time] (7,0)

  5. Move the table in the bottom part of the screen further down to make room for an image.

    pos T[Table] (11,0)

    Since the table is used to check the number of available seats for each flight, you can make the following adjustments:

    Move the Occupied column to the second position, and the Capacity column to the third position. To do this, add the following commands to the script:

    ColumnOrder [Occupied] 2

    ColumnOrder [Capacity] 3

    Increase the width of the Date column to make it better readable:

    ColumnWidth [Date] 15

    Write out in full the FlgtPrice heading:

    ColumnHeader [FlgtPrice] "Flight Price"

  6. To display an image on the right-hand side of the screen, add the following statement to the GuiXT script:

    image (0,35) (8,62) "c:\demo\flight.gif" "-plain"

    The "-plain" addition suppresses the 3D border which would normally be displayed around the image.

    The image statement can be used very flexibly. If you use the "Start= " option, for example, you can start a PC application of your choice when the user clicks an image.

  7. Save the script, quit the transaction, and restart it. The system now displays the transaction as you changed it.