Pattern matching and validation

To demonstrate pattern matching, please do the following:

Note: Pattern matching and validation currently are available only on the GuiXT Mobile solution.
  1. Open the Easy Access script file (SAPLSMTR_NAVIGATION.E0100.sjs) and enter the following code. Create the script file if it does not already exist.

    inputfield([4,1],"Order Type",[4,10], {"name":"z_ord", "size":20,"smartattributes":"rf_pattern=??^rf_validate=/va01});
  2. Save the changes and refresh the SAP screen.

  3. Enter the following into the field:

    1000
  4. Press Enter

  5. If the entry does not match the pattern, the screen will display an error message. otherwise, the process will continue.