Display transactions with GuiXT Viewer

With GuiXT Viewer (version 2000 Q3 and upwards) you can use html or rtf in order to realize a completely new layout for SAP display transactions. The technique is straightforward as you will see in our examples. You can use any tool you like (e.g. MS Frontpage) in order to design a screen layout ideally suited to your users.

There are several possible enhancements which we will discuss below; for example you can combine data from several screens into one html page (using InputAssistant).


1

The SAP standard transaction VD03, customer address data, looks like this:

Sap Guixt minitemplate01 Display transactions with GuiXT Viewer

Using GuiXT Viewer, you can choose the following layout instead:

Sap Guixt minitemplate02 Display transactions with GuiXT Viewer

For this example you need the following GuiXT script:

if Q[Transaction=VD03]
View (2,4) (16,80) “template=CustomerAddress.html”
del (2,0) (24,80)
endif

With an html editor (such as MS Frontpage) you produce the template file CustomerAddress.html, where you use variables in order to show the SAP screen fields. The notation for variables is the standard GuiXT notation. Field names as well as coordinates are possible:

Sap Guixt minitemplate03 Display transactions with GuiXT Viewer

2

As a next step, we now want to show the contact persons in the same HTML display. In standard SAP they are displayed on a separate screen:

Sap Guixt minitemplate05 Display transactions with GuiXT Viewer

We use the InputAssistant with the following scripts:

Start screen VD03: Clear all GuiXT variables starting with VD03.

Sap Guixt minitemplate06 Display transactions with GuiXT Viewer

Address display in VD03. Check if it is necessary to read the contact persons. If yes, enter the internal code for the contact person display and process the InputScript. Otherwise: Show the data in html format.

Sap Guixt minitemplate07 Display transactions with GuiXT Viewer

InputScript. On the screen with the contact persons, set internal variables with the values needed later on. Use the “View Screen Elements” displayed in GuiXT for the name of the variables. Where no names exist (no field labels) use screen coordinates.

Sap Guixt minitemplate08 Display transactions with GuiXT Viewer

HTML editor. Use the GuiXT variables in order to display the field values.

Sap Guixt minitemplate09 Display transactions with GuiXT Viewer

Final result:

Sap Guixt minitemplate04 Display transactions with GuiXT Viewer

In a similar manner you can add information from other screens as well.

Display transactions with GuiXT Viewer