required

The required option for inputfields makes entry non-optional.

The required option makes a entry into a field required in order to proceed to the ensuing screen or step in a process. The syntax is as follows:

{"required":true}

Examples

To demonstrate the required option, please do the following:

  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,5], "Inputfield Test", [4,20], {"name":"inpfld_1", "size":20, "required":true});
  2. Save the changes and refresh the SAP screen.

  3. The screen now appears as follows:



  4. To demonstrate the required option, re-open the script file and changethe code as shown below:

    inputfield([4,5], "Inputfield Test", [4,20], {"name":"inpfld_1", "size":20, "required":true});
  5. Try to proceed to the nerxt screen without entering data. Verify that this is not possible.
  6. Enter data in the field and try to proceed to the next screen. Verify that you can proceed.