InputAssistant Tutorial General topics 1  Create InputScript   2 3 4 5 6 continue

InputScripts allow us to automatically carry out user actions in the  SAP-System. Just about every user transaction (reading field values, data entry, pushbutton operations, etc) can be carried out automatically using an InputScript. Instead of carrying out each operation separately the user simply starts an InputScript. This can cover as many screens as the user wants, and even several transactions. 

As our first example we want to offer the user a pushbutton that displays a given list. The normal steps used to display the list (e.g. calling up transaction SA38, entering a given report-name, pressing F8, entering a given selection, pressing F8) are defined by means of an InputScript which is then started (whenever we want) by means of a pushbutton all its own.

This is how we proceed:

  • Record the user’s actions using the function “InputRecording” in GuiXT 

  • Save the InputScript you have created under a name of your choosing

  • Define a new pushbutton by means of which the user can start the InputScript 

If desired, you can also:

  • Replace fixed, existing values (e.g. a product number or a text, etc.) by variables that the user enters into the initial screen

  • Deal directly with certain error situations directly in your InputScript. In the case of errors, GuiXT normally calls up the same transaction again, enters the initial values and displays the original error message. The user can then correct his own input data and start the procedure again.

  • Define search-helps for the newly introduced fields, e.g. with reference to SAP Matchcode, or by means of local value help

These three extras are explained in later tutorials. Here we set out the simplest case.

Layout of the procedure

Sap Guixt image.ia.5.01 Create InputScript

Switch on the Recording-Function in GuiXT

Sap Guixt image.ia.5.02 Create InputScript

Step 1: Transaction code SA38

Sap Guixt image.ia.5.03 Create InputScript

Step 2: Program names

Sap Guixt image.ia.5.04 Create InputScript

Step 3: Selection conditions

Sap Guixt image.ia.5.05 Create InputScript

List display 

Perform all steps manually

Sap Guixt image.ia.5.06 Create InputScript

Display recorded script

Sap Guixt image.ia.5.07 Create InputScript

Save the recorded script under a name of your choice e.g. “matlist1.txt”. In the GuiXT script on the screen in which you wish to offer the user the new button. Now add the instruction

Pushbutton (2,1) “Materials Plant London”   process=”matlist1.txt”

Should you wish to add the pushbutton to the initial screen of the SAP-Systems, you must make room, e.g. by slightly shifting the navigation menu, thus:


Sap Guixt image.ia.5.08 Create InputScript

By simply clicking the new button the user can display the required list

Sap Guixt image.ia.5.09 Create InputScript

By clicking “e
nd” (F15) you exit from the list and return to the navigation menu.

Tip: Explanations on how to work with  InputScripts are to be found in our Documentation under InputScripts.

 Sap Guixt weiter Create InputScript 

Create InputScript