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

Queues creation depending upon Sales order number,Delivery number etc

Hello Guys,

I have a small question regarding the queue creation between our ECC system and EM system.

Now all our sales order events, delivery events etc are passing through two different queues.

For Example - Sales order = ESC_SORDER - Inside this queue all our sales order events gets passed to EM system

Same for Delivery = ESC_DELIV.

But the problem i am facing that if any sales order due to some other reasons dumps in the background , the queue gets stopped. Which leads to all other relevant sales order data stuck behind it.

So until and unless that records moves we are not able to process the subsequent sales order or delivery data.

I cam across a document which states that we can implement a BADI for the same.

But i just want to ask the experts how to deal with this type of situation so that everything does not gets stopped altogether for 1 record.

My issue is in ECC, GTS system. Not in TM system.

Please suggest me.


Mainak Sen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 15, 2016 at 04:26 PM

    Hi Mainak,

    Please refer to this thread.

    It has all the info regarding creating parallel queues.

    Petra provided detailed step by step solution for multiple queues. As she described, use a custom plugin altogether or do an enhancement to the standard one.

    There are other info provided by me, Gopi and Daniel in the same thread.



    Add a comment
    10|10000 characters needed characters exceeded

    • For ESC_SALES, you need to add your custom plugin in the following screen shot on BPT level.

      Create Custom Plugin:

      Then add it here:

      You can create one per sales order by adding sales order to the queue name or create 10 unique queues by adding last digit of sales order to the queue like EM_SO_0, EM_SO_1, ...EM_SO_9.

      Let me know if you are confused and I can provide detailed solution.



      pastedImage_0.png (36.5 kB)
      pastedImage_1.png (27.6 kB)
  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2016 at 04:16 AM

    Hi Mainak,

    Three things you need to perform:

    1. First you need to out the rootcause why it is failing, it could be database error or BLDAT error (we got a custom OSS note from SAP for one of the client that resolved the issue permanently, so create SAP OSS Note). To find out the rootcause through step by step, I have suggested in this link Recognizing Error Events | SCN

    2. a) Implement parallel queues where Kevin has nicely written and given the code, you can check here SAP EM ABAP - Using parallel queues in SAP Event Management 4.0 - Code Gallery - SCN Wiki

    b) Copy the template of /SAPTRX/QUEUE_NAME_TEMPLATE and implement custom logic to create 10 queues to process and then assign it to Business Process Type as suggested by Vishnu.

    c)The functional module /SAPTRX/QUEUE_NAME_DETERMINE Determine queue name for Business Process Type, it checks Queue Name Extractor present, if not then it takes Business Process Type name.

    3. Though, you have setup parallel queue or multiple queue to process in SAP ECC and SAP GTD. The best approach that you have to implement CCMS monitoring to alert the support team for queue failures. That would enable support team to address the issue round the clock immediately. How to implement CCMS monitoring for RFC queue, you can talk to SAP Basis team or you can implement through this SAP OSS note 441269 - Setting up tRFC/qRFC monitoring in the alert monitor

    and set the severity to critical/high implementing this SAP OSS note 1278532 - CCMS qRFC Monitoring: Alert Severities as for MTE



    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.