Skip to Content
author's profile photo Former Member
Former Member

Event handler priority in EM

Dear All,

I am having the below issues for set of EH for the same BPT.

Scenario:

Say EH1, EH2,EH3 belong to same BPT . As I understand there is one-one mapping between AOT & EHT and one-many mapping between BPT & AOT.

All these EH are configured to receive epics events ( object/aggregation etc..) & having same priority say 10.

Now when an epcis msg is sent to EH1 , some times it executes EH2, EH3. All these EH are associated with their own EH extension tables.

To trigger the specific EH , we have put a check in pre-post processing BADI ( if a EH specific extn parameter is passed , then set the corresponding BPT & AOT) but the EH triggering is not consistent. so we have to set priority high say 5 for EH1 in order to test EH1 only.

so is there any other means to trigger specific EH when EH specific epcis msg is submitted. The issue here is if i sent EH extension parameters for EH1, it executes EH2 and ruleset of EH2 tries to update extension table of EH2 which fails.

Regards

Tusar


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 03, 2014 at 08:12 PM

    Hi Tusar,

    when an EH is posted with specific BPT then the following happens. The EH Type with the highest priority (that is the lowest number!) is checked first. The EH Type condition is evaluated, if this EH Type is the correct one. If result is TRUE, this EH Type is taken, if it is FALSE the next EH Type according to the priority for this BPT is checked. This is done until a condition could be evaluated to TRUE or no EH Type for the BPT is left. A typical check in the EH Type condition is to check for the right AO Type, but there could also be additional checks, so that more than one EH Type can be used for an AO Type. Then you can determine with the priorities and the EH Type conditions which EH Type is taken.

    Cheers, Daniel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.