Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CRM BADI debug

Former Member
0 Likes
775

Friends,

We are uploading the flat file to create a business partners through External List Management using the SAP provided BADI, 'CRM_MKTLIST_BADI' . We created an implementation 'ZCRM_MKTLIST_BADI' and added the custom code in the method 'create_business_partner'. I kept so many break points and try to debug the transaction , we are not able to debug the BADI. It is skipping all the break points and running the code. This makes me difficult to find the bugs and to see the data flow in the BADI.

Actually i extended the structure CRMT_MKTLIST_CP_EXT with some custom fields i want to upload custom data through transaction CRMD_MKTLIST.But the data from flat file is not uploading to table CRMT_MKTLIST_CP.

The table CRMT_MKTLIST_CP is not populating in BADI Method MAP_AND_CONVERT_DATA. please give me the suggestion .

Friends,

We are uploading the flat file to create a business partners through External List Management using the SAP provided BADI, 'CRM_MKTLIST_BADI' . We created an implementation 'ZCRM_MKTLIST_BADI' and added the custom code in the method 'create_business_partner'. I kept so many break points and try to debug the transaction , we are not able to debug the BADI. It is skipping all the break points and running the code. This makes me difficult to find the bugs and to see the data flow in the BADI.

Actually i extended the structure CRMT_MKTLIST_CP_EXT with some custom fields i want to upload custom data through transaction CRMD_MKTLIST.But the data from flat file is not uploading to table CRMT_MKTLIST_CP.

The table CRMT_MKTLIST_CP is not populating in BADI Method MAP_AND_CONVERT_DATA. please give me the suggestion .

4 REPLIES 4
Read only

Former Member
0 Likes
678

write code BREAK-POINT in code it slef.

Read only

Former Member
0 Likes
678

For debugging, Try to set the System Debugging and Update Debugging check boxes in debugger screen(Press Settings button and check the System Debugging and Update Debugging).

Regards,

Ravi

Read only

0 Likes
678

Check couple of things

1) IS the BADI active?

2) If the BADi is active, does it have any filters which are not allowing the BADI to get executed?

If the BADI is getting triggered, then put "break-point" as first line of the BADI implementation and see if it comes there. If the break point is not reached, then find out the main program which calls the BADI and see where is BADI being called. BADI gets called by the method CALL METHOD cl_exithandler=>get_instance. If this line is not executed, then you know BADI is not getting triggered at all. If this line gets triggered, then in the next few lines you will see the program calling the BADI. See what is happening there. Good luck

Hari

Read only

robertot4s
Contributor
0 Likes
678

Hi,

Try to put into the Badi an endless while like this:

data d_aux value 0.

WHILE d_aux = 0.

ENDWHILE.

After, when the program is hanging, go to the SM50 transaction, select your process, and go to the menu option: Program/Mode -> Program -> Debugging

Regards,

Roberto