Today we (Meinrad Scheibleger and I) faced with a wired problem: When the Tab “Activities” is selected in our SAP CRM PC-UI Opportunity application then the Tab “Competitors” disappears. Here’s a description of how we solved the problem. If you’ve never heard about PC-UI check out the PC-UI Book for CRM 5.0.
First we’ve checked the PC-UI customizing in Transaction CRMC_BLUEPRINT and CRMC_BLUEPRINT_C but we could not find a place where the Event OPP_HD_COMP responsible for the Tab Competitors is deactivated. So I’ve searched for the Event which is responsible for the Activity Tab and found OPP_HD_ACT.
In the Application Set I can find the Model Access Class which implements the functionality:
The Class CL_CRM_BSP_AM_HEADOM_1O implements the Method IF_CRM_BSP_MODEL_ACCESS_IL~CHECK_ACTIVE_TABSTRIP which is responsible what tab strips are visible. On Line 15 of the Method the Function Module CRM_BSP_DEACTIVATE_HEAD_TAB is called. I’ve put a breakpoint there and recognized that the number of entries in the internal table decreased. So I drilled down and found a call of Function Module CRM_OPPORT_DEACT_TAB_FCODES at Line 375. This module returns flags what tabs should be visible/invisible. But what sets a flag to visible? The Competitor Flag is set in this Module on Line 121 where the FM COM_PARTNER_FCT_IN_DETERM_PROC is called. The Parameters where set to:
iv_determ_proc = 'Y0000002'
iv_partner_pft = '0009'
iv_subtype = 'CRM'
Meinrad recognized these Values because he was jus doing some adjustments in SPRO -> CRM -> Basic Functions -> Partner Processing -> Define Partner Determination Procedure. Here we have our own Procedure Y0000002 for Activities. We added the Partner Function Competitors (CRM) to this procedure and now the Tab Competitors is visible all the time.