Skip to Content
Author's profile photo Ajithkumar Krishnakumar

Debugging service transactions from CRM to ECC

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).


Goto transaction code SMQR to deregister the queue.


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!


3. Click on the right entry and select debugging icon



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


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.


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

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      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) ?

      Author's profile photo Ajithkumar Krishnakumar
      Ajithkumar Krishnakumar
      Blog 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.

      Author's profile photo G Reddy
      G 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,


      Author's profile photo Vijay Reddy
      Vijay Reddy

      Document is Fine, requires a bit elaboration in the debugging point 5.

      Best Regards,


      Author's profile photo Former Member
      Former Member

      Thanks. Does it apply for sales order replication too?

      Author's profile photo Ajithkumar Krishnakumar
      Ajithkumar Krishnakumar
      Blog Post Author

      Yeah... common across the one order objects. You would have to figure out the right FM in CRM for the sales order upload.

      Author's profile photo Former Member
      Former Member

      Hi Ajith,

      Thanks for the blog, could you please guide me how to replicate the CRM contracts to ECC.



      Author's profile photo Former Member
      Former Member

      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.

      Author's profile photo Arjun Pawar
      Arjun Pawar

      Nice blog..Ajith 🙂

      Author's profile photo Former Member
      Former Member

      Thanks a lot Ajith , very helpful blog....

      Author's profile photo Former Member
      Former Member

      Very helpful blog...Thanks

      Author's profile photo Former Member
      Former Member

      Very helpful but still not able to achieve any progress after point 4. 🙁