Checking an entry
Has the value of an entry field been changed by the user?
You wish to read the text belonging to an entry field using a CALL instruction.
However, you would only like to do this if the field has been changed by the user. If the user does not change the field, the field need not be read, as it is still correct.
In assigning values to an input script, there are various possibilities for specifying Using/Parameter. See also the corresponding documentation on USING.
Case 1
On "Enter" Process="Texte_ermitteln.txt
using Versandbedingung = [Versandbedingung]
Fall 2
On "Enter" Process="Texte_ermitteln.txt
using Versandbedingung = &[Versandbedingung]
If the user changes the value of the shipping condition from 01 to 02, in Case 1 “02” and in Case 2 "01" is assigned.
We make use of this fact, in that we assign both variants to different fields:
On "Enter" Process="VA01_Enter.txt"
Using VA01_VSBED_alt = &[VA01_VSBED] // old value (before change by user)
Using VA01_VSBED_neu = [VA01_VSBED] // new value (before change by user)
Comparing "VA01_Enter.txt" "VA01_VSBED_alt" and "VA01_VSBED_neu" in the input script, we can tell if the value has been changed.
The scripts below are a small example of VA01. The example assumes that you have installed GuiXT F4 value help. (Program ZGUIXTF4 and transaction ZXF4)
SAPMV45A.D0101.txt
VA01_Enter.txt
Return.txt