Skip to Content
0

How to debug customization adapter object in sap crm middleware

Jul 02, 2017 at 06:00 PM

118

avatar image
Former Member

Hi,

we have customizing adapter object which synchronize Z table from ecc to crm, I found the mapping FM. Initial load is getting success working everything fine.

Debugger is not triggering, these are the steps I followed. Please correct me if I miss anything.

1.Put breakpoint in Mapping FM

2. In CRM SMQR deregistered the Queue R3A*

3. Started the Initial load no Queue is stopping or no breakpoint is triggering

4. z table is getting synchronized

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Athreya Ramakrishna Hegde
Jul 03, 2017 at 04:11 AM
0

Hi John,

Check the table CRMRFCPAR in the backend system where the RFC destination for the CRM system is maintained. The field 'InQueue Flag' for the particular entry should be set to 'X' so that replication determines the queue name as R3AI_* and since you have de-registered the queue in SMQR of CRM system, the inbound queue should be stopped with status READY.

Regards,

Athreya

Show 9 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I have checked in ECC, It was already set for CRM destination.

Thanks.

0

Hi John,

I am not aware of how you are extracting the customizing data and sending it to CRM from backend system but if you are using function module CRS_SEND_TO_SERVER (the standard replication process uses the same) to pack and send the data to CRM, it will determine the queue name. I suppose you need to debug the data extraction part on backend system to understand better.

Regards,

Athreya

0
Former Member

Hi,

we already had Z adapter object with mapping ZFM.

0

Hi John,

You will have to check the logic written in custom FM for sending data to CRM system. If there is a direct RFC call from ERP to CRM system for updating the data, there would be no queue generated for it.

Regards,

Athreya

0
Former Member

I have checked the FM code, it is not a direct RFC call.

It is very simple code,

looping bapimatics to get table data ->if table data is not initial->delete z table old entries-> update z table with new entries.

But I am not able to debug this, I put session/external breakpoints also.

Thanks.

0
Former Member

I also followed your post, but still debugger is not triggering in that FM.

https://blogs.sap.com/2015/12/07/debugging-conditions-upload-from-crm-to-ecc/

0

Hi John,

The above link you referred is for data going from CRM to ECC. I suppose you want to debug the data flow when the table entries are coming from ECC to CRM.

When you are triggering the load in CRM using transaction R3AS, start the debugger (/h) and when you are in debugger screen click on Settings->change Debugger Profile/settings and select the check box 'TRFC (In background Task):Block sending' and execute. This will stop the outbound queue and from there you can debug the data extraction that happens in ECC and also check if queue name is determined or not.

Regards,

Athreya

debugger.png (85.9 kB)
1
Former Member

Hello Athreya,

Thanks you for your time.

I tried as you said but it is not triggering, Initial load is getting success without any stopping. I checked CRM&ECC in/out Queues not stopping.

Thanks.

0
Former Member

Finally I found, as per note 1987604.

Thanks Athreya.

0