In the following section, we will demonstrate how to pass some data to a function that is called by a pushbutton. This process works essentially the same regardless of what type of screen element is being used - parameters can be passed to a variety of screen elements. In the following example, we will pass the parameter 'z_ord' to the function called by the pushbutton. In this example, the value will be contained in the script.
The VA01 screen now appears as follows:

We have created a new pushbutton and tied it to a function that sets the Order Type field to the value 'OR' each time the button is pressed. The value is defined within the script file. This action also sends an enter command, causing SAP to progress to the VA01 OVerview screen after the order type is populated.