The SAP standard screens often contain a number of fields that you don’t need. With GuiXT you can get rid of unnecessary elements and rearrange the screen to your liking. As an example, let’s look at transaction MM03, Material Master, Basic data 1. In contrast to special configuration tools within SAP applications (e.g. for material master data), GuiXT works in the same way for all applications and screens. By mastering a small set of instructions (e.g. del to delete and pos to modify an element’s position) you can rearrange a screen on your own PC, and then release it for a large number of users. |
|
Starting point: SAP standard screen in materials management
|
|
Unnecessary fields are crossed out |
How to proceed: Click on “Script” in GuiXT in order to open the screen script for editing. Delete all unwanted elements using the “del” command. Instead of writing down the fieldnames, you can click on the element in the GuiXT window “Screen elements”, and then paste it into your script with Ctrl+V. del F[Ext. matl group] del F[Volume] GuiXT window “Screen elements”:
Here F[...] stands for field, G[...] for group box, P[...] pushbutton, C[...] checkbox. |
|
Rearrangement of remaining fields
To achieve your final layout, you can rearrange the remaining fields using the “pos” command:
// Rearrange fields In the “pos” command, name the element and its new position as above. The coordinates can be absolute or relative to other elements. As a final touch, use “BoxSize” in order to resize the group boxes: // Define new box size |
|
Final Layout |
The new layout is meant for “Basic data 1″ only. Since GuiXT scripts are stored for each screen (SAP dynpro), but not for different tab views on the screen, you need to restrict the script to the active tab “Basic data 1″: // GuiXT Script saplmgmm.e4004.txt if Q[Page=Basic data 1]
// Delete unnecessary fields / endif If you wish to have the layout active only for displaying materials (transaction MM03), but not for material creation or change, you can indicate this using // Check: transaction MM03 |
Tip: Instead of entering the script manually, you can use the wysiwyg tool “GuiXT Designer” to generate the script automatically. See Designer-Tutorial for details. |