
When accessing a RAP business object via EML, you can use the associations defined in its behavior definition to read data from associated child entities that are part of the composition tree.
Note
The read-by-association operation is implemented in READ ENTITIES or READ ENTITY by adding BY \<association_name> between the entity name and the field specification. In the example, the association name is _line.
The derived types for the read-by-association operation are defined by using <entity_name>\<association_name> instead of just the entity name.

It is possible to read parent entity instances and related child entity instances in the same EML statement. In the example, gt_keys is filled with one or several keys for instances of root entity Z##_R_Travel. The first part of the READ ENTITIES statement retrieves the data for the travel instances.
The second part reads data for all travel item instances that are related to the root entity instances via association _Item.
The addition LINK is only available in read-by-association operations and returns an internal table with keys of source entity instances and target entity instance. It can be used later to map the travels to the related items if more than one travel has been read.
Hint
Note

