cancel
Showing results for 
Search instead for 
Did you mean: 

Territory selection pop up in transaction - how to avoid?

Former Member
0 Kudos

When creating business transaction territory is determined based on employee responsible. But if employee responsible is assigned to multiple territories, we are getting pop up to select territory.

We do not want this pop up to display. Based on certain logic/partner function, I want to populate territory instead of displaying pop up.

I tried below 2 options with no success

(1) I checked below BADIs, but they are not being called at pop up in transaction.

CRM_TERRMAN_BADI

CRM_TERRMAN_FILTER

(2) I created event call back FM in CRMV_EVENT and tried to use FMs

CRM_TERRMAN_POPUP_TAB_DELETE

CRM_TERRMAN_POPUP_TAB_MAINTAIN

CRM_TERRMAN_POPUP_TAB_READ

Any inputs to achive this functionality will be much appreciated.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

To avoid the popup create a implementation for the BADI 'COM_PARTNER_BADI' and use the below code in the method 'COM_PARTNER_MERGE'.

This will suppress the popup for territory selection.


CONSTANTS: l_c_popuptab(50)   TYPE c VALUE '(SAPLCRM_TERRMAN_1ORDER)GT_TERR_1O_POPUP_ALLDOC'.

FIELD-SYMBOLS: <l_f_popuptab> TYPE crmt_terrman_1order_popup_tab.

ASSIGN (l_c_popuptab) TO <l_f_popuptab>.

CHECK <l_f_popuptab> IS ASSIGNED.

DELETE <l_f_popuptab> WHERE ref_partner_fct = '00000014'.( Depending on the required partner function )

Thanks,

Balaji.

Former Member
0 Kudos

Hello,

I appreciate that this is a very old post but I am sure it is still relevant for some. We have managed to work around this issue by ensuring that if employee responsible is assigned to more than one territory that only one of those territories has a business role.

I hope this helps

Regards


Andrew

praveen_kumar194
Active Contributor
0 Kudos

i am looking for solution for same problem. could you please explain a little bit. Thanks a lot.

Former Member
0 Kudos

Hello,

To avoid the popup create a implementation for the BADI 'COM_PARTNER_BADI' and use the below code in the method 'COM_PARTNER_MERGE'.

This will suppress the popup for territory selection.


CONSTANTS: l_c_popuptab(50)   TYPE c VALUE '(SAPLCRM_TERRMAN_1ORDER)GT_TERR_1O_POPUP_ALLDOC'.

FIELD-SYMBOLS: <l_f_popuptab> TYPE crmt_terrman_1order_popup_tab.

ASSIGN (l_c_popuptab) TO <l_f_popuptab>.

CHECK <l_f_popuptab> IS ASSIGNED.

DELETE <l_f_popuptab> WHERE ref_partner_fct = '00000014'.( Depending on the required partner function )

Thanks,

Balaji.

joaquin_fornas
Active Contributor
0 Kudos

Hello

To my knowledge, that popup cannot be deactivated for employee and person responsible.

This comes from [SAP Note 683127|https://service.sap.com/sap/support/notes/683127]. Maybe you can change the settings in view COMV_PARTNER_FT4 so you can de activate the popup...

Regards

Joaquin

Former Member
0 Kudos

Hi Joaquin,

Thanks for the response.

I checked the note earlier and we can't deactivate territory determination for employee as it impacts other teams.

Regards,

Talasila