cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging Middleware/BDOC when the material data transfered from R3 to CRM

Former Member
0 Kudos

Hi,

I am updating the status of Product in CRM using BADI - PRODUCT_CUSTOMER2 (R3_TO_CRM_MATERIAL). This happend when the status is updated in ECC (MM02).

Now the problem is, I want to debug this BADI, when the material is updated in MM02.

Could you please help me, how can I debug this BADI.

Thanks,

Sandeep

Accepted Solutions (1)

Accepted Solutions (1)

Maggie
Employee
Employee
0 Kudos

Hello Sandeep,

Please check below general steps to debug the delta download of ECC material.

in R/3

Set a break point in the function module CRS_MATERIAL_COLLECT_DATA (BTE Implementation)

Create/Change the material in R/3 by using transaction MM01 or MM02 and press save button.

Now you can debug the function module CRS_MATERIAL_COLLECT_DATA

in CRM (inbound queue)

Deregister the inbound queue R3AD_MATRIA* in transaction SMQR

Go to the transaction SMQ2 select the inbound queue and debug the queue

Set a break point on the mapping function module: COM_MAP_BAPIMTCS_TO_PROD_MAT

for validation debugging Set a break point on the validation function module: COM_PRODUCT_MAT_VALIDATE

I am sorry that I do not know where BADI PRODUCT_CUSTOMER2 is called.

Hope the baove information could be helpful.

Best regards,

Maggie

0 Kudos

Here is the flow how the BADI PRODUCT_CUSTOMER2 gets triggered.

FM : COM_MAP_BAPIMTCS_TO_PROD_MAT
Form : MAP_BAPIMTCS_TO_MBDOC
Form : MAP_DATA_AND_SET_UP_DTYPE
Form : MAP_CUSTOMER_DATA

In MAP_CUSTOMER_DATA we call the BADI.

Thanks Maggie for the help. It helped me to start my investigation.

Regards,
Madhav.

Answers (0)