Entity code events
You can write code in code events for most entities in a BA diagram, such as forms, reports, and Web services.
Locate the event
In your BA diagram, select an entity by double clicking on it in the BA diagram.
Depending on the entity, code events may be listed at the relation, document, record, and field level of its Properties view.