
When you define a RAP business event, you can optionally define a parameter to specify the information that is passed to the event consumers. This information is called the payload of the event.
To specify the type of an event parameter, you have to use a CDS abstract entity.
A CDS abstract entity defines the type properties of a CDS entity without defining a database object. It means that an abstract entity does not build on a data source and you cannot select data from it. As a consequence, the definition of an abstract entity has no as select from or as projection on clause and the element list consist of element names and related data types, preferably data elements but built-in types are also supported.
Note
You can consider CDS abstract entities as a further development of dictionary structure types. They also define a global data type, but in addition they support CDS features like annotations, exposed associations, importing parameters, and so on.

To create the data definition for a CDS abstract entity, proceed as follows:
Open the context menu on the package or its subnode Core Data Services→Data Definitions.
When prompted for the template, choose Abstract Entity (creation)→defineAbstractEntityWithParameters.
Remove the parameter, if you don't need it, and replace the placeholders in the element list with element names and related element types.
Note
There is currently no template for abstract entities without parameters.

