GuiXT

Checking the date field

A date field entry needs to be reformatted and checked at the same time

You have defined your own date field by means of the “Inputfield" command. You would like this field to behave as far as possible like SAP Standard "Date"-type field. In other words :

  1. You would like to be able to select a date with F4.
  2. If you enter a date manually, after ENTER the field should be converted into the standard dd.mm.yyyy form
  3. If the date is entered in a wrong form, an error message should be issued
  4. If the date is invalid, an error message should be generated

To be able to select a date with F4, you must still specify in the input field the additional searchhelp="GuiXT.DATE" option. See also in this respect the documentation relating to the "InputField" command.

Using the script below, you can carry out the entire checking/conversion

You can build this script into a script you create yourself, first of all using the include "Datumstest.txt" command. Your script should start with the command On "Enter" Process="Ihr_Script.txt" .

zum Seitenanfang
top