SAP RAP MESSAGES ABEXA
Get Example source ABAP code based on a different SAP table
RAP Messages: Transition and State Messages
This example demonstrates
The CDS data model consists of the root entity
Root entity:
DDLS DEMO_DRAFT_M
The
BDEF DEMO_DRAFT_M
For the above RAP behavior definition, one
ABAP_SOURCE_CODE
DEMO CL_DEMO_RAP_MESSAGES_DRAFT_M
ABAP_DESCRIPTION
The example demonstrates RAP state and transition messages. For this purpose, the validation implementation in the behavior pool includes the checking of the value of a specific field. A state message is returned if the validations fails. A transition message is returned if the validation is successful. Note that, typically, a validation rather returns a state message than a transition message. In this example, the inclusion of both types is intentional to demonstrate the differences between the two message types. The validation is assigned to the
For more information, see the comments in the code.