Saturday, 17 November 2012

CRM to ECC Debugging



In the case of CRM to ECC integration there may be scenarios when you need to debug from CRM to ECC. Like in case of client replication from CRM to ECC , if the replication is not successful ,than you may need to check if some data error is there are some mandatory fields is missing. For that you need to debug the system from CRM to ECC.

To debug you can follow following approach:

1.  DEBUGGING FROM SMW01:

·         Put a break-point in
o    FM CRM_UPLOAD_AFTER_MAP_HANDLER  in CRM System
o   In class cl_exithandler in ECC system.
·         Reprocess the BDOC.
·         In debugging mode change the value of variable lv_synchron  to ‘X’.
·         Press F8 , control will reach to class in ECC.
·         Now you can put a break-point in your Z FM if you have created any to populate missing fields.
·         Put a break-point for ABAP command ‘CALL TRANSACTION’.
·         Change the transaction mode to ‘A’ and press F8. Control will go to screens where you can see what all values are populating and which are missing.
2. DEBUGGING THROUGH QUEUE SMQ1.
·         De register the queue from from CRM system by transaction SMQS for ECC system.
·         Put a break point on class cl_exithandler in ECC.
·         Create the BP and it will stop in queue SMQ1.
·         Go to SMQ1, double click on the BDOC. Double click on the queue name. You will get the FM name ‘CRM_UPLOAD_TRIGGER’.
·         Put the cursor on this FM and click on the debugging button.
·         Press f8 , control will reach to class in ECC.
·         Now you can put a break-point in your Z FM if you have created any to populate missing fields.
·         Put a break-point for ABAP command ‘CALL TRANSACTION’.
·         Change the transaction mode to ‘A’ and press F8. Control will go to screens where you can see what all values are populating and which are missing.

No comments:

Post a Comment