|
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:
Using GuiXT Viewer, you can choose the following layout instead:
For this example you need the following GuiXT script: if Q[Transaction=VD03] 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:
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:
We use the InputAssistant with the following scripts: Start screen VD03: Clear all GuiXT variables starting with VD03.
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.
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.
HTML editor. Use the GuiXT variables in order to display the field values.
Final result:
In a similar manner you can add information from other screens as well. |