Skip to Content

I had a requirement for controlling integration where I had to configure the middleware to enable the flow of service transactions from CRM to ECC. I will be trying to post a blog on the details of Controlling Integration soon; however this short blog is for those who are looking for options to debug service order related transactions from CRM to ECC.

(Apologies if any of these are repetitive from any previous posts or forums, I had to struggle a bit to get through to this as I did not find any existing post on this!)

1. First step – very simple and familiar to anyone having experience debugging middleware – deregister the queues.

     If the middleware setup has been done correctly bdocs will be generated for every service order/confirmation that is generated. Hence through transaction SMW01, check the bdocs that are getting generated. Under the queue name, you will find the name of the queues to be deregistered. Depending on the requirement, you can block either the entire CSA_ORDER_* queues or any particular queue corresponding to a single transaction. (Please be careful not to stop the subsequent flow or confirmations that need to flow for an order).

smw01_1.JPG

Goto transaction code SMQR to deregister the queue.

smqr_1.JPG

Once this is done, the bdoc for transaction 8000000144 will be in wait status when it is generated as the queue is blocked. (Make sure some change is applied to the transaction so that the change triggers the bdoc creation).

2. Goto transaction SMQ2 (Inbound queues) and you will find the queue readily waiting for you to flag it off!

smq2_1.JPG

3. Click on the right entry and select debugging icon

smq2_2.JPG

smq2_3.JPG

4. Hurray! You are within the ABAP debugger – a developer’s paradise where everything is within your control 😎

debugger1.JPG

5. Now is the tricky part. Where do I put the right breakpoints so that I can find out what is being done in ECC?

Depending on the bdocs generated, SAP uses certain standard function modules to transfer data to ECC. For example, in this situation, I got confused because the control goes to the function module CRM_R3_SALESDOCUMENT_UPLOAD also, but within in it doesn’t transfer to ECC as this transaction type is not a sales related one. Hence it passes through this FM without doing anything.

The right FM to be checked in the service scenario is CRM_R3_SERVICECONF_UPLOAD. (Place a breakpoint in this FM so that the control reaches here).

6. My requirement was to only check what was happening within ECC and hence I only needed to jump to the point where the call to ECC was being made. Hence I went directly to line number 343 in the FM CRM_R3_SERVICECONF_UPLOAD.

FM1.JPG

Just like in any other middleware debugging scenario, change the value of the parameter GV_SYNCHRONOUS_CALL to ‘X’. This will call the BAPI ‘BAPI_SERVICECONF_PROXY_UPLOAD’ in foreground and you will be able to get into ECC to debug.

There you go! You have the world in your hands to troubleshoot any issues arising out of service order replication to ECC! Happy Debugging!

Some other potential issues that can spoil your day after doing all the above:

– RFC destination is not set-up right with the required authorizations

– Your userid might not have the authorizations to execute this activity of debugging in the external system

To report this post you need to login first.

12 Comments

You must be Logged on to comment or reply to a post.

  1. Sap Guy

    Good post Ajithkumar!

    Debugging via the middleware has been kind of mistery for me until now.

    However, a little bit confused.

    You mentioned ‘Inbound Queues’. Shouldn’t have been ‘Outbound Queues’, from CRM to ECC. You do the debugging there, don’t you (i.e. the outbound queue) ?

    (0) 
    1. Ajithkumar Krishnakumar Post author

      πŸ™‚ That is a separate topic in itself when it comes to the SAP middleware framework. You would be able to find the answer for that in other SDN forums.

      There are multiple ways in which we can debug the queues. I followed the approach in which I process the inbound queues only.

      Please do rate the blog if you found it helpful.

      (0) 
      1. Geevanagari Reddy

        Hi Abjithkumar,

        I am very happy by watching your above document and i came across a situation where i am unable to trigger ecc debugger from crm side till 4th step same i have followed but after dat u have manually executing service transaction.

        der i have confused so please can you help me …..

        Thanks & Regards,

        Prabhanjan

        (0) 
  2. bhargavi J

    Hi Ajith Kumar,

    This is really helpful post helped me alot.

    I have a requirement that, my Service request are replicating to ECC, i want to stop all Service requests replication to ECC from CRM.

    I did selected’forbidden’ in To be distributed option in status profile, but still its flowing to ECC.

    Please help me how can i stop all the service requests replication from CRM to ECC.

    Thank you in advance.

    (0) 

Leave a Reply