ABAP RAP

Validations and Messages

Scope

Validate user input at save time and report messages to the user.

Validations

Define validations in the behavior and implement checks in the ABAP handler. Example:

validation validateProjectManager on save { create; update; field ProjectManager; }

In the implementation, read entities from the local buffer and compare against lookup tables. Use FAILED and REPORTED to return results.

Messages

Use the if_abap_behv_message interface to return messages. You can use new_message_with_text or new_message to construct message objects (T100 or custom).