Adding error messages for interactive forms

In this recipe, we will see how we can add error messages to interactive forms. We will see how a Date input field may be set to produce error messages when a wrong date is passed.

How to do it...

Follow these steps:

  1. On the Object palette of the Date panel, select the Value tab.
    How to do it...
  2. Select a validation pattern from the list box provided.
  3. Select the Error checkbox and in the Validation Pattern Message area and enter the message that you like to be displayed.
  4. Activate your form.

How it works...

When the user enters in the required format, no error is displayed. When a wrong date is entered, the error is shown as shown ...

Get SAP ABAP Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.