Hi experts,
For a requirement we would need some kind of event logger. I had a quick look at BOPF eventing but came upon some issues during testing. Can someone confirm that:
1. It is not possible to retrieve the names of the changed fields in the event handler action of the subscribing business object? (The ATTRIBUTES table of the import parameter 'change object' is always empty. (Cf. with determinations we can do io_read->compare with import flag 'iv_fill_attributes' = true). Having a look at the stack in debug mode, it seems that the changed attributes table is never filled.
2. The event handler action is always called immediately after modify. If I only want to register changes that were saved in the subscribed BO, do I have to check this manually in the action? My action is called on modify (change_mode = U), and when saving, on reload (change_mode = X) and on lock (change_mode = E). As a consequence, one update in the subscribed BO creates 3 entries in the table of the logger BO.
The changed attributes which may trigger an event are maintained in a BRF+ decision table, so it is important to retrieve those changed attributes.
At the moment, we are considering to implement this as a determination on root node, with multiple requesting subnodes, retrieve the changed fields in check_delta and manually write to an event table in execute. Can you confirm this is the best approach, so this is not possible via BOPF eventing?
Many thanks in advance!
Kind regards,
Bjorn