cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatic trigger Partner redetermination

Former Member
0 Kudos
518

Hi All,

I'm working on CRM upgrade from 5 to 7.02 and I'm facing an issue solved in the CRM5.

Business is asking to have the Partner redetermination performed automatically and not using the provided manual functionality.

In CRM 5 we managed to solve this issue by redifining the standard CRM_PARTNER_REDETERMINE_EC adding the logic to call FM COM_PARTNER_SELECTION_UI2. then we worked on Event handler to execute our custom FM.

Obviously this logic could not be executed anymore as the COM_PARTNER_SELECTION_UI2 prompts a GUI Pop-up; actually the function Dumps, if executed, anytime you add a partner in an existing document.

Now my question is have someone had the same issue?

Could someone give me some hint to find a way to get an automatic redetermination?

Thanks in advance

Paolo

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I have requirement to implement COM_PARTNER_DETERM to determine the sales rep for the customer partners. This is fliter dependent BADI. Can some one help me on how to implemene this BADI.

As per BADI documentation, I have created an source entry-ZBP in COMV_PARTNER_DOR and added the same source as filter in the badi. But the BADI implementation is not getting called when I change the partner . Please guide me

Thanks,

Praveen

Former Member
0 Kudos

Hi Praveen,

As far as can see BADIs in definition COM_PARTNER_BADI are not Filter Dependant.

Once implemented you should create or update an existing Partner Determination Access Sequence to use one of the Source below:

COM_PARTNER_X (your code is in Badi 1)

COM_PARTNER_Y (your code is in Badi 2)

COM_PARTNER_Z (your code is in Badi 3)

In the Implementation Badi documentation you can see the difference among the three above.

But you should take into consideration that the Partner Determination is processed only once during document creation.

You have the possibility to manually run a new determination by adding a new Parameter in your User Account:

Parameter ID: CRM_REDETERMINATION

Value: X

We achieved the automatic partner re-determination by creating a Custom FM by copy of the standard CRM_PARTNER_REDETERMINE_EC in order to use our specific logic.

Then you should change the standard system EVENT by adding your custom FM in the table CRMV_EVENT_CUST.

An example of how to add your entry in this table:

Trans. Cat.

BUS20001 (to cover all docs type)

Time

107 - END OF PARTNER

Prio

any higher than 90

Object

PARTNER

Event

AFTER_CREATE or AFTER_CHANGE or both (in this case duplicate the line)

Attribute

<*>

Function

<your custom FM>

I hope this helps.

Regards,

Paolo

Former Member
0 Kudos

Hi Paolo,

Thanks for the reply. but I am trying to implement the BADI-COM_PARTNER_DETERM which is filter dependent. Anyways I will take your inputs.

Thanks,

Praveen

Former Member
0 Kudos

Hi Praveen,

Sorry I misread the name of the Badi implementation.

Actually we never used the COM_PARTNER_DETERM in our landscape.

It is filter dependant because it is based on the 'Source' value you used in the Partner Determination Access Sequence.

So in general it runs AFTER the determination.

If you have to manipulate the determination you should use the one I gave you before.

Regards,

Paolo

Former Member
0 Kudos

Hi Paolo,

I need to implement the method DETERMINATION_ADD_IN_1 in  BADI COM_PARTNER_BADI during change of partners. Will this method trigger during the change in the quotation.

I have added the source COM_PARTNER_X in one of the access sequence but still this method is not triggered. Let me know if you have solution for this.

Thanks,

Praveen

Former Member
0 Kudos

Ciao Praveen,

In general the reason for not get your code triggered could be:

1. The Badi Method DETERMINATION_ADD_IN_1 is active but not the Implementation itself.

2. The source COM_PARTNER_X is skipped because a previous step in the access sequence is triggered.

3. Do you have specified any details in the 'Details of Source' block in the customizing for Access Sequence?


Regards,

Paolo



Former Member
0 Kudos

I got it solved.

Former Member
0 Kudos

Hi, You can check the redetermination field in the PDP corresponding to the partner function.

Thanks,

Apoorv Dhawan

Former Member
0 Kudos

Ciao Apoorv,

Actually I set the redetermination field as A or B depending on the Partner Function in my PDP.

Is there any other place to set the Redetermination behaviour in customizing?

Thanks

Paolo

Former Member
0 Kudos

HI Paolo,

I think no other field, I was also referring to the same field you have updated

Thanks,

Apoorv Dhawan

former_member191572
Contributor
0 Kudos

Hi,

Just try by implementing this badi-COM_PARTNER_DETERM.This will get call for detemining the partner during the transaction creation and changes.

Former Member
0 Kudos

Ciao Gobi,

Thanks for your feedback.

Do you know how to implement this Badi and how it will be called during document change?

Thanks a lot

Paolo