Skip to Content
avatar image
Former Member

Message not assigned to Handler


I'm encountering an issue with message assignment to valid handlers.

Scenario: I'm creating 1000 handlers and messages simultaneouly from an application system. I am able to be all 1000 EH and Mesages created in EM with no errors, however around 20 messages are still not assigned to handlers.

1. I've checked the /SAPTRX/LOCKEDEH table and do not see any entires for locked handlers

2. The handler is active

3. I cannot see any entry for the message in the /saptrx/eh_evmsg table

4. When i reprocess the handler, the message gets assigned

Does anyone know why this happens and how do we resolve this automatically?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 06, 2015 at 06:22 AM

    Hi Affan,

    as Gopi said the EH were not processed look into the mentioned table.

    For you scenario a maybe better solution would be to send the messages and create with the message the EH. This would prevent the situation you have.

    Check SPRO:

    Event Management

         Event Messages, Status Queries, Web Interface and EM OData Service

              Define Criteria for Event Message Processing

    -> EH Generation Functions

    Criteria for Creating Event Handlers

    You define criteria so that the system uses a plug-in function module to create an event handler on the basis of an event message.

    For example, you use smart tags in your warehouse that create an event handler in SAP Event Management when a package is collected. SAP Event Management checks if it has already created an event handler for this object before creating one.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I don't think we would be able to change the way both SAP systems communicate this late in the project. looks like the AOT configurations should not be used in high volume scenarios.

      I'm exploring another option of having the messages moved into the same queue as EH creation request. this should atleast reduce the instances of simulatenous calls to both EM objects.

  • avatar image
    Former Member
    Aug 06, 2015 at 05:03 AM

    Hi Affan,

    When the event message processed, it would check EH exists when you sent along with EH.  The event message may have sequence problem like event message comes before Event Handler created.

    Can you check in the table /SAPTRX/EVM_UNPR those 20 event messages were sitting here?

    Sequence when event message arrives to SAP EM:

    1. Store event message /SAPTRX/EVM_HDR table

    2. Check tracking id exist for EH ID, if unsuccessful

    3. Then create an entry in /SAPTRX/EVM_UNPR

    Once Event handler created, unprocessed event messages automatically assigns to relevant event handlers.



    Add comment
    10|10000 characters needed characters exceeded