cancel
Showing results for 
Search instead for 
Did you mean: 

BAdi work behind BP creation ?

former_member207526
Participant
0 Kudos
235

HI Expert ,

I have checked this link

but when i check that badi then there is no implementation for that in my system thus i can't find what happening  while BP creation .

I need to know , what BADI called , when we are saving BP . ?/

Thanks ,

Rishi verma

Accepted Solutions (0)

Answers (1)

Answers (1)

sumeet_gehlot
Contributor
0 Kudos

Hi,

you can create a new implementation of partner_update badi.

Goto implementation on menu bar then create and u can write your logic in this.

IF_EX_PARTNER_UPDATE~CHANGE_BEFORE_UPDATE

if you want to check the all standard  badis while saving a BP

then put a breakpoint in this FM : SXV_ADD_PREFIX  and check the exit name

For More info

Open Badi Partner_update -> Go to interface tab

try to use where used on method CHANGE_BEFORE_UPDATE and try to put breakpoint on all methods of this class

CL_IM_CL_CRM_WEC_ADDR_DEL

CL_IM_CRM_BUPA_SEG_UPDATE

CL_IM_CRM_CHM_BUPA_UPD

CL_IM_PARTNER_ACE_UPDATE

and if you have implemented your Z then in that also

Hope you get your answers.

Regards,

Sumeet

former_member207526
Participant
0 Kudos

HI Sumeet ,

My actual requirement is to display message when some one try to save BP having same name and country ..

Any idea ?

Regards ,

Rishi

jorge_ocamposbenito
Contributor
0 Kudos

Hi Rishi,

If your requierement is to control duplicates you can activate duplicate control in SAP CRM in SAP NetWeaver->Application Server->Basis Services->Address Management->Duplicate Check

SAP CRM 7.0 - Address Validation and Duplicate Check in the Interaction Center

Duplicate Check for Accounts and Contacts - Business Partners - SAP Library

Best regards.

former_member207526
Participant
0 Kudos

HI Jorge ,

We implement the configuration that you asked to do but still we are not able achieve it any other Idea .

Regards .

Former Member
0 Kudos

Rishi,

To implement duplicate search based on any criteria you need to do two things -

1) Do configuration as suggested by Jorge

2) Implement BAdi - ADDRESS_SEARCH two methods - READ_INDEX_FIELD_LIST and ADDRESS_SEARCH. There is an example implementation provided by SAP..name starts with SIC_

Inside your implementation, you can use select statements to do match. Since your need is only on NAME + COUNTRY, this will work with regular ABAP, otherwise you need some other tool like DQM.

Cheers,

Niraj

former_member207526
Participant
0 Kudos

HI Niraj / Jorge ,

I am working by taking your help notes . I will get back to you if any issue found .

Thanks for you valuable help .

Regards,

Rishi

former_member207526
Participant
0 Kudos

HI Niraj ,

This is helpful but i an not able to get data for address like "Country" . I am getting Name and last name .I am checking duplicate value for first and last name but i need to check for country .

Any idea ??

Thanks,

Rishi verma

former_member207526
Participant
0 Kudos

Hi Jorge ,

I have worked by taking your notes and i am one step behind to complete , I have found in your video that while save BP , a pop up blow up contain duplicate BP but in my case that pop up is not coming and if it will come in my case than i will able to complete my requirement . Can you please guide how i get that Pop Up . I would really very helpful .

Regards ,

Rishi Verma

jorge_ocamposbenito
Contributor
0 Kudos

Hi Rishi,

You have to populate ex_t_search_result table in ADDRESS_SEARCH method in ADDRESS_SEARCH BAdI.

Check also these links:

And finally also check these notes:

Note 1737745 - Duplicate check does not return duplicate

Best regards.

former_member207526
Participant
0 Kudos

Thanks Jorge , for your quick response but am working BP duplicate check in IC Agent (Business Role) thus So for IC Agent Business role "Popup" is not coming but it is coming for BP duplicate check  for Marketing Business role . Do do have any Idea .

Regards ,

Rishi verma