Professional Documents
Culture Documents
Let's Start With SAP GuiXT PDF
Let's Start With SAP GuiXT PDF
Applies to:
SAP 4.6 and above. For more information, visit the ABAP homepage.
Summary
This tutorial explains about using SAP GuiXT tool which comes installed with SAP. With SAP
GuiXT, we can modify any SAP transaction and change its look and feel without changing the
standard SAP coding.
Author: Ribhu Ahuja
Company: TCS Tata Consultancy Services
Created on: 22 April 2009
Author Bio
Ribhu Ahuja is working as a SAP HR ABAP and Workflow consultant for TCS since August
2006.
Table of Contents
To start with: .......................................................................................................................................................3
Configuring GuiXT Tool ......................................................................................................................................8
Putting custom image on Logon Screen...........................................................................................................13
Changing look and feel of logon screen and defaulting certain values ............................................................15
Modifying SAP Easy Access Screen ................................................................................................................17
Adding a button on logon screen and calling a transaction on click of the same.............................................17
Changing look and feel of transaction SE11 ....................................................................................................21
Graying or disabling of certain input fields........................................................................................................27
Displaying Custom HTML help .........................................................................................................................27
Related Content................................................................................................................................................29
Disclaimer and Liability Notice..........................................................................................................................30
To start with:
First of all, we need to enable scripting on front end and on the server in order to use the GUIXT
tool. To enable scripting on the front end, use the transaction RZ11. Logon to R3 and open
transaction RZ11 and put the value sapgui/user_scripting in the parameter box and click on the
button as shown:
A pop up box appears. Change the value of the last field New value to TRUE as shown and
click on the save button.
We are done with enabling scripting on front end. Now we will proceed for enabling scripting on
server. Come back to the SAP easy access screen and click on the icon on the right hand
corner and choose options.
Click on the scripting tab and check all the check boxes in user settings and then click on OK
button as shown:
Once all this is done, we may activate the GUIXT. The standard GuiXT tool comes as a feature in
SAP system installations. There are actually 4 components which come in GuiXT tool GuiXT,
Input Assistant, Viewer and Designer, out of which, licenses have to be purchased for viewer and
Designer tools in order to use them. This tutorial teaches about the GUIXT tool only. It is to be
noted that these scripts run on individual machines. That means on each user machine, we have to
activate the GUIXT, in order to run these scripts as shown below:
These are the directories that are searched for GuiXT scripts. The search sequence is always
Scripts4, then Scripts3, then Scripts2, then Scripts1. We can, for example, have company-wide
scripts in Scripts1, and some scripts of our own in Scripts2.
For this tutorial, let us create a directory named guixt in c drive and place it in Scripts 1 box as
shown above.
Let us log off and again open the r3 logon screen. As we do that, we notice the following:
First, the GuiXT tool opens automatically along with the various screen elements present on the
screen which are client, language, Password and User. Secondly, we see a scripting button
on the screen, which is an indication that the scripting is now enabled and working. Let us now
again click on the button on the right hand top of the screen. Doing so, we notice the following:
We notice that the Script Recording and Playback option is no more grayed out and is active. We
can use it to record any sequence of screens.
Now we will call this image in our script. Open the GuiXT tool and click on the Script button:
As we click on the script button, it opens up a notepad file for scripting and gives a popup:
Cannot find C:\guixt\elogon.txt file. Click on the yes button in order to create the script file for the
logon screen. It creates the file named elogon.txt.
Now, in the notepad file named elogon.txt, write the following command line.
Image (4,40) (10,65) "ribz.jpg"
It would look like this:
Save the file and close it. Now, on the GuiXT tool, click on the refresh button:
If the image do not appears, just logoff, close all the screens and reopen the R/3 logon screen. The
image would show up then.
Changing look and feel of logon screen and defaulting certain values
Now, let us change the look and feel of the logon screen. In the GuiXT tool, click on the Script
button and paste the following code in the elogon.txt file:
Image (4,40) (10,65) "ribz.jpg"
box (1,0) (4,39) "Please enter user id and password"
pos F[User] (2,1)
pos F[Password] (3,1)
set F[Client] "800"
set F[Language] "EN"
del F[Client]
del F[Language]
The screen elements available to us were User, Password, Client and language. We have
rearranged the fields User and Password in the above script and defaulted the values of Client and
Language and deleted them from the screen after defaulting them. It results in the following logon
screen:
Let us now give the username and password and login into the R3 system:
Now, we see that the only screen element available to us is [IMAGE_CONTAINER]. Let us
reposition this image container and insert an image on the screen.
Write the following script:
pos X[IMAGE_CONTAINER] X[IMAGE_CONTAINER]+(0,15)
Image (1,1) (5,10) "ribz.jpg"
After refreshing, we see the following SAP Easy Access screen:
Adding a button on logon screen and calling a transaction on click of the same
Now, Let us put a button on the screen and call a particular transaction on the click of the same:
For this, write the following script for SAP Easy Access Screen:
pos X[IMAGE_CONTAINER] X[IMAGE_CONTAINER]+(0,30)
Image (1,1) (5,10) "ribz.jpg"
pushbutton (12,1) "abap dictionary" "/NSE11"
As we refresh the GuiXT tool, we see the following modification in the SAP Easy Access Menu:
Let us slightly change the button layout. Let us modify the size of the button and add an icon on the
same. We write the following script:
pos X[IMAGE_CONTAINER] X[IMAGE_CONTAINER]+(0,30)
Image (1,1) (5,10) "ribz.jpg"
pushbutton (12,1) "@3B\QOpen SE11@abap dictionary" "/NSE11" size=(3,14)
Hence we see the following screen:
The 2-letter code for the icons can be found in transaction ICON.
We would want to delete all the fields and just give the user the option of table MARA and PA0001
in the form of radio buttons. This can be achieved by the following script:
// create a box
offset (0,1)
box (0,0) (5,60) "Table to be displayed"
// set radio buttons for database table
radiobutton (2,2) "MARA" F[RSRD1-TBMA_VAL] "MARA"
radiobutton (3,2) "PA0001" F[RSRD1-TBMA_VAL ] "PA0001"
// Default the table name as MARA
Default F[RSRD1-TBMA_VAL] "MARA"
// Delete unnecessary fields
del F[RSRD1-DDTYPE_VAL]
del F[RSRD1-TBMA_VAL]
del F[RSRD1-TYMA_VAL]
del F[RSRD1-SHMA_VAL]
del F[RSRD1-VIMA_VAL]
del F[RSRD1-DOMA_VAL]
del F[RSRD1-ENQU_VAL]
del R[Database table]
del R[View]
del R[Data Type]
del R[Domain]
del R[Lock object]
del R[Search help]
del R[Type Group]
Thus when we run this script, we see the following screen modification in SE11:
When user chooses radio button MARA and clicks on the display button, table MARA is shown:
Let us now come back on SE11 main screen and let us put Images instead of buttons (Display,
Change and Create). In our requirement, we will create an image link for Display and delete the
other two buttons so the user can only display the tables and he does not have the option of
change and create. For this, let us first of all see the OK Code of Display button. Click on the
Display button on the screen and while keeping the button clicked, press the F1 key and it shows
us the ok code of Display which is SHOW:
When the user clicks the image, it opens the particular table chosen (MARA or PA0001).
Now, let us add some informative text on the screen. For this, add the following to our script:
// Inserting Text
box (10,20) (18,50) "User service"
text (11,22) "SAP GuiXT is very simple"
When we click on the link, we see the HTML help page SAP guixt tutorial.html:
Related Content
http://service.sap.com
www.sdn.sap.com
www.help.sap.com
www.synactive.com
For more information, visit the ABAP homepage.