cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate check: access ID of current business partner

Wolfgang_Mayer
Active Participant
0 Kudos

Hello,

we're using BADI ADDRESS_SEARCH to perform duplicate check of business partners in CRM 7.0.

Some relevant address fields are passed to method ADDRESS_SEARCH (e.g. city, country, ...), however, not the partner ID or the GUID of the business partner.

Is there any chance to access the currently processed business partner from inside the BADI method? The former (CRM 4.0, 5.0) BDT function modules "BUPMEMORY" don't work any more.

The thing is that we need to control the duplicate check based on several BP attributes like grouping, BP role, and so on.

Kindly consider that we're not in the IC (interaction center) but in the CRM web client (role SALESPRO)

Many thanks for any help & kind regards

Wolfgang

Accepted Solutions (0)

Answers (3)

Answers (3)

robert_kunstelj
Active Contributor
0 Kudos

Hi.

I would also like to implement duplicate check. Can you please send the code sample for ADDRESS_SEARCH badi.

Thanks.

Wolfgang_Mayer
Active Participant
0 Kudos

Hi Robert,

kindly check the default implementation of the class of BADI definition ADDRESS_SEARCH.

Regards

Wolfgang

Former Member
0 Kudos

Hi Wolfgang

Did you solved the problem?

Regards,

Tom

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

One way is to enhance the custom controller of the BP_HEAD component, add a new attribute e.g., BP No or GUID and set its value on submitorenter event or save event and inside the BADI retrieve the custom controller reference to fetch the BP No or GUID.

Regards

Prasenjit

Former Member
0 Kudos

Hi Wolfgang,

We can get the BP Number based on the incoming Address Number(in IM_CURRENT_ADDRESS_KEY-ADDRNUMBER) by passing it to FMs like BUP_PARTNER_GET_BY_ADDRESS.

Regards,

Masood Imrani S.