Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

1972632 - Unnecessary retrieval of event handler data


Dear All,

                 When is this note applicable  "1972632 - Unnecessary retrieval of event handler data when processing event messages"

                

Thanks,

Shubh.

replied

Hi Shubh,

by default all the event handler data (control, info, system parameter, tasks, query IDs, tracking IDs, hierarchy information) is retrieved before an event message is processed for this event handler. But in most cases not all this EH data is really needed to process the event message. This note introduces some new flags, which allow to disable the default retrieval of the EH data.

This can have significant impact on the performance, e.g. if an EH has huge amount of control parameters, but the rule activities do not need them during processing.

Using the flags DOES NOT mean that the activities can not use these EH data, it only means that they have to take care of retrieving the data themselves. You can check e.g. activity ACT_SET_TRACKING_ID:  "my_eh_access->load_trk_ids( ).", which retrieves the tracking IDs if not already done. Similar methods are available for the other EH data.

So the recommendation here is to use the flags to prevent the default retrieval of all EH data and let the activities take care of loading the EH data which is really necessary.

Best regards, Daniel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question